Skip to main content
POST
Create Telegram Link Code

Authentication

Requires JWT token or Platform API key via Authorization: Bearer <token> header.
string
required
Agent UUID

Example Request

Example Response

How It Works

  1. Call this endpoint to generate a 6-character link code.
  2. The code expires after 10 minutes.
  3. Send /link <CODE> as a message to your agent’s Telegram bot.
  4. Once linked, you can send messages to your agent directly through Telegram.

Prerequisites

  • Your agent must have a telegram_bot_token configured (set during agent creation or update)
  • You must have a Telegram bot created via @BotFather

Status Codes