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

# Send an RCS message

> Sends an approved RCS message over the **Vi** (Vodafone Idea) or **Jio** network in India. Choose the format with `message_type` (`text_message`, `rich_card` or `carousel`); the `content` structure must match.

Jio supports extra button types (`calendar_event`, `share_location`, `view_location_query`, `view_location_latlong`). Jio-only button types cannot be used on Vi. Templates must be approved, and media URLs must be direct, publicly accessible HTTPS links.



## OpenAPI

````yaml /cpaas-api-reference.yaml post /api/rcs/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/rcs/send:
    post:
      tags:
        - RCS Messaging
      summary: Send an RCS message
      description: >-
        Sends an approved RCS message over the **Vi** (Vodafone Idea) or **Jio**
        network in India. Choose the format with `message_type` (`text_message`,
        `rich_card` or `carousel`); the `content` structure must match.


        Jio supports extra button types (`calendar_event`, `share_location`,
        `view_location_query`, `view_location_latlong`). Jio-only button types
        cannot be used on Vi. Templates must be approved, and media URLs must be
        direct, publicly accessible HTTPS links.
      operationId: sendRcsMessage
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RcsSendRequest'
            examples:
              viText:
                summary: 'Vi: text with buttons'
                value:
                  botId: YOUR_VI_BOT_ID
                  to: 91XXXXXXXXXX
                  message_type: text_message
                  content:
                    textMessageContent: Hello John, your order ORD-9876 is ready for pickup!
                    suggestions:
                      - suggestionType: reply
                        displayText: Confirm Pickup
                        postback: confirm_pickup
                      - suggestionType: url_action
                        displayText: Track Order
                        url: https://tracking.example.com/ORD-9876
                        postback: track_order
                      - suggestionType: dialer_action
                        displayText: Call Support
                        phoneNumber: +91XXXXXXXXXX
                        postback: call_support
              viRichCard:
                summary: 'Vi: rich card'
                value:
                  botId: YOUR_VI_BOT_ID
                  to: 91XXXXXXXXXX
                  message_type: rich_card
                  content:
                    orientation: VERTICAL
                    height: MEDIUM_HEIGHT
                    standAlone:
                      cardTitle: Festive Offer
                      cardDescription: Flat 20% off this week.
                      mediaUrl: https://cdn.example.com/sale_banner.jpg
                      suggestions:
                        - suggestionType: url_action
                          displayText: Shop Now
                          url: https://example.com/shop
                          postback: shop_now
                        - suggestionType: reply
                          displayText: Opt Out
                          postback: opt_out
              jioText:
                summary: 'Jio: text with extended buttons'
                value:
                  botId: YOUR_JIO_BOT_ID
                  to: 91XXXXXXXXXX
                  message_type: text_message
                  content:
                    textMessageContent: >-
                      Your appointment is confirmed for March 30, 2026 at 10:00
                      AM.
                    suggestions:
                      - suggestionType: calendar_event
                        displayText: Add to Calendar
                        postback: add_calendar
                      - suggestionType: view_location_latlong
                        displayText: View Location
                        postback: view_location
                      - suggestionType: reply
                        displayText: Confirm
                        postback: confirm_appt
                      - suggestionType: reply
                        displayText: Cancel
                        postback: cancel_appt
              jioCarousel:
                summary: 'Jio: carousel'
                value:
                  botId: YOUR_JIO_BOT_ID
                  to: 91XXXXXXXXXX
                  message_type: carousel
                  content:
                    width: MEDIUM_WIDTH
                    height: MEDIUM_HEIGHT
                    carouselList:
                      - cardTitle: Wireless Headphones
                        cardDescription: 40hr battery, noise cancellation.
                        mediaUrl: https://cdn.example.com/headphones.jpg
                        suggestions:
                          - suggestionType: url_action
                            displayText: Buy Now
                            url: https://example.com/product/1
                            postback: buy_1
                      - cardTitle: Smart Watch
                        cardDescription: Track fitness and stay connected.
                        mediaUrl: https://cdn.example.com/watch.jpg
                        suggestions:
                          - suggestionType: url_action
                            displayText: Buy Now
                            url: https://example.com/product/2
                            postback: buy_2
      responses:
        '200':
          description: Request accepted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RcsSendResponse'
              example:
                status: success
                message: RCS message sent successfully.
                data:
                  message_id: rcs-vi-msg-lnbg0tyrvn
                  to: 91XXXXXXXXXX
                  status: submitted
                  received_at: '2026-03-26 10:15:32'
        '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:
    RcsSendRequest:
      type: object
      properties:
        botId:
          type: string
          description: >-
            RCS bot / agent ID registered on the operator network (from the
            portal under RCS, then Agents).
        to:
          type: string
          description: Destination mobile number.
        message_type:
          type: string
          description: Type of message.
          enum:
            - text_message
            - rich_card
            - carousel
        content:
          $ref: '#/components/schemas/RcsContent'
      required:
        - botId
        - to
        - message_type
        - content
    RcsSendResponse:
      type: object
      properties:
        status:
          type: string
        message:
          type: string
        data:
          type: object
          properties:
            message_id:
              type: string
              description: Unique RCS message ID. Use it with the status endpoint.
            to:
              type: string
            status:
              type: string
              description: Delivery pipeline status.
              enum:
                - submitted
                - failed
            received_at:
              type: string
    RcsContent:
      type: object
      description: >-
        Message content. The structure must match `message_type`: `text_message`
        uses `textMessageContent` and optional `suggestions` (max 11);
        `rich_card` uses `orientation`, `height` and `standAlone` (max 4
        buttons); `carousel` uses `width`, `height` and `carouselList` (2 to 10
        cards, max 4 buttons each).
      properties:
        textMessageContent:
          type: string
        height:
          type: string
          description: >-
            `SHORT_HEIGHT`, `MEDIUM_HEIGHT` or `TALL_HEIGHT` (rich card);
            `SHORT_HEIGHT` or `MEDIUM_HEIGHT` (carousel).
        width:
          type: string
          description: '`SMALL_WIDTH` or `MEDIUM_WIDTH` (carousel).'
        alignment:
          type: string
          enum:
            - LEFT
            - RIGHT
        orientation:
          type: string
          enum:
            - HORIZONTAL
            - VERTICAL
        standAlone:
          $ref: '#/components/schemas/RcsCard'
        carouselList:
          type: array
          minItems: 2
          maxItems: 10
          items:
            $ref: '#/components/schemas/RcsCard'
        suggestions:
          type: array
          items:
            $ref: '#/components/schemas/RcsSuggestion'
    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`.
    RcsCard:
      type: object
      properties:
        mediaUrl:
          type: string
          format: uri
        cardTitle:
          type: string
        cardDescription:
          type: string
        suggestions:
          type: array
          items:
            $ref: '#/components/schemas/RcsSuggestion'
    RcsSuggestion:
      type: object
      required:
        - suggestionType
        - displayText
      description: >
        A button attached to a message. Which extra fields apply depends on
        `suggestionType`:

        `url_action` (url, application), `dialer_action` (phoneNumber),
        `calendar_event`

        (title, startTime, endTime, timeZone, description),
        `view_location_query` (query),

        `view_location_latlong` (label, latitude, longitude). `reply` and
        `share_location` need only

        `displayText` and `postback`.
      properties:
        suggestionType:
          type: string
          enum:
            - reply
            - url_action
            - dialer_action
            - share_location
            - calendar_event
            - view_location_query
            - view_location_latlong
        displayText:
          type: string
        postback:
          type: string
          description: Custom value returned when the button is tapped.
        url:
          type: string
        application:
          type: string
          description: Application used to open the URL, for example `BROWSER`.
        phoneNumber:
          type: string
        title:
          type: string
        description:
          type: string
        startTime:
          type: string
          description: Format `YYYY-MM-DD HH:MM:SS`.
        endTime:
          type: string
          description: Format `YYYY-MM-DD HH:MM:SS`.
        timeZone:
          type: string
          description: ISO 8601 with zone, for example `2025-11-05T10:30:00[Asia/Kolkata]`.
        query:
          type: string
        label:
          type: string
        latitude:
          type: string
        longitude:
          type: string
  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.