Skip to content

Channel.create

POST /{namespace}/channels

Creates a Channel.

Mode
do
Event
Channel.created

Create makes a new Channel from the inputs below. It is inherited: every Noun has get, list, create, update and delete.

Inputs

InputTypeRequiredDescription
mediumstringrequiredThe platform type, such as email, sms, or chat.
organizationOrganizationThe outside Organization the Channel is shared with; its new Messages open Conversations for that Customer.
externalbooleanTrue when people from another Organization post in it, as in a channel two companies share.
areaCodestringFor an sms Channel, the phone area code its number is drawn from, such as 512.
numberstringFor an sms Channel, its phone number in international form, assigned when it is created.

Outputs

OutputTypeRequiredDescription
channelChannelrequiredThe Channel.

Effects

  • Emits Channel.created.
  • Two-way: try, send, do.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.Channel.create

When it waits

GateDefault
Decision classLow: two-way, nothing at stake
Delay windowNone: it runs once review passes.
LimitThe call Limit of the Permission it runs under.
Over the LimitIt waits pending for an Approval from the Founder. Approved, it runs; refused, it ends refused with limit-exceeded; unanswered by its deadline, it ends canceled.