Skip to main content
POST
The secret field is write-only and is not returned by the API after creation. To change it later, use the update channel endpoint instead.

Body

string
required
Channel type: webhook or email.For more information, see Webhooks and Email notifications.
array
required
Event types to subscribe to.
string
Channel description. Maximum 255 characters.
boolean
Whether the channel is active. Default: true.
string
Webhook endpoint URL. Must use HTTPS. Required when channel_type is webhook.
string
Signing secret for verifying incoming webhook requests. Must be between 24 and 75 bytes. Applies when channel_type is webhook.Use this secret to verify incoming webhook requests. If you do not provide a secret, you cannot use secret-based verification for incoming webhook requests.
The secret is write-only and is not returned by the API after creation. To change it later, use the update channel endpoint instead.
object
Email delivery configuration. Required when channel_type is email.

Response

string
required
Unique identifier for the channel.
string
required
Channel type: webhook or email.
array
required
Subscribed event types.
boolean
required
Whether the channel is active.
string
required
ISO 8601 timestamp when the channel was created.
string
required
ISO 8601 timestamp when the channel was last updated.
string
Channel description.
string
Webhook endpoint URL. Present when channel_type is webhook.
object
Email delivery configuration. Present when channel_type is email.