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

# Send a batch of SMS

> Up to 1,000 messages with per-item results. If credits run out part-way, the remaining items fail with `insufficient_credits` and the earlier ones still send. Requires `sms:send`.



## OpenAPI

````yaml /api-reference/openapi.yaml post /v1/sms/batch
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/batch:
    post:
      tags:
        - SMS
      summary: Send a batch of SMS
      description: >-
        Up to 1,000 messages with per-item results. If credits run out part-way,
        the remaining items fail with `insufficient_credits` and the earlier
        ones still send. Requires `sms:send`.
      operationId: sendSmsBatch
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - messages
              properties:
                messages:
                  type: array
                  minItems: 1
                  maxItems: 1000
                  items:
                    $ref: '#/components/schemas/SendSmsRequest'
      responses:
        '200':
          description: Per-item results
          content:
            application/json:
              schema:
                type: object
                required:
                  - results
                properties:
                  results:
                    type: array
                    items:
                      $ref: '#/components/schemas/BatchSmsItemResult'
components:
  schemas:
    SendSmsRequest:
      type: object
      required:
        - to
        - body
        - class
      properties:
        to:
          type: string
          description: E.164.
          example: '+27821234567'
        body:
          type: string
          maxLength: 1600
        senderId:
          type: string
          description: A registered alphanumeric sender id.
        class:
          $ref: '#/components/schemas/MessageClass'
        scheduledAt:
          type: string
          format: date-time
          description: Up to 30 days ahead.
        tags:
          type: array
          maxItems: 10
          items:
            type: string
            maxLength: 64
    BatchSmsItemResult:
      type: object
      required:
        - index
        - ok
      properties:
        index:
          type: integer
        ok:
          type: boolean
        data:
          $ref: '#/components/schemas/SendSmsResponse'
        error:
          $ref: '#/components/schemas/ErrorBody'
    MessageClass:
      type: string
      enum:
        - transactional
        - marketing
    SendSmsResponse:
      type: object
      required:
        - id
        - status
        - mode
        - segments
        - credits
      properties:
        id:
          type: string
          example: sm_01j9x7k2r4m8q3v5n6b7c8d9e0
        status:
          type: string
          enum:
            - queued
            - scheduled
        mode:
          type: string
          enum:
            - live
            - test
        segments:
          type: integer
          example: 1
        credits:
          type: integer
          example: 1
    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`.
  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.