Skip to content
You're reading the reference for API version 2026-10-01. See what changed.

Messages

A message is a single text sent to one recipient. Its status moves from queued to sent to delivered (or failed).

Field Type Description
id string Unique ID, starting with msg_
to string Recipient in E.164 format
body string The text that was sent
status string queued, scheduled, sent, delivered, failed or canceled
parts integer How many segments the body used
send_at string or null Scheduled time, if any
created_at string ISO 8601 timestamp

POST/v1/messages

Sends a message now, or schedules it with send_at.

Name Type Required Description
to string Yes Recipient phone number in E.164 format
body string One of body or template Up to 1,600 characters
template string One of body or template A template ID from the dashboard
variables object No Values for the template’s placeholders
send_at string No ISO 8601 time, up to 30 days ahead
metadata object No Up to 20 keys of your own data, returned in webhooks
curl https://api.tidewire.example/v1/messages \
-H "Authorization: Bearer $TIDEWIRE_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: 6f1c2b7e-order-1042" \
-d '{
"to": "+15550100",
"body": "Your order #1042 is on its way.",
"metadata": { "order_id": "1042" }
}'
Response: 202 Accepted
{
"id": "msg_9Hc2Lr7Qx",
"to": "+15550100",
"body": "Your order #1042 is on its way.",
"status": "queued",
"parts": 1,
"send_at": null,
"metadata": { "order_id": "1042" },
"created_at": "2026-11-02T16:04:09Z"
}

GET/v1/messages/{id}

Returns a message by its ID.

curl https://api.tidewire.example/v1/messages/msg_9Hc2Lr7Qx \
-H "Authorization: Bearer $TIDEWIRE_API_KEY"

GET/v1/messages

Returns messages, newest first.

Name Type Description
status string Only return messages with this status
to string Only return messages sent to this number
limit integer 1 to 100, default 25
cursor string The next_cursor from the previous page
curl "https://api.tidewire.example/v1/messages?status=failed&limit=10" \
-H "Authorization: Bearer $TIDEWIRE_API_KEY"

Cancel a scheduled message Scheduled only

Section titled “Cancel a scheduled message ”
DELETE/v1/messages/{id}

Cancels a message that hasn’t been sent yet. Returns the message with status set to canceled.

curl -X DELETE https://api.tidewire.example/v1/messages/msg_9Hc2Lr7Qx \
-H "Authorization: Bearer $TIDEWIRE_API_KEY"