Skip to content

Get a message with its status timeline

GET/v1/messages/{id}Key · read

Get a message with its status timeline (scope read).

Authentication

API key: Authorization: Bearer sl_live_… with the read scope. The dashboard session works too.

An API key always acts in its own workspace. With a dashboard session, pass ?workspaceId= to choose the workspace (default: your first).

Parameters

NameInDescription
id
required
path

string

Response

200 — The message

FieldDescription
id
required
string · pattern ^msg_[A-Za-z0-9]+$
direction
required
"outbound" | "inbound"
status
required
"queued" | "dispatched" | "accepted" | "sent" | "delivered" | "failed" | "received"
finalStatus
required
boolean
True once status will not change: delivered, failed, received, or sent from a device without delivery reports (an iPhone through Simline for Mac). Stop polling or waiting for webhooks when it is true.
channel
required
"sms" | "imessage" | "sms_or_imessage"
Outbound: the channel asked for (narrowed to what the device can do). Inbound: what the text arrived as.
contact
required
string
The other party: E.164, or an alphanumeric sender for inbound.
body
required
string
deviceIdstring | null
simSlotinteger | null
partsinteger | null
attempt
required
integer
errorCodestring | null
idempotencyKeystring | null
apiKeyIdstring | null
userIdstring | null
agentIdstring | null
createdAt
required
string · date-time
updatedAt
required
string · date-time
sentAtstring | null · date-time
deliveredAtstring | null · date-time
readAtstring | null · date-time
eventsarray of TimelineEntry
200 example (values are illustrative)
{
"id": "msg_4e03f88dc3ae3e703ee205e19b5ad9c7",
"direction": "outbound",
"status": "queued",
"finalStatus": false,
"channel": "sms",
"contact": "+12125550142",
"body": "Hi Maya, your order #1042 is ready for pickup.",
"deviceId": "dev_8fK2mQ4xR7sT1bV6hN3cYw",
"simSlot": 0,
"parts": 1,
"attempt": 1,
"errorCode": "errorCode",
"idempotencyKey": "order-1042-ready",
"apiKeyId": "apiKeyId",
"userId": "userId",
"agentId": "agentId",
"createdAt": "2026-11-28T09:13:57.390Z",
"updatedAt": "2026-11-28T09:13:57.390Z",
"sentAt": "2026-11-28T09:13:57.390Z",
"deliveredAt": "2026-11-28T09:13:57.390Z",
"readAt": "2026-11-28T09:13:57.390Z",
"events": [
{
"state": "state",
"attempt": 1,
"at": "2026-11-28T09:13:57.390Z",
"errorCode": "errorCode",
"parts": 1
}
]
}

Errors

Errors are JSON: {"error": "<code>", "message": "<a sentence>"}. Branch on error, show message. Every code is explained in Errors.

StatuserrorWhen
401unauthorizedMissing or invalid API key / session
403forbiddenAPI key lacks the required scope
404not_foundNot found
500internalInternal error

Examples

Set SIMLINE_API_KEY to your key first. Node examples use the built-in fetch (Node 18+, run as an ES module); Python uses requests.

Terminal window
curl "https://api.simline.dev/v1/messages/msg_4e03f88dc3ae3e703ee205e19b5ad9c7" \
-H "Authorization: Bearer $SIMLINE_API_KEY"