Create Channel

mattermost.create_channel
ActionChat & messagingconnection required

Calls the Mattermost API with the connection's credentials.

Create a public or private channel on a team.

Connection

Required
Yes — the node will not save without one
Auth type
Bearer token
Providers
Mattermost
Secret shape
the personal access token, or {"token": "…"}
Config it needs
base_url, team_id
Resolved by
config.connection_id, else node.connection_id

Configuration

6 fields, 2 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
name
The channel handle used in its URL, e.g. 'release-notes'.
stringYes———
display_name
The channel name shown in the Mattermost UI.
stringYes———
channel_type
'O' for a public channel, 'P' for a private one.
stringNoOone of "O", "P"—
team_id
The team to work in. Defaults to the team id set on the connection.
stringNo———
purpose
The channel's purpose text.
stringNo———
header
The channel's header text.
stringNo———

Example configuration

Every value below is the contract’s own example or default — nothing invented.

{
  "channel_type": "O"
}

Output

One shape.

result

FieldTypeExample
id
The channel id — what the post ops need.
stringchn123456789
team_id
The team the channel belongs to.
string—
name
The channel handle used in its URL.
stringtown-square
display_name
The channel name shown in the UI.
string—
type
'O' public, 'P' private, 'D' direct, 'G' group.
string—
header
The channel header text.
string—
purpose
The channel purpose text.
string—
create_at
Creation time, in milliseconds since the epoch.
number—
{
  "create_at": 0,
  "display_name": "",
  "header": "",
  "id": "chn123456789",
  "name": "town-square",
  "purpose": "",
  "team_id": "",
  "type": ""
}

See Create Channel run in a workflow.

In a technical demo we add the Mattermost connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.