> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agentarea.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Accept Telegram Link Offer

> Links the Telegram account a bot offered the code to to the caller, a member of the bot's workspace, who confirmed it.
The code is spent; 404 when it expired or was used, 409 when another account holds the Telegram account. 403 for a caller outside the bot's workspace.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/me/external-identities/telegram/offer/accept
openapi: 3.1.0
info:
  description: >-
    Modular and extensible framework for building AI agents. This API requires
    JWT Bearer token authentication for most endpoints. Include your JWT token
    in the Authorization header. Public endpoints include /, /health, /docs,
    /redoc, and /openapi.json.
  title: AgentArea API
  version: 0.2.0
servers: []
security:
  - bearer: []
paths:
  /v1/me/external-identities/telegram/offer/accept:
    post:
      tags:
        - v1
        - protected
        - external-identities
      summary: Accept Telegram Link Offer
      description: >-
        Links the Telegram account a bot offered the code to to the caller, a
        member of the bot's workspace, who confirmed it.

        The code is spent; 404 when it expired or was used, 409 when another
        account holds the Telegram account. 403 for a caller outside the bot's
        workspace.
      operationId: >-
        accept_telegram_link_offer_v1_me_external_identities_telegram_offer_accept_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TelegramLinkOfferRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExternalIdentityResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    TelegramLinkOfferRequest:
      properties:
        code:
          minLength: 1
          title: Code
          type: string
      required:
        - code
      title: TelegramLinkOfferRequest
      type: object
    ExternalIdentityResponse:
      description: >-
        A messenger account linked to the caller. username and display_name are
        how the

        messenger named the account when it was linked; null for links made
        before they were kept.
      properties:
        display_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Display Name
        external_id:
          title: External Id
          type: string
        id:
          format: uuid
          title: Id
          type: string
        linked_at:
          format: date-time
          title: Linked At
          type: string
        provider:
          title: Provider
          type: string
        username:
          anyOf:
            - type: string
            - type: 'null'
          title: Username
      required:
        - id
        - provider
        - external_id
        - linked_at
        - username
        - display_name
      title: ExternalIdentityResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    bearer:
      bearerFormat: JWT
      description: JWT Bearer token for authentication
      scheme: bearer
      type: http
    HTTPBearer:
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.