Channels

Create a channel

POST/v1/channels
  • webhook, discord, slack, email: created at once (201). A webhook URL must be https and resolve to public addresses only: private, loopback, link-local, cloud metadata and reserved addresses, local host names and URLs with credentials are refused with 422 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). Open invite.link as an administrator of the group within 10 minutes; poll the URL in Location (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).

Authentication
API key (Authorization: Bearer)
Required scope
write
  • Safe to retry with the Idempotency-Key header: see Idempotency.

Headers#

  • Idempotency-Keystring

    Makes the POST safe to retry for 24 hours.

    1 to 255 characters

Request body#

  • kindstringrequired
    Values webhook discord slack email telegram hellome
  • namestringnullable

    Not accepted for telegram and hellome.

    at most 80 characters
  • rolestring

    Not accepted for telegram and hellome.

    Values alerts escalation
    Default "alerts"
  • localestring
    Values fr en
    Default "fr"
  • urlstring

    webhook (https, public host), discord (https://discord.com/api/webhooks/…), slack (https://hooks.slack.com/services/…).

  • emailsarray of string · email

    email only.

    1 to 10 items

Responses#

201Channel created.

Response headers

  • Locationstring
  • Idempotent-Replayedstring

    true when the response is a replay of a previous request with the same Idempotency-Key.

    Values true
Object fields
  • idstring · uuid
  • kindstring
    Values webhook discord slack email telegram hellome
  • namestringnullable
  • statestring
    Values active disabled
  • rolestring
    Values alerts escalation
  • targetstringnullable

    Masked destination, e.g. https://hooks.example.com/aicscan, a***@example.com.

  • created_atstring · date-time
  • disabled_atstring · date-timenullable
  • disabled_reasonstringnullable
  • last_success_atstring · date-timenullable
  • linked_atstring · date-timenullable
  • webhook_secretstringnullable

    Webhook only: HMAC-SHA256 signing secret (whsec_…), shown once. Verify X-Signature over X-Timestamp and the body; reject timestamps older than 5 minutes. null in an idempotent replay.

202Invitation created (Telegram, helloMe).

Response headers

  • Locationstring

    /v1/channel-invites/{token}

Object fields
  • kindstring
    Values telegram hellome
  • statusstring
    Values pending
  • inviteobject
    Object fields
    • tokenstring
    • linkstring · uri
    • expires_atstring · date-time
    • expires_in_minutesinteger
4xx · 5xxError.

Standard error format: see Errors.