Channels
Create a channel
/v1/channelswebhook,discord,slack,email: created at once (201). A webhook URL must behttpsand resolve to public addresses only: private, loopback, link-local, cloud metadata and reserved addresses, local host names and URLs with credentials are refused with422 url_not_allowed(DNS is checked again at every delivery). The webhook signing secret (webhook_secret) is returned once, in this response only.telegram,hellome: linked by invitation (202). Openinvite.linkas an administrator of the group within 10 minutes; poll the URL inLocation(GET /v1/channel-invites/{token}) to get the channel id.
Plan checks: channel kinds (403 channel_kind_not_in_plan) and number of
channels (403 plan_limit_reached).
- Safe to retry with the Idempotency-Key header: see Idempotency.
Headers#
Idempotency-KeystringMakes the POST safe to retry for 24 hours.
Request body#
kindstringrequirednamestringnullableNot accepted for telegram and hellome.
rolestringNot accepted for telegram and hellome.
localestringurlstringwebhook (https, public host), discord (
https://discord.com/api/webhooks/…), slack (https://hooks.slack.com/services/…).emailsarray of string · emailemail only.
Responses#
Response headers
LocationstringIdempotent-Replayedstringtruewhen the response is a replay of a previous request with the sameIdempotency-Key.
Object fields
idstring · uuidkindstringnamestringnullablestatestringrolestringtargetstringnullableMasked destination, e.g.
https://hooks.example.com/aicscan,a***@example.com.created_atstring · date-timedisabled_atstring · date-timenullabledisabled_reasonstringnullablelast_success_atstring · date-timenullablelinked_atstring · date-timenullablewebhook_secretstringnullableWebhook only: HMAC-SHA256 signing secret (
whsec_…), shown once. VerifyX-SignatureoverX-Timestampand the body; reject timestamps older than 5 minutes.nullin an idempotent replay.
Response headers
Locationstring/v1/channel-invites/{token}
Object fields
kindstringstatusstringinviteobjectObject fields
tokenstringlinkstring · uriexpires_atstring · date-timeexpires_in_minutesinteger
Standard error format: see Errors.