API reference

API reference · Account

Mint a one time Telegram link code

POST/api/account/telegramSigned in session

Eight symbols, shown once, alive for ten minutes; the account's earlier unspent code dies with it. Sent to the bot as `/link CODE` in a private chat, it links that Telegram user to this account, and messages there are then paid for by this account through the same dispatch as a keyed request. Same origin only; five a minute per account.

Answer 200

A fresh code.

Fields of the 200 answer
FieldTypeWhat it is
codestringThe code, shown once.
expiresAtintegerUnix ms.

Errors

  • 401OpenAI shaped error.
  • 403OpenAI shaped error.
  • 404OpenAI shaped error.
  • 429OpenAI shaped error.

Every error answers in one shape, with its type, code and the field it names. The whole list is in the docs' Errors section.

Antimatter