---
title: "POST /api/v1/agents/{agentId}/integrations/telegram"
method: POST
path: "/api/v1/agents/{agentId}/integrations/telegram"
tags: ["integrations"]
---

# POST /api/v1/agents/{agentId}/integrations/telegram

`POST /api/v1/agents/{agentId}/integrations/telegram`

## Request

- Base URL: `https://api.clerkchat.co` (the document declares no server; this is the origin it was published from)
- URL: `https://api.clerkchat.co/api/v1/agents/{agentId}/integrations/telegram`
- Auth: none required

## Path parameters

- `agentId` string, required

## Request body

- object
  - `botToken` string, required

## Response `200`

TelegramIntegrationResponse

- TelegramIntegrationResponseEncoded
  - `status` union, required
    - object
      - `kind` 'connected', required
      - `installationId` string, required
      - `botId` string, required
      - `botUsername` string, required
      - `connectedAt` union, required
        - number
        - 'Infinity' | '-Infinity' | 'NaN'
      - `updatedAt` union, required
        - number
        - 'Infinity' | '-Infinity' | 'NaN'
    - object
      - `kind` 'disconnected', required

## Other responses

- `400`: BadRequest
- `401`: Unauthorized
- `403`: Forbidden
- `404`: NotFound
- `503`: PersistenceUnavailable

---

[API](https://skmtc.dev/clerkchat/apis/clerk-chat-api.md) · [All operations](https://skmtc.dev/clerkchat/apis/clerk-chat-api/llms.txt) · [OpenAPI document](https://skmtc.dev/clerkchat/apis/clerk-chat-api/revisions/cc318e39e1d0?raw)
