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

# Send SMS

> Queues an SMS message for delivery via SMPP. Returns `202 Accepted` immediately —
delivery is asynchronous. Requires a paid plan and available SMS credits.

The `to` field must be a Mozambican mobile number in E.164 format (`+258XXXXXXXXX`).




## OpenAPI

````yaml /openapi.yaml post /api/v1/sms
openapi: 3.0.3
info:
  title: Torpedo API
  version: '1.0'
  description: |
    Torpedo is a transactional email API built for developers.
    Send emails from your own verified domain with a single HTTP call.
  contact:
    email: support@torpedo.co.mz
  termsOfService: https://torpedo.co.mz/terms
servers:
  - url: https://api.torpedo.co.mz
    description: Production
security:
  - ApiKeyAuth: []
paths:
  /api/v1/sms:
    post:
      tags:
        - SMS
      summary: Send SMS
      description: >
        Queues an SMS message for delivery via SMPP. Returns `202 Accepted`
        immediately —

        delivery is asynchronous. Requires a paid plan and available SMS
        credits.


        The `to` field must be a Mozambican mobile number in E.164 format
        (`+258XXXXXXXXX`).
      operationId: sendSms
      parameters:
        - name: Idempotency-Key
          in: header
          required: false
          schema:
            type: string
          description: Unique key to prevent duplicate sends on retry
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - to
                - body
              properties:
                to:
                  type: string
                  description: >-
                    Recipient phone number in E.164 format (Mozambican numbers
                    only)
                  example: '+258841234567'
                body:
                  type: string
                  minLength: 1
                  maxLength: 1600
                  description: Message text
                  example: Your verification code is 482910. Expires in 10 minutes.
      responses:
        '202':
          description: Message queued
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      id:
                        type: string
                        format: uuid
                      status:
                        type: string
                        example: queued
        '402':
          description: No SMS credits or plan does not support SMS
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Recipient is suppressed or phone number is invalid
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: SMS service not configured on this instance
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      type: object
      properties:
        errors:
          type: array
          items:
            type: object
            properties:
              message:
                type: string
                example: Domain not verified
              field:
                type: string
                example: from
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: |
        Prefix `tor_` followed by a base64url-encoded random key.
        Obtain one from `POST /api/v1/workspaces` or `POST /api/v1/auth/keys`.

````