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

# List SMS messages

> Returns a paginated list of SMS messages sent by the workspace, newest first.



## OpenAPI

````yaml /openapi.yaml get /api/v1/sms
openapi: 3.0.3
info:
  title: Torpedo API
  version: '1.0'
  description: |
    Torpedo is a transactional messaging API built for developers.
    Send emails from your own verified domain, SMS to Mozambican numbers, and
    WhatsApp verification codes with a single HTTP call.
  contact:
    email: hello@torpedo.co.mz
  license:
    name: Torpedo API Terms of Service
    url: https://torpedo.co.mz/terms
  termsOfService: https://torpedo.co.mz/terms
servers:
  - url: https://api.torpedo.co.mz
    description: Production
security:
  - ApiKeyAuth: []
paths:
  /api/v1/sms:
    get:
      tags:
        - SMS
      summary: List SMS messages
      description: >-
        Returns a paginated list of SMS messages sent by the workspace, newest
        first.
      operationId: listSms
      parameters:
        - $ref: '#/components/parameters/Cursor'
        - $ref: '#/components/parameters/Limit'
      responses:
        '200':
          description: Paginated list of SMS messages
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/SmsMessage'
                  meta:
                    $ref: '#/components/schemas/PaginationMeta'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '422':
          $ref: '#/components/responses/InvalidPagination'
components:
  parameters:
    Cursor:
      name: cursor
      in: query
      required: false
      description: Opaque cursor returned in the previous page's `meta.next_cursor`.
      schema:
        type: string
    Limit:
      name: limit
      in: query
      required: false
      schema:
        type: integer
        default: 10
        minimum: 1
        maximum: 100
  schemas:
    SmsMessage:
      type: object
      required:
        - id
        - to
        - from
        - body
        - status
        - deliveryState
        - failureCategory
        - providerStatus
        - providerErrorCode
        - providerId
        - failedReason
        - createdAt
        - sentAt
        - deliveredAt
        - lastEventAt
      properties:
        id:
          type: string
          format: uuid
        to:
          type: string
          example: '+258841234567'
        from:
          type: string
          nullable: true
          example: Torpedo
        body:
          type: string
          example: Your verification code is 482910.
        status:
          type: string
          enum:
            - queued
            - sent
            - delivered
            - failed
        deliveryState:
          type: string
          description: >-
            Detailed current delivery state. The compatible status field remains
            unchanged.
          enum:
            - queued
            - submitted
            - accepted
            - in_transit
            - delivered
            - failed
            - unknown
        failureCategory:
          type: string
          nullable: true
          enum:
            - undeliverable
            - expired
            - rejected
            - deleted
            - suppressed
            - submission_error
            - unknown
        providerStatus:
          type: string
          nullable: true
          example: UNDELIV
        providerErrorCode:
          type: string
          nullable: true
          example: '001'
        providerId:
          type: string
          nullable: true
        failedReason:
          type: string
          nullable: true
        createdAt:
          type: string
          format: date-time
        sentAt:
          type: string
          format: date-time
          nullable: true
        deliveredAt:
          type: string
          format: date-time
          nullable: true
        lastEventAt:
          type: string
          format: date-time
    PaginationMeta:
      type: object
      required:
        - has_more
        - next_cursor
      properties:
        has_more:
          type: boolean
          example: true
        next_cursor:
          type: string
          nullable: true
    Error:
      type: object
      required:
        - errors
      properties:
        errors:
          type: array
          items:
            type: object
            required:
              - code
              - message
            properties:
              code:
                type: string
                example: VALIDATION_ERROR
              message:
                type: string
                example: Domain not verified
              field:
                type: string
                example: from
  responses:
    Unauthorized:
      description: Missing or invalid API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    InvalidPagination:
      description: Invalid cursor or limit
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: |
        Prefix `tor_` followed by a base64url-encoded random key.
        Create and manage API keys from the authenticated Torpedo dashboard.

````

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