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

# Activate bot with token

> Activates a pending BOT instance with BotFather token. Scope: **telegram:instances:create**.



## OpenAPI

````yaml /en/telegram-api/api-reference/openapi-telegram.json post /v1/telegram/instances/{instanceId}/bot-token
openapi: 3.0.3
info:
  title: Notifique API — Telegram
  description: >-
    Send Telegram messages and manage connections. Authenticate with
    `Authorization: Bearer sk_live_...` or `x-api-key`.
  version: 1.0.0
servers:
  - url: https://api.notifique.dev
    description: Production
security:
  - ntfTgBearerAuth: []
  - ntfTgApiKeyHeader: []
tags:
  - name: Messages
    description: Send and manage messages
  - name: Instances
    description: Create and connect bots or USER accounts
  - name: Chats
    description: List chats
paths:
  /v1/telegram/instances/{instanceId}/bot-token:
    post:
      tags:
        - Instances
      summary: Activate bot with token
      description: >-
        Activates a pending BOT instance with BotFather token. Scope:
        **telegram:instances:create**.
      operationId: ntfTg_setBotToken
      parameters:
        - name: instanceId
          in: path
          required: true
          schema:
            type: string
            example: inst_abc
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                botToken:
                  type: string
              required:
                - botToken
            example:
              botToken: 123456:ABC-DEF
      responses:
        '200':
          description: OK
          content:
            application/json:
              example:
                success: true
                data:
                  id: inst_abc
                  status: ACTIVE
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - true
                  data:
                    type: object
                    additionalProperties: true
                    properties:
                      id:
                        type: string
                        example: inst_abc
                      status:
                        type: string
                        example: ACTIVE
        '401':
          description: Unauthorized.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NtfTg_ErrorResponse'
              example:
                success: false
                error: Bad Request
                code: VALIDATION_ERROR
                message: Campo inválido ou ausente.
        '403':
          description: Forbidden.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NtfTg_ErrorResponse'
              example:
                success: false
                error: Bad Request
                code: VALIDATION_ERROR
                message: Campo inválido ou ausente.
        '404':
          description: Not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NtfTg_ErrorResponse'
              example:
                success: false
                error: Bad Request
                code: VALIDATION_ERROR
                message: Campo inválido ou ausente.
      security:
        - ntfTgBearerAuth: []
        - ntfTgApiKeyHeader: []
components:
  schemas:
    NtfTg_ErrorResponse:
      type: object
      properties:
        success:
          type: boolean
          example: false
        error:
          type: string
          description: 'Rótulo HTTP do erro (ex.: Unauthorized, Bad Request, Not Found).'
        message:
          type: string
          description: >-
            Message legível para exibir ao usuário (localizada via
            Accept-Language / x-locale quando aplicável).
        code:
          type: string
          description: >-
            Código estável da API v1 (enum). Sempre presente em erros. Use com o
            status HTTP para decidir retry ou correção. Ver [Responses de
            erro](/guides/conceitos/resposta-de-erros).
        details:
          type: array
          items:
            type: object
            properties:
              field:
                type: string
              message:
                type: string
      required:
        - success
        - error
        - message
        - code
      example:
        success: false
        error: string
        message: string
        code: string
        details:
          - field: string
            message: string
  securitySchemes:
    ntfTgBearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: 'Authorization: Bearer sk_live_xxxxx'
    ntfTgApiKeyHeader:
      type: apiKey
      in: header
      name: x-api-key

````