---
title: "Send a saved RCS card from the LiveChat composer (Tier 2"
description: "Sends a registered card template to a contact. Gated by RCS_MESSAGING + workspace_rcs_config and requires the contact be RCS-capable (contacts.rcs_capable=true). Returns sent:false (HTTP 200) when not capable or RCS is unavailable, so the composer can surface a clear message. Authenticated workspace agent (Bearer).\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}/agent-send-card`

Sends a registered card template to a contact. Gated by RCS_MESSAGING + workspace_rcs_config and requires the contact be RCS-capable (contacts.rcs_capable=true). Returns sent:false (HTTP 200) when not capable or RCS is unavailable, so the composer can surface a clear message. Authenticated workspace agent (Bearer).

## Authentication

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

## Path parameters

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

## Request body

_Required._

- `contactId` (`post/api/rcs/workspaces/workspaceId/agent-send-card.contactId`; string, required)
- `templateId` (`post/api/rcs/workspaces/workspaceId/agent-send-card.templateId`; string, required) — rcs_content_templates.id

## Example request

```json
{
  "contactId": "string",
  "templateId": "string"
}
```

## Code samples

### cURL

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

### TypeScript

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

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>/agent-send-card"

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

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

print(response.text)
```

## Responses

### 200

sent:true with messageSid and requested channel (RCS or the SMS equivalent for an untagged contact); sent:false with a reason otherwise.

### 400

Missing contactId or templateId.

### 401

Authentication required

#### Example

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

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

### 403

Membership in the path workspace is required.

### 503

Identity or workspace access verification is temporarily unavailable.


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