A thread with one contact, newest first
GET/v1/conversations/{contact}Key · read
A thread with one contact, newest first (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 |
|---|---|---|
contactrequired | path | string — E.164 number or alphanumeric sender, URL-encoded. |
cursor | query | string — |
limit | query | integer |
Response
200 — The thread
| Field | Description |
|---|---|
conversation | Conversation |
messages | array of Message |
nextCursor | string | null |
{ "conversation": { "contact": "+12125550142", "unreadCount": 1, "lastMessageAt": "2026-11-28T09:13:57.390Z", "lastMessage": { "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" }, "lastDeviceId": "lastDeviceId", "lastSimSlot": 1 }, "messages": [ { "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" } ], "nextCursor": "eyJ0IjoiMjAyNi0xMS0yOCJ9"}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 | No messages with this contact |
| 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/conversations/%2B12125550142" \ -H "Authorization: Bearer $SIMLINE_API_KEY"const res = await fetch("https://api.simline.dev/v1/conversations/%2B12125550142", { 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/conversations/%2B12125550142", 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())