> ## 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.

# Consultar envio Telegram

> Consulta se foi enviado, entregue ou falhou, e vê os detalhes.



## OpenAPI

````yaml /telegram-api/api-reference/openapi-telegram.json get /v1/telegram/messages/{messageId}
openapi: 3.0.3
info:
  title: Notifique API — Telegram
  description: >-
    Envie mensagens Telegram e gerencie conexões. Autentique com `Authorization:
    Bearer sk_live_...` ou `x-api-key`.
  version: 1.0.0
servers:
  - url: https://api.notifique.dev
    description: Produção
security:
  - ntfTgBearerAuth: []
  - ntfTgApiKeyHeader: []
tags:
  - name: Mensagens
    description: Enviar e gerenciar mensagens
  - name: Instâncias
    description: Criar e conectar bots ou contas USER
  - name: Chats
    description: Listar chats
paths:
  /v1/telegram/messages/{messageId}:
    get:
      tags:
        - Mensagens
      summary: Consultar envio Telegram
      description: Consulta se foi enviado, entregue ou falhou, e vê os detalhes.
      operationId: ntfTg_getV1TelegramMessageById
      parameters:
        - name: messageId
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Detalhe em `data`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NtfTg_MessageDetailEnvelope'
              example:
                success: true
                data:
                  messageId: clxx_msg
                  to: '123456789'
                  type: TEXT
                  payload:
                    message: Oi
                  status: SENT
                  scheduledAt: null
                  sentAt: '2026-04-12T16:00:00.000Z'
                  deliveredAt: null
                  readAt: null
                  failedAt: null
                  errorMessage: null
                  externalId: '55'
                  telegramPeer: '123456789'
                  createdAt: '2026-04-12T15:59:00.000Z'
                  updatedAt: '2026-04-12T16:00:00.000Z'
        '401':
          description: Chave ausente ou inválida.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NtfTg_ErrorResponse'
              example:
                success: false
                error: Unauthorized
                message: Invalid or missing API Key
                code: UNAUTHORIZED
        '403':
          description: Sem escopo ou mensagem de outra instância não permitida.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NtfTg_ErrorResponse'
              examples:
                scope:
                  value:
                    success: false
                    error: Forbidden
                    message: 'Missing scope: telegram:read'
                    code: FORBIDDEN
                instance:
                  value:
                    success: false
                    error: Forbidden
                    message: Access to this instance is not allowed by this API Key
                    code: FORBIDDEN
        '404':
          description: Mensagem não encontrada.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NtfTg_ErrorResponse'
              example:
                success: false
                error: Not Found
                message: Message not found
                code: NOT_FOUND
components:
  schemas:
    NtfTg_MessageDetailEnvelope:
      type: object
      required:
        - success
        - data
      properties:
        success:
          type: boolean
        data:
          $ref: '#/components/schemas/NtfTg_MessageOutboundDetail'
    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: >-
            Mensagem 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 [Respostas 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
    NtfTg_MessageOutboundDetail:
      type: object
      description: >-
        Detalhe de uma mensagem enviada (GET por ID): usa `messageId` como
        identificador interno.
      properties:
        messageId:
          type: string
        to:
          type: string
        type:
          type: string
        payload:
          type: object
        status:
          type: string
        scheduledAt:
          type: string
          format: date-time
          nullable: true
        sentAt:
          type: string
          format: date-time
          nullable: true
        deliveredAt:
          type: string
          format: date-time
          nullable: true
        readAt:
          type: string
          format: date-time
          nullable: true
        failedAt:
          type: string
          format: date-time
          nullable: true
        errorMessage:
          type: string
          nullable: true
        externalId:
          type: string
          nullable: true
        telegramPeer:
          type: string
          nullable: true
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
  securitySchemes:
    ntfTgBearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: 'Authorization: Bearer sk_live_xxxxx'
    ntfTgApiKeyHeader:
      type: apiKey
      in: header
      name: x-api-key

````