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

# Send SMS with open text

> Sends an SMS with free-form text to up to 100 numbers. In India, `template_id` and `entity_id` (DLT) are mandatory.



## OpenAPI

````yaml /cpaas-api-reference.yaml post /api/sms/send
openapi: 3.1.0
info:
  title: CPaaS+ Messaging API
  version: 1.0.0
  description: >-
    Unified REST API for sending and managing customer communications across
    **SMS**, **WhatsApp**, **Email**, **RCS** and **Flow Builder**. It also
    includes the **WhatsApp Wrapper API**, a simplified layer over Meta's
    WhatsApp Cloud API for sending free-form message types (text, media,
    interactive and more).


    All APIs are HTTP-based, use JSON and are secured with bearer-token
    authentication. Generate a token in the CPaaS+ portal (API tab, then **Add
    new Token**) and send it as `Authorization: Bearer <token>` on every
    request.


    A `200` response means the request was **accepted**, not that the message
    was delivered. Use the status endpoints for delivery results.
servers:
  - url: '{baseUrl}'
    description: Your CPaaS+ API host (provided at onboarding)
    variables:
      baseUrl:
        default: https://api.yourcpaas.com
        description: Host of your CPaaS+ web portal account, without a trailing slash.
security:
  - bearerAuth: []
tags:
  - name: SMS
    description: >-
      Send SMS using portal campaigns, approved templates, or open text, and
      check delivery status.
  - name: SMS Webhooks
    description: SMS delivery report callback payloads.
  - name: WhatsApp Messaging
    description: Send WhatsApp template messages and manage order status and refunds.
  - name: WhatsApp Wrapper API
    description: >-
      Send text, media, contact, location, interactive and other WhatsApp
      message types through the single Wrapper endpoint.
  - name: WhatsApp User Management
    description: >-
      Block, unblock, bulk-import and sync blocked WhatsApp users for a WABA
      number.
  - name: Email
    description: Send template-based or open-text email and check delivery status.
  - name: RCS Templates
    description: Create RCS templates (text with buttons, rich card, carousel).
  - name: RCS Messaging
    description: Send RCS messages and check message status.
  - name: RCS Webhooks
    description: Customer-facing RCS webhook callback payloads and event schemas.
  - name: Flow Builder
    description: Create, manage, publish and trigger Flow Builder journeys.
paths:
  /api/sms/send:
    post:
      tags:
        - SMS
      summary: Send SMS with open text
      description: >-
        Sends an SMS with free-form text to up to 100 numbers. In India,
        `template_id` and `entity_id` (DLT) are mandatory.
      operationId: sendSmsOpenText
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SmsOpenTextRequest'
            example:
              from: CPAAS
              to:
                - 91XXXXXXXXXX
              text: Your order ORD-1001 has been shipped.
              type: 'N'
              product: Transactional
              template_id: '1107160000000000000'
              entity_id: '1101160000000000000'
              correlation_id: ''
      responses:
        '200':
          description: Request accepted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SmsSendResponse'
              example:
                status: success
                message: Messages are sent successfully.
                data:
                  - status: submitted
                    message_id: ce73930a-687b-49f5-a4c8-80e816b9b458
                    number: 91XXXXXXXXXX
                    units: 1
                    received_at: '2026-03-26 19:41:10'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '500':
          $ref: '#/components/responses/ServerError'
components:
  schemas:
    SmsOpenTextRequest:
      type: object
      required:
        - from
        - to
        - text
      properties:
        from:
          type: string
          description: Sender ID / source address / header as configured on the platform.
        to:
          type: array
          items:
            type: string
          description: Destination mobile numbers. Up to 100 per request.
          maxItems: 100
        text:
          type: string
          description: Message text.
        type:
          type: string
          enum:
            - 'N'
            - U
            - A
          default: 'N'
          description: '`N` plain text (default), `U` Unicode, `A` auto-detect.'
        product:
          type: string
          enum:
            - Transactional
            - Promotional
            - OTP
            - Other
          description: Traffic category.
        template_id:
          type: string
          description: Registered template ID. Mandatory in India.
        entity_id:
          type: string
          description: Registered entity ID. Mandatory in India.
        correlation_id:
          type: string
          description: Optional client-supplied identifier used to correlate the request.
    SmsSendResponse:
      type: object
      properties:
        status:
          type: string
          description: Overall submission status.
        message:
          type: string
        data:
          type: array
          items:
            $ref: '#/components/schemas/SmsSubmitResult'
      description: >-
        Per-recipient results. The API supports partial success: an HTTP 200 can
        contain both submitted and failed entries, so always inspect each entry
        in `data`.
    SmsSubmitResult:
      type: object
      properties:
        status:
          type: string
          description: '`submitted` or `failed` for this recipient.'
          enum:
            - submitted
            - failed
        message_id:
          type:
            - string
            - 'null'
          description: >-
            Unique message ID. `null` when the entry failed. Use it with the
            status endpoint.
        number:
          type: string
          description: Destination number for this entry.
        units:
          type: integer
          description: >-
            SMS units consumed. One unit is 160 characters of plain text or 70
            characters of Unicode.
        error:
          type: string
          description: >-
            Reason, present when `status` is `failed` (for example `Invalid
            phone number`).
        received_at:
          type: string
          description: Timestamp the platform received the request (`YYYY-MM-DD HH:MM:SS`).
    ErrorResponse:
      type: object
      properties:
        status:
          type: string
          description: '`error` on platform errors.'
        error_code:
          type: integer
          description: HTTP-style error code.
        error_message:
          type: string
          description: Human-readable error.
        message:
          type: string
          description: Human-readable error (validation style).
        errors:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          description: Field-level validation errors keyed by field name.
      description: >-
        Error body. The exact fields present depend on the failure: validation
        failures return `message` and `errors`; platform failures return
        `status`, `error_code` and `error_message`.
  responses:
    BadRequest:
      description: 'Bad request: invalid JSON or missing fields.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Unauthorized:
      description: Missing, invalid or expired bearer token.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Forbidden:
      description: >-
        Forbidden: the request came from a restricted (non-allow-listed) IP
        address.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    UnprocessableEntity:
      description: >-
        Unprocessable entity: invalid numbers or fields, or invalid message
        content.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    ServerError:
      description: >-
        Internal server error: a server-side issue. Retry later or contact
        support.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API token issued for your account. Send as `Authorization: Bearer
        <token>`.

````

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