API reference / Account
Unlink your Telegram
Unlinks your Telegram from this workspace. Its conversations stay here.
delete
/api/v1/me/telegramOther ways to call it
CLI
troopy telegram disconnectMCP tool
troopy_disconnect_telegramRate limit10 calls in 60 seconds, for each key
RetriesSend an
Idempotency-Key header. A retry with the same key gets the first answer back, and the operation runs one time.Response
200 · application/jsondata*object7 properties
available*booleanWhether this Troopy has a Telegram bot set up
bot*string | nullThe bot's Telegram username
linked*booleanWhether your Telegram is linked to this workspace
username*string | nullThe linked Telegram account's username, if it has one
linkedAt*string | nullworkspaceBot*object | nullThe workspace's own bot, named after its lead, once someone made it: people talk to the Chief of Staff there
4 properties
username*stringIts Telegram username
disabled*string | nullWhy it stopped answering, or null
canOpen*booleanWhether Telegram lets you open it: its owner and the first 10 others who connected Telegram here
createdAt*stringISO 8601 date and time
createBotUrl*string | nullOpens Telegram's create-bot screen, filled in with the lead's name: for owners and admins with Telegram linked, while the workspace has no bot
Errors
401 unauthorizedSend an API key as `Authorization: Bearer tr_live_...`. Create one in Troopy under Settings.
403 forbiddenThe key lacks a scope this operation needs, or its owner lacks the role. detail says which; create a key with the scope, or ask an organization owner or admin.
409 conflictThis Idempotency-Key was used for a different request, or that request is still running. Use a new key for a new request.
429 rate_limitedWait the number of seconds in Retry-After, then retry.