curl --request POST \
--url https://api.cloudtalk.io/v1/messages \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"to": "+12025550143",
"body": "Hi Jane, your order ships today."
}
'{
"id": "918273",
"conversationId": "55120",
"direction": "outbound",
"channel": "sms",
"externalNumber": "+12025550143",
"internalNumber": {
"id": "3104",
"numberE164": "+12025550100",
"internalName": "Support line",
"numberType": "fixed",
"country": "US"
},
"body": "Hi Jane, your order ships today.",
"media": [],
"fragments": 1,
"whatsappTemplate": null,
"status": "queued",
"error": null,
"statusUpdatedAt": "2026-11-12T10:00:00Z",
"sentAt": null,
"deliveredAt": null,
"contact": {
"id": "44210",
"type": "contact",
"name": "Jane Doe",
"company": "Acme Inc.",
"phones": [
"+12025550143"
],
"emails": [
"[email protected]"
]
},
"contactAmbiguous": false,
"user": null,
"createdAt": "2026-11-12T10:00:00Z"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {
"retryable": true,
"candidates": [
{
"id": "<string>",
"numberE164": "<string>",
"internalName": "<string>"
}
]
},
"target": "<string>"
},
"requestId": "<string>"
}{
"code": "UNAUTHORIZED",
"message": "You are not authorized to access this resource."
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {
"retryable": true,
"candidates": [
{
"id": "<string>",
"numberE164": "<string>",
"internalName": "<string>"
}
]
},
"target": "<string>"
},
"requestId": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {
"retryable": true,
"candidates": [
{
"id": "<string>",
"numberE164": "<string>",
"internalName": "<string>"
}
]
},
"target": "<string>"
},
"requestId": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {
"retryable": true,
"candidates": [
{
"id": "<string>",
"numberE164": "<string>",
"internalName": "<string>"
}
]
},
"target": "<string>"
},
"requestId": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {
"retryable": true,
"candidates": [
{
"id": "<string>",
"numberE164": "<string>",
"internalName": "<string>"
}
]
},
"target": "<string>"
},
"requestId": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {
"retryable": true,
"candidates": [
{
"id": "<string>",
"numberE164": "<string>",
"internalName": "<string>"
}
]
},
"target": "<string>"
},
"requestId": "<string>"
}{
"error": {
"code": "MESSAGES.SENDER_REQUIRED",
"message": "No earlier conversation with this recipient on this channel. Pass from; details.candidates lists the numbers that can send to it.",
"target": "from",
"details": {
"candidates": [
{
"id": "3104",
"numberE164": "+12025550100",
"internalName": "Support line"
},
{
"id": "3107",
"numberE164": "+12025550122",
"internalName": "Sales line"
}
],
"retryable": false
}
},
"requestId": "5f0c2a7e-91d4-4c1b-8e2a-3b6d9f1e7a20"
}<string>{
"error": {
"code": "<string>",
"message": "<string>",
"details": {
"retryable": true,
"candidates": [
{
"id": "<string>",
"numberE164": "<string>",
"internalName": "<string>"
}
]
},
"target": "<string>"
},
"requestId": "<string>"
}{
"error": {
"code": "MESSAGES.PROVIDER_ERROR",
"message": "The message provider or billing is unavailable. Nothing was sent; retry later.",
"details": {
"retryable": true
}
},
"requestId": "5f0c2a7e-91d4-4c1b-8e2a-3b6d9f1e7a20"
}Send a message
Sends one SMS, MMS or WhatsApp message from one of your numbers. The answer is 202 with the message, usually in status: queued: accepted for sending, not yet delivered. Follow it with Get a message or the message.delivery_updated webhook. A send also fires message.sent.
Send a body, up to 10 mediaIds from Upload media, or both. On SMS, a message with media goes out as mms. On WhatsApp, outside the 24 hour window after the customer’s last message, send an approved whatsappTemplate instead.
Leave out from to send from the number of your latest conversation with to on this channel. With no earlier conversation you get 422 MESSAGES.SENDER_REQUIRED, and error.details.candidates lists the numbers you can use.
Send an Idempotency-Key to retry safely: the same key and body answers 202 with the message as it is now and Idempotent-Replayed: true, and sends nothing. Keys are kept for 7 days; after that, the same key sends again. If CloudTalk cannot tell whether the message went out, it answers 202 with id: null instead of an error. See Safe retries.
Counts toward your company’s Messaging rate limit, one count shared by the Messages, Conversations, WhatsApp templates and media operations: 60 requests per minute by default. See Rate limiting. Each Bulk send messages call counts once too.
curl --request POST \
--url https://api.cloudtalk.io/v1/messages \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"to": "+12025550143",
"body": "Hi Jane, your order ships today."
}
'{
"id": "918273",
"conversationId": "55120",
"direction": "outbound",
"channel": "sms",
"externalNumber": "+12025550143",
"internalNumber": {
"id": "3104",
"numberE164": "+12025550100",
"internalName": "Support line",
"numberType": "fixed",
"country": "US"
},
"body": "Hi Jane, your order ships today.",
"media": [],
"fragments": 1,
"whatsappTemplate": null,
"status": "queued",
"error": null,
"statusUpdatedAt": "2026-11-12T10:00:00Z",
"sentAt": null,
"deliveredAt": null,
"contact": {
"id": "44210",
"type": "contact",
"name": "Jane Doe",
"company": "Acme Inc.",
"phones": [
"+12025550143"
],
"emails": [
"[email protected]"
]
},
"contactAmbiguous": false,
"user": null,
"createdAt": "2026-11-12T10:00:00Z"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {
"retryable": true,
"candidates": [
{
"id": "<string>",
"numberE164": "<string>",
"internalName": "<string>"
}
]
},
"target": "<string>"
},
"requestId": "<string>"
}{
"code": "UNAUTHORIZED",
"message": "You are not authorized to access this resource."
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {
"retryable": true,
"candidates": [
{
"id": "<string>",
"numberE164": "<string>",
"internalName": "<string>"
}
]
},
"target": "<string>"
},
"requestId": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {
"retryable": true,
"candidates": [
{
"id": "<string>",
"numberE164": "<string>",
"internalName": "<string>"
}
]
},
"target": "<string>"
},
"requestId": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {
"retryable": true,
"candidates": [
{
"id": "<string>",
"numberE164": "<string>",
"internalName": "<string>"
}
]
},
"target": "<string>"
},
"requestId": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {
"retryable": true,
"candidates": [
{
"id": "<string>",
"numberE164": "<string>",
"internalName": "<string>"
}
]
},
"target": "<string>"
},
"requestId": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {
"retryable": true,
"candidates": [
{
"id": "<string>",
"numberE164": "<string>",
"internalName": "<string>"
}
]
},
"target": "<string>"
},
"requestId": "<string>"
}{
"error": {
"code": "MESSAGES.SENDER_REQUIRED",
"message": "No earlier conversation with this recipient on this channel. Pass from; details.candidates lists the numbers that can send to it.",
"target": "from",
"details": {
"candidates": [
{
"id": "3104",
"numberE164": "+12025550100",
"internalName": "Support line"
},
{
"id": "3107",
"numberE164": "+12025550122",
"internalName": "Sales line"
}
],
"retryable": false
}
},
"requestId": "5f0c2a7e-91d4-4c1b-8e2a-3b6d9f1e7a20"
}<string>{
"error": {
"code": "<string>",
"message": "<string>",
"details": {
"retryable": true,
"candidates": [
{
"id": "<string>",
"numberE164": "<string>",
"internalName": "<string>"
}
]
},
"target": "<string>"
},
"requestId": "<string>"
}{
"error": {
"code": "MESSAGES.PROVIDER_ERROR",
"message": "The message provider or billing is unavailable. Nothing was sent; retry later.",
"details": {
"retryable": true
}
},
"requestId": "5f0c2a7e-91d4-4c1b-8e2a-3b6d9f1e7a20"
}Authorizations
HTTP Basic Authentication. Use your API Access Key ID as the username and your API Access Key Secret as the password. Generate keys in the CloudTalk Dashboard under Account -> Settings -> API Keys (https://dashboard.cloudtalk.io/menu/account/settings/API-keys).
Headers
Up to 50 visible ASCII characters without a colon, such as a UUID. Within 7 days, a retry with the same key never sends twice; after that it is a new send. A refused send frees the key.
1 - 50^[\x21-\x39\x3B-\x7E]{1,50}$"3f6c1b2e-7a1d-4a8e-9c55-0d2b7e4f9a10"
Body
Up to 10 ids from Upload media, uploaded in the last 24 hours and not sent yet. Not with whatsappTemplate.
1 - 10 elementsResponse
Accepted for sending: the message, usually with status: queued. A replay returns the message as it is now.
An SMS, MMS or WhatsApp message, sent or received. Fields and the values of channel, status and error.code match the message webhooks, in camelCase.
Delivery status of an outbound message: queued (accepted, not yet with the mobile network), sent (the network took it), delivered (it reached the phone), not_delivered or failed (error says why), seen (read on WhatsApp, best effort). null on inbound messages. A message stays queued until the provider first reports on it. Whether it moves past sent depends on the mobile network and the sending number: where no delivery receipt comes back, it stays sent. New values may be added; handle a value you do not know as still in progress.