Bots
Bind a chat
Bind a paired chat to a bot.
The chat must be one you paired (POST /v1/channels/pair); anything else is 422 not_paired. A chat talks to one bot: binding it again moves it.
Authorizations
Authorization: Bearer ozk_…. ozk_ platform API key (Authorization: Bearer ozk_…)Path parameters
Body
application/jsonExample: "telegram"
Maximum string length: 128
Response
Bound
application/json
invalid_json — body is not valid JSON or YAML; invalid_format — format must be one of json, yaml, markdown, text
application/json
unauthorized — missing, invalid or revoked ozk_ key
application/json
workflow_not_found — no saved workflow with that id for this account (foreign and missing ids answer alike); not_found — no route for this method on this path: every other method answers it
application/json
binding_limit — the account has reached its binding limit
application/json
not_paired — that chat is not paired to your account; invalid_params — a field failed validation; nothing was written
application/json
upstream_error — channel bindings are unavailable
application/json
not_enabled — channel bindings are not enabled yet (the message gateway deploy is pending)
application/json