Skip to main content
POST
Error

Autorizações

Authorization
string
header
obrigatório

A staff session token, uk_st_…. Minted by sign-up, sign-in or the two-factor exchange. Only a 401 means it is spent; not_a_member (403) is about the organization named in X-Organization-Id and leaves the token good for the others.

Cabeçalhos

X-Organization-Id
string

The organization the caller is acting on — the org_… code that appears in the panel URL. It identifies; the membership JOIN is what authorizes, so a forged code reads nothing: the answer is not_a_member (403), which does not mean the session is over. Absent, the session's default organization answers, or — if that membership was revoked while the session was open — any other one the caller still holds.

Corpo

application/json
kind
enum<string>
obrigatório
Opções disponíveis:
slack,
discord,
email
destination
string
obrigatório

The Slack or Discord incoming-webhook URL, or an email address. Stored encrypted and never read back.

description
string

A label, so a list of three Slack channels says which is which — the hint is only the host.

Resposta

Registered.

id
string<uuid>
kind
enum<string>

Not editable after registration: the delivery history hangs off the channel, and a channel whose kind changed is a different destination wearing another one's record.

Opções disponíveis:
slack,
discord,
email
destination_hint
string

What may be shown in place of the destination: the host for a chat hook (hooks.slack.com), the address for an email. Never a fragment of the webhook path — that is the part of the credential with the entropy in it.

description
string

Your label. What tells two channels on one workspace apart, since the hint is only the host.

enabled
boolean
disabled_reason
string

Why it is off when nobody turned it off — a destination the provider answered 410 or 404 for no longer exists, and we stop rather than retry into it. Empty for a channel you paused yourself.

last_delivered_at
string<date-time> | null

null means nothing has ever gone out, which is the normal state on a healthy organization. It is also why the test send exists.

created_at
string<date-time>