Create a channel

View as Markdown

Creates an email, webhook, or file_drop channel. A webhook channel requires secret — its Standard Webhooks signing secret, stored securely and never returned again. Authorization: organization administrators only. Returns 400 on an invalid body, 404 if a referenced folder is missing, 409 if the slug is taken.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
slugstringRequired1-64 characters
namestringRequired1-120 characters
typeenumRequired
Allowed values:
secretstringRequired

Standard Webhooks signing secret (whsec_-prefixed base64). Required for type ‘webhook’.

folderIdstringOptional>=1 character

Response

The created channel.
channelobject