TG Cerber API
Permissions (scopes)
Every credential carries scopes, and every operation needs one. A scope never adds a right: each operation also runs the console's own role check for the admin behind the credential, so a scope only narrows what that admin can already do.
Granting any write scope asks for the admin's console password — when an API key is created or a connection is approved. That re-entry stands in for the 10-minute confirmation the console asks for before security changes, so those operations need no extra confirmation in the call. Transferring ownership still needs the owner's current password in the request.
Operations marked Destructive sign sessions out, end protection or delete data: a program or an AI should show the person what will be done, to which account, and get their confirmation first. The three operations that delete archive data also take a confirm_phrase that the person types, exactly as in the console.
Every change is recorded in the organization's journal as the admin's, with the credential that made it.
What the API does not do
By design these stay in the console or elsewhere:
- Sign-up, sign-in, accepting invitations and switching between organizations. A credential belongs to one organization and one admin; it never reaches another.
- Money. Buying, upgrading, adding storage, paying, confirming a quote, cancelling, the payment method.
get_billing_linksreturns the console pages where the person does it; nothing in the API charges anything. - Setting or changing the archive password, and the browser-side parts of the archive viewer (decrypting in the browser, remembered devices, re-sealing a chat cleanup). Message content is read through the MCP archive tools.
- The QR-code sign-in of a new account: its code changes every 30 seconds and must be scanned from a screen. Connect by phone number instead.
- Help-page progress, on-premises updates and the payment provider's webhook.