Bots
Mint a pairing code
Mint a pairing code.
Send the code to the channel’s bot from the device to pair it (valid for 10 minutes); the device then appears in GET /v1/channels.
Authorizations
Authorization: Bearer ozk_…. ozk_ platform API key (Authorization: Bearer ozk_…)Body
application/jsonAvailable options: telegram, whatsapp, discord, teams
Response
Pairing code Response format negotiates via the format field, an Accept header (application/json, text/yaml, text/markdown, text/plain), or the request Content-Type mirror; default JSON.
application/jsontext/yamltext/markdowntext/plain
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
not_found — no route for this method on this path: every other method answers it
application/json
invalid_params — channel must be telegram, whatsapp, discord, or teams
application/json
upstream_error — pairing is unavailable
application/json
not_enabled — the message gateway is not configured
application/json