Skip to content
OpenPostDocs
OpenPostDocs
Accounts

Issue a one-time Telegram connection command

Returns the signed command exactly once. It expires after 15 minutes and is never placed in a URL, job, log, or later response.

POST/accounts/telegram/connection-code

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://example.com/accounts/telegram/connection-code" \  -H "Content-Type: application/json" \  -d '{    "expected_chat_id": "string",    "workspace_id": "string"  }'
{  "$schema": "https://example.com/api/v1/schemas/IssueTelegramConnectionCodeResponse.json",  "bot_username": "string",  "code": "string",  "expires_at": "2019-08-24T14:15:22Z"}