---
title: "Send a test RCS text message (platform owner only)"
description: "Sends a text RCS message through the workspace's Twilio Messaging Service with automatic SMS/MMS fallback for non-RCS recipients. Blocked unless the RCS_MESSAGING feature flag and workspace_rcs_config.enabled are both true. Respects sandbox mode, DNC, and opted_in_sms exactly like SMS. SaaS platform owner access required.\n"
---

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

Path: Channel Automation API › RCS

`POST /api/rcs/workspaces/{workspaceId}/test-send`

Sends a text RCS message through the workspace's Twilio Messaging Service with automatic SMS/MMS fallback for non-RCS recipients. Blocked unless the RCS_MESSAGING feature flag and workspace_rcs_config.enabled are both true. Respects sandbox mode, DNC, and opted_in_sms exactly like SMS. SaaS platform owner access required.

## Authentication

- `BearerAuth`, http, header `Authorization`, format `JWT`

## Path parameters

- `workspaceId` (`post/api/rcs/workspaces/workspaceId/test-send.path.workspaceId`; string, required) — Workspace ID to send from.

## Request body

_Required._

- `contactId` (`post/api/rcs/workspaces/workspaceId/test-send.contactId`; string, required) — Contact UUID. Drives consent gates (sandbox/DNC/opt-out).
- `body` (`post/api/rcs/workspaces/workspaceId/test-send.body`; string, required) — Message text to send (max 1600 chars). Sent to the contact's own phone number.
- `isTest` (`post/api/rcs/workspaces/workspaceId/test-send.isTest`; boolean, optional) — Dry run. When true, runs ALL consent/safety gates (flag, config+status, contact, phone, sandbox, DNC, opt-out, Twilio creds) and returns mock success, skipping only the actual Twilio send and the DB insert. A blocked contact (DNC, opted out, no phone, etc.) returns the block reason.

## Example request

```json
{
  "contactId": "string",
  "body": "string",
  "isTest": true
}
```

## Code samples

### cURL

```bash
curl --request POST \
  --url 'https://api.channelautomation.com/api/rcs/workspaces/<workspaceId>/test-send' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "contactId": "string",
  "body": "string",
  "isTest": true
}
'
```

### TypeScript

```typescript
const url = 'https://api.channelautomation.com/api/rcs/workspaces/<workspaceId>/test-send';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({contactId: 'string', body: 'string', isTest: true})
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.channelautomation.com/api/rcs/workspaces/<workspaceId>/test-send"

payload = {
    "contactId": "string",
    "body": "string",
    "isTest": True
}
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 200

Send attempt completed. `ok:true` with a messageSid when sent; `ok:false` with `skipped:true` and a reason when intentionally blocked (flag off, not configured, sandbox, DNC, opt-out, etc.).

#### Example

```json
{
  "ok": true,
  "messageSid": "string",
  "status": "string",
  "requestedChannel": "rcs",
  "fallbackFrom": "string",
  "skipped": true,
  "reason": "string",
  "message": "string"
}
```

- `ok` (`post/api/rcs/workspaces/workspaceId/test-send.response.200.ok`; boolean, optional)
- `messageSid` (`post/api/rcs/workspaces/workspaceId/test-send.response.200.messageSid`; string, optional, nullable)
- `status` (`post/api/rcs/workspaces/workspaceId/test-send.response.200.status`; string, optional, nullable)
- `requestedChannel` (`post/api/rcs/workspaces/workspaceId/test-send.response.200.requestedChannel`; string, optional)
  - example `"rcs"`
- `fallbackFrom` (`post/api/rcs/workspaces/workspaceId/test-send.response.200.fallbackFrom`; string, optional, nullable)
- `skipped` (`post/api/rcs/workspaces/workspaceId/test-send.response.200.skipped`; boolean, optional)
- `reason` (`post/api/rcs/workspaces/workspaceId/test-send.response.200.reason`; string, optional, nullable)
- `message` (`post/api/rcs/workspaces/workspaceId/test-send.response.200.message`; string, optional, nullable)

### 400

Missing required fields (contactId, body).

### 401

Authentication required

#### Example

```json
{
  "error": "Authentication required",
  "success": false
}
```

- `error` (`post/api/rcs/workspaces/workspaceId/test-send.response.401.error`; string, optional)
  - example `"Authentication required"`
- `success` (`post/api/rcs/workspaces/workspaceId/test-send.response.401.success`; boolean, optional)
  - example `false`

### 403

SaaS owner access required.

### 500

Internal server error

#### Example

```json
{
  "error": "Internal server error",
  "details": "string",
  "success": false
}
```

- `error` (`post/api/rcs/workspaces/workspaceId/test-send.response.500.error`; string, optional)
  - example `"Internal server error"`
- `details` (`post/api/rcs/workspaces/workspaceId/test-send.response.500.details`; string, optional)
- `success` (`post/api/rcs/workspaces/workspaceId/test-send.response.500.success`; boolean, optional)
  - example `false`

### 502

Twilio send failed.

### 503

Identity verification is temporarily unavailable.


Source: https://developer.channelautomations.com/api/post-api-rcs-workspaces-workspace-id-test-send/index.md
