---
title: "Send a test RICH RCS card (platform owner only)"
description: "Sends a Twilio Content Template (rich card / carousel / quick-reply) through the workspace Messaging Service with automatic SMS fallback. Provide either a stored templateId or a raw contentSid. Same gating + consent rules as text RCS (RCS_MESSAGING flag, workspace_rcs_config, sandbox, DNC, opted_in_sms). Always sends to the contact's own phone number. 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-card`

Sends a Twilio Content Template (rich card / carousel / quick-reply) through the workspace Messaging Service with automatic SMS fallback. Provide either a stored templateId or a raw contentSid. Same gating + consent rules as text RCS (RCS_MESSAGING flag, workspace_rcs_config, sandbox, DNC, opted_in_sms). Always sends to the contact's own phone number. SaaS platform owner access required.

## Authentication

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

## Path parameters

- `workspaceId` (`post/api/rcs/workspaces/workspaceId/test-send-card.path.workspaceId`; string, required)

## Request body

_Required._

- `contactId` (`post/api/rcs/workspaces/workspaceId/test-send-card.contactId`; string, required) — Contact UUID. Drives consent gates.
- `templateId` (`post/api/rcs/workspaces/workspaceId/test-send-card.templateId`; string, optional) — rcs_content_templates.id (resolves contentSid + mapping)
- `contentSid` (`post/api/rcs/workspaces/workspaceId/test-send-card.contentSid`; string, optional) — Twilio Content SID (HX…) — alternative to templateId
- `contentVariables` (`post/api/rcs/workspaces/workspaceId/test-send-card.contentVariables`; object, optional) — Explicit {{n}}→value map; bypasses mapping resolution.
- `variableMapping` (`post/api/rcs/workspaces/workspaceId/test-send-card.variableMapping`; object, optional) — Mapping override (only used with a raw contentSid).
- `bodyPreview` (`post/api/rcs/workspaces/workspaceId/test-send-card.bodyPreview`; string, optional) — Human-readable text stored on the LiveChat row.
- `isTest` (`post/api/rcs/workspaces/workspaceId/test-send-card.isTest`; boolean, optional) — Dry run — runs all gates, skips the Twilio send + DB insert.

## Example request

```json
{
  "contactId": "string",
  "templateId": "string",
  "contentSid": "string",
  "contentVariables": {},
  "variableMapping": {},
  "bodyPreview": "string",
  "isTest": true
}
```

## Code samples

### cURL

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

### TypeScript

```typescript
const url = 'https://api.channelautomation.com/api/rcs/workspaces/<workspaceId>/test-send-card';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({
    contactId: 'string',
    templateId: 'string',
    contentSid: 'string',
    contentVariables: {},
    variableMapping: {},
    bodyPreview: '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-card"

payload = {
    "contactId": "string",
    "templateId": "string",
    "contentSid": "string",
    "contentVariables": {},
    "variableMapping": {},
    "bodyPreview": "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.

### 400

Missing contactId, or neither templateId nor contentSid.

### 401

Authentication required

#### Example

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

- `error` (`post/api/rcs/workspaces/workspaceId/test-send-card.response.401.error`; string, optional)
  - example `"Authentication required"`
- `success` (`post/api/rcs/workspaces/workspaceId/test-send-card.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-card.response.500.error`; string, optional)
  - example `"Internal server error"`
- `details` (`post/api/rcs/workspaces/workspaceId/test-send-card.response.500.details`; string, optional)
- `success` (`post/api/rcs/workspaces/workspaceId/test-send-card.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-card/index.md
