Create Telegram Link Code
Agent Channels
Create Telegram Link Code
Generate a code to pair a Telegram account with an agent.
POST
Create Telegram Link Code
Authentication
Requires JWT token or Platform API key viaAuthorization: Bearer <token> header.
Agent UUID
Example Request
Example Response
How It Works
- Call this endpoint to generate a 6-character link code.
- The code expires after 10 minutes.
- Send
/link <CODE>as a message to your agent’s Telegram bot. - Once linked, you can send messages to your agent directly through Telegram.
Prerequisites
- Your agent must have a
telegram_bot_tokenconfigured (set during agent creation or update) - You must have a Telegram bot created via @BotFather
Status Codes
| Code | Description |
|---|---|
200 | Link code generated successfully |
401 | Unauthorized - invalid or missing authentication |
404 | Agent not found |
400 | Agent does not have Telegram configured |

