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

# Retrieve an SMS

> The message with `segments`, `credits`, `scheduledAt` and the event timeline. Requires `read`.



## OpenAPI

````yaml /api-reference/openapi.yaml get /v1/sms/{id}
openapi: 3.1.0
info:
  title: Sendbaze API
  version: '1.0'
  description: >
    Transactional email and SMS for Africa. Send from your own domain through
    Amazon SES in Cape Town.

    Every send returns an id immediately; delivery is reported by webhook and in
    the dashboard logs.
  contact:
    name: Sendbaze support
    email: support@sendbaze.com
    url: https://www.sendbaze.com
servers:
  - url: https://api.sendbaze.com
security:
  - bearerAuth: []
tags:
  - name: Emails
  - name: Templates
  - name: Domains
  - name: Suppressions
  - name: Webhooks
  - name: SMS
  - name: Usage
paths:
  /v1/sms/{id}:
    get:
      tags:
        - SMS
      summary: Retrieve an SMS
      description: >-
        The message with `segments`, `credits`, `scheduledAt` and the event
        timeline. Requires `read`.
      operationId: getSms
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            example: sm_01j9x7k2r4m8q3v5n6b7c8d9e0
      responses:
        '200':
          description: The SMS
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SmsMessage'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  schemas:
    SmsMessage:
      type: object
      required:
        - id
        - channel
        - class
        - status
        - to
        - from
        - segments
        - credits
        - tags
        - error
        - scheduledAt
        - createdAt
        - sentAt
        - deliveredAt
        - events
      properties:
        id:
          type: string
        channel:
          type: string
          enum:
            - sms
        class:
          $ref: '#/components/schemas/MessageClass'
        status:
          $ref: '#/components/schemas/MessageStatus'
        to:
          type: string
        from:
          type: string
        segments:
          type: integer
        credits:
          type: integer
        tags:
          type: array
          items:
            type: string
        error:
          $ref: '#/components/schemas/MessageError'
        scheduledAt:
          type:
            - string
            - 'null'
          format: date-time
        createdAt:
          type: string
          format: date-time
        sentAt:
          type:
            - string
            - 'null'
          format: date-time
        deliveredAt:
          type:
            - string
            - 'null'
          format: date-time
        events:
          type: array
          items:
            $ref: '#/components/schemas/MessageEvent'
    MessageClass:
      type: string
      enum:
        - transactional
        - marketing
    MessageStatus:
      type: string
      enum:
        - queued
        - sent
        - delivered
        - bounced
        - complained
        - failed
        - expired
        - rejected
    MessageError:
      type:
        - object
        - 'null'
      required:
        - code
        - message
      properties:
        code:
          type: string
          example: hard_bounce
        message:
          type: string
    MessageEvent:
      type: object
      required:
        - type
        - occurredAt
      properties:
        type:
          type: string
          enum:
            - queued
            - attempt_failed
            - sent
            - delivery_delayed
            - delivered
            - bounced
            - complained
            - failed
            - expired
            - rejected
            - unsubscribed
        occurredAt:
          type: string
          format: date-time
        detail:
          type: object
          description: >-
            Provider ids, error codes, attempt numbers; shape depends on the
            type.
          additionalProperties: true
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          $ref: '#/components/schemas/ErrorBody'
    ErrorBody:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: string
          description: Stable error code; see the errors reference.
          example: validation_error
        message:
          type: string
        docs:
          type: string
          format: uri
        fields:
          type: object
          description: Present on validation errors. Dotted path to messages.
          additionalProperties:
            type: array
            items:
              type: string
        limit:
          type: integer
          description: On `plan_limit`, the ceiling that was reached.
        upgradeUrl:
          type: string
          format: uri
          description: >-
            Where to change plan, when a bigger plan would have allowed the
            request.
        topUpUrl:
          type: string
          format: uri
          description: >-
            Where to add wallet funds, when a balance would have allowed the
            request.
        settingsUrl:
          type: string
          format: uri
          description: >-
            Where to change an organisation setting that blocked the request
            (SMS destinations).
        domainsUrl:
          type: string
          format: uri
          description: >-
            Where to add and verify a sending domain, on
            `sandbox_recipient_not_allowed` and `sandbox_limit_reached`.
  responses:
    NotFound:
      description: No such resource in your organisation
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error:
              code: not_found
              message: No email with id em_x.
              docs: https://docs.sendbaze.com/errors#not_found
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        An API key from the dashboard. `sk_live_…` sends; `sk_test_…` validates
        and returns ids without sending.

````

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