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

# Get SMS status

> Check whether an SMS was sent, delivered, or failed, and see its details.



## OpenAPI

````yaml /en/sms-api/api-reference/openapi-sms.json get /v1/sms/messages/{id}
openapi: 3.0.3
info:
  title: Notifique API. SMS
  description: >-
    Send SMS, check delivery status, and view inbound messages. Authenticate
    with `Authorization: Bearer sk_live_...` or `x-api-key`.
  version: 1.0.0
servers:
  - url: https://api.notifique.dev
    description: Production
security:
  - ntfSmsBearerAuth: []
  - ntfSmsApiKeyHeader: []
tags:
  - name: SMS
    description: Send SMS, check status, and view received messages.
paths:
  /v1/sms/messages/{id}:
    get:
      tags:
        - SMS
      summary: Get SMS status
      description: >-
        Check whether an SMS was sent, delivered, or failed, and see its
        details.
      operationId: ntfSms_getV1SmsById
      parameters:
        - name: id
          in: path
          required: true
          description: ID (cuid) do SMS retornado em POST /v1/sms/messages.
          schema:
            type: string
      responses:
        '200':
          description: Dados do SMS.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NtfSms_SmsStatusResponse'
              example:
                success: true
                data:
                  smsId: clxx123...
                  to: '5511999999999'
                  message: Olá! SMS de teste.
                  status: DELIVERED
                  sentAt: '2025-02-16T12:00:00.000Z'
                  deliveredAt: '2025-02-16T12:00:05.000Z'
                  failedAt: null
                  scheduledFor: null
                  errorMessage: null
                  createdAt: '2025-02-16T11:59:58.000Z'
        '401':
          description: Missing or invalid API Key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NtfSms_ErrorResponse'
        '403':
          description: Missing sms:read scope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NtfSms_ErrorResponse'
        '404':
          description: SMS não encontrado ou não pertence ao workspace.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NtfSms_ErrorResponse'
              example:
                success: false
                error: Not Found
                message: SMS not found or access denied
                code: NOT_FOUND
components:
  schemas:
    NtfSms_SmsStatusResponse:
      type: object
      required:
        - success
        - data
      properties:
        success:
          type: boolean
          example: true
        data:
          $ref: '#/components/schemas/NtfSms_SmsListItem'
    NtfSms_ErrorResponse:
      type: object
      properties:
        success:
          type: boolean
          example: false
        error:
          type: string
          description: HTTP-style error label (e.g. Unauthorized, Bad Request, Not Found).
        message:
          type: string
          description: >-
            Human-readable message for end users (localized via Accept-Language
            / x-locale when applicable).
        code:
          type: string
          description: >-
            Stable API v1 code (enum). Always present on errors. Use with the
            HTTP status to decide retry or fix. See [Error
            responses](/en/guides/conceitos/resposta-de-erros).
        details:
          type: array
          items:
            type: object
            properties:
              field:
                type: string
              message:
                type: string
          description: Lista de erros de validação por campo.
      required:
        - success
        - error
        - message
        - code
    NtfSms_SmsListItem:
      type: object
      description: >-
        Resposta de um SMS na listagem ou em GET por ID: a API sempre devolve
        todos estes campos; datas ausentes vêm como `null`. Não inclui
        `provider`, `externalId` nem `rawResponse`.
      required:
        - smsId
        - to
        - message
        - status
        - sentAt
        - deliveredAt
        - failedAt
        - scheduledFor
        - errorMessage
        - createdAt
      properties:
        smsId:
          type: string
          description: ID (cuid) do SMS.
        to:
          type: string
          description: Destinatário E.164.
        message:
          type: string
          description: Texto enviado (9 a 160 caracteres no envio).
        status:
          type: string
          enum:
            - SCHEDULED
            - QUEUED
            - SENT
            - PROCESSING
            - DELIVERED
            - FAILED
            - CANCELLED
          description: >-
            Mesmos valores do banco; ver descrição em POST / envio para
            significado operacional.
        sentAt:
          type: string
          format: date-time
          nullable: true
        deliveredAt:
          type: string
          format: date-time
          nullable: true
        failedAt:
          type: string
          format: date-time
          nullable: true
        scheduledFor:
          type: string
          format: date-time
          nullable: true
        errorMessage:
          type: string
          nullable: true
        createdAt:
          type: string
          format: date-time
  securitySchemes:
    ntfSmsBearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >-
        API Key no header Authorization. Exemplo: `Authorization: Bearer
        sk_live_xxxxx`
    ntfSmsApiKeyHeader:
      type: apiKey
      in: header
      name: x-api-key
      description: 'API Key no header x-api-key. Exemplo: `x-api-key: sk_live_xxxxx`'

````