---
title: "Send an email or a reply to a visible Calling contact"
description: "Workspace and recipient are resolved server-side. Email opt-out and Sandbox Mode are checked before sending. Reply headers come only from the original email under the same contact and workspace. Unknown send outcomes must not be retried automatically."
---

> 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 › Messages

`POST /api/call-center/contacts/{contactId}/emails`

Workspace and recipient are resolved server-side. Email opt-out and Sandbox Mode are checked before sending. Reply headers come only from the original email under the same contact and workspace. Unknown send outcomes must not be retried automatically.

## Authentication

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

## Path parameters

- `contactId` (`post/api/call-center/contacts/contactId/emails.path.contactId`; string, required)
  - format `uuid`

## Request body

_Required._

- `recipient` (`post/api/call-center/contacts/contactId/emails.recipient`; string, required) — Current displayed recipient; compared server-side and never overrides the contact address
  - format `email`
- `subject` (`post/api/call-center/contacts/contactId/emails.subject`; string, required)
  - maxLength 200
- `message` (`post/api/call-center/contacts/contactId/emails.message`; string, required)
  - maxLength 20000
- `replyToId` (`post/api/call-center/contacts/contactId/emails.replyToId`; string, optional)
  - format `uuid`

## Example request

```json
{
  "recipient": "user@example.com",
  "subject": "string",
  "message": "string",
  "replyToId": "019c0f01-e197-45eb-8a17-c9811c373be9"
}
```

## Code samples

### cURL

```bash
curl --request POST \
  --url 'https://api.channelautomation.com/api/call-center/contacts/<contactId>/emails' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "recipient": "user@example.com",
  "subject": "string",
  "message": "string",
  "replyToId": "019c0f01-e197-45eb-8a17-c9811c373be9"
}
'
```

### TypeScript

```typescript
const url = 'https://api.channelautomation.com/api/call-center/contacts/<contactId>/emails';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({
    recipient: 'user@example.com',
    subject: 'string',
    message: 'string',
    replyToId: '019c0f01-e197-45eb-8a17-c9811c373be9'
  })
};

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/call-center/contacts/<contactId>/emails"

payload = {
    "recipient": "user@example.com",
    "subject": "string",
    "message": "string",
    "replyToId": "019c0f01-e197-45eb-8a17-c9811c373be9"
}
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

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

print(response.text)
```

## Responses

### 200

Provider accepted the email; persisted indicates history-save outcome

### 400

Invalid subject

### 401

Sign-in required

### 403

Access

### 404

Contact or original email not in selected workspace/contact

### 409

Missing email address or usable thread reference

### 502

Acceptance unknown; check history before another send

### 503

Access or recipient could not be verified


Source: https://developer.channelautomations.com/api/post-api-call-center-contacts-contact-id-emails/index.md
