> ## 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 envío WhatsApp

> Consulta si fue enviado, entregado o falló, y ve los detalles.



## OpenAPI

````yaml /es/whatsapp-api/api-reference/openapi-whatsapp.json get /v1/whatsapp/messages/{messageId}
openapi: 3.0.3
info:
  title: Notifique API — WhatsApp
  description: >-
    Envíe mensajes de WhatsApp y gestione conexiones. Autentíquese con
    `Authorization: Bearer sk_live_...` o `x-api-key`.
  version: 1.0.0
servers:
  - url: https://api.notifique.dev
    description: Producción
security:
  - ntfWaBearerAuth: []
  - ntfWaApiKeyHeader: []
tags:
  - name: Mensajes
    description: Enviar, listar, editar y cancelar mensajes
  - name: Instancias
    description: >-
      Registre y gestione los números de WhatsApp conectados — cada número es
      una **instancia** (el teléfono por el que entran y salen los mensajes).
  - name: Grupos
    description: Grupos (solo conexión no oficial)
  - name: Llamadas
    description: Llamar y hablar en WhatsApp (no oficial hoy; oficial pronto)
  - name: Sending pools
    description: Balanceamento de instâncias WhatsApp
paths:
  /v1/whatsapp/messages/{messageId}:
    get:
      tags:
        - Mensagens
      summary: Consultar envío WhatsApp
      description: Consulta si fue enviado, entregado o falló, y ve los detalles.
      operationId: ntfWa_getV1WhatsappMessage
      parameters:
        - name: messageId
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: >-
            Dados da mensaje. Respuesta padronizada com envelope success/data;
            status em MAIÚSCULO.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ntfWa_GetV1WhatsappMessageResponse'
              example:
                success: true
                data:
                  id: msg_abc
                  instanceId: inst_abc
                  status: SENT
                  to: '5511999999999'
                  type: TEXT
                  createdAt: '2026-07-20T12:00:00.000Z'
        '401':
          description: No autorizado.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NtfWa_ErrorResponse'
              example:
                success: false
                error: Bad Request
                code: VALIDATION_ERROR
                message: Campo inválido ou ausente.
        '403':
          description: Escopo ou acesso à instancia.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NtfWa_ErrorResponse'
              example:
                success: false
                error: Bad Request
                code: VALIDATION_ERROR
                message: Campo inválido ou ausente.
        '404':
          description: Mensaje não encontrada.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NtfWa_ErrorResponse'
              example:
                success: false
                error: Bad Request
                code: VALIDATION_ERROR
                message: Campo inválido ou ausente.
components:
  schemas:
    ntfWa_GetV1WhatsappMessageResponse:
      type: object
      properties:
        success:
          type: boolean
          example: true
        data:
          $ref: '#/components/schemas/NtfWa_WhatsAppMessageStatusResponse'
      example:
        success: true
        data:
          to: '5511999999999'
          type: text
          status: string
          scheduledAt: '2025-02-10T14:00:00.000Z'
          sentAt: '2025-02-10T14:00:00.000Z'
          deliveredAt: '2025-02-10T14:00:00.000Z'
          readAt: '2025-02-10T14:00:00.000Z'
          failedAt: '2025-02-10T14:00:00.000Z'
          errorMessage: string
          createdAt: '2025-02-10T14:00:00.000Z'
    NtfWa_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: >-
            Mensaje 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 [Respuestas de
            erro](/guides/conceitos/resposta-de-erros).
        details:
          type: array
          items:
            type: object
            properties:
              field:
                type: string
              message:
                type: string
        note:
          type: string
      required:
        - success
        - error
        - message
        - code
      example:
        success: false
        error: string
        message: string
        code: string
        details:
          - field: string
            message: string
        note: string
    NtfWa_WhatsAppMessageStatusResponse:
      type: object
      description: Conteúdo de data na resposta de status. Status sempre em MAIÚSCULO.
      properties:
        messageId:
          type: string
        to:
          type: string
        type:
          type: string
        status:
          type: string
          description: 'Sempre em MAIÚSCULO (ex.: QUEUED, SENT, DELIVERED, READ, FAILED).'
        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
        createdAt:
          type: string
          format: date-time
        id:
          type: string
          example: msg_abc
        instanceId:
          type: string
          example: inst_abc
      example:
        to: '5511999999999'
        type: text
        status: string
        scheduledAt: '2025-02-10T14:00:00.000Z'
        sentAt: '2025-02-10T14:00:00.000Z'
        deliveredAt: '2025-02-10T14:00:00.000Z'
        readAt: '2025-02-10T14:00:00.000Z'
        failedAt: '2025-02-10T14:00:00.000Z'
        errorMessage: string
        createdAt: '2025-02-10T14:00:00.000Z'
  securitySchemes:
    ntfWaBearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >-
        API Key no header Authorization. Exemplo: `Authorization: Bearer
        sk_live_xxxxx`
    ntfWaApiKeyHeader:
      type: apiKey
      in: header
      name: x-api-key
      description: API Key no header x-api-key.

````