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
| Name | In | Description |
|---|---|---|
idrequired | path | string |
Response
200 — The message
| Field | Description |
|---|---|
idrequired | string · pattern ^msg_[A-Za-z0-9]+$ |
directionrequired | "outbound" | "inbound" |
statusrequired | "queued" | "dispatched" | "accepted" | "sent" | "delivered" | "failed" | "received" |
finalStatusrequired | 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. |
channelrequired | "sms" | "imessage" | "sms_or_imessage" Outbound: the channel asked for (narrowed to what the device can do). Inbound: what the text arrived as. |
contactrequired | string The other party: E.164, or an alphanumeric sender for inbound. |
bodyrequired | string |
deviceId | string | null |
simSlot | integer | null |
parts | integer | null |
attemptrequired | integer |
errorCode | string | null |
idempotencyKey | string | null |
apiKeyId | string | null |
userId | string | null |
agentId | string | null |
createdAtrequired | string · date-time |
updatedAtrequired | string · date-time |
sentAt | string | null · date-time |
deliveredAt | string | null · date-time |
readAt | string | null · date-time |
events | array of TimelineEntry |
{ "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.
| Status | error | When |
|---|---|---|
| 401 | unauthorized | Missing or invalid API key / session |
| 403 | forbidden | API key lacks the required scope |
| 404 | not_found | Not found |
| 500 | internal | Internal 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.
curl "https://api.simline.dev/v1/messages/msg_4e03f88dc3ae3e703ee205e19b5ad9c7" \ -H "Authorization: Bearer $SIMLINE_API_KEY"const res = await fetch("https://api.simline.dev/v1/messages/msg_4e03f88dc3ae3e703ee205e19b5ad9c7", { headers: { Authorization: `Bearer ${process.env.SIMLINE_API_KEY}` }})if (!res.ok) { const err = await res.json() throw new Error(`${res.status} ${err.error}: ${err.message}`)}console.log(await res.json())import os
import requests
r = requests.get( "https://api.simline.dev/v1/messages/msg_4e03f88dc3ae3e703ee205e19b5ad9c7", headers={"Authorization": f"Bearer {os.environ['SIMLINE_API_KEY']}"}, timeout=15,)if not r.ok: err = r.json() raise RuntimeError(f"{r.status_code} {err['error']}: {err['message']}")print(r.json())