Skip to content

Receiving & conversations

Tested on 28 November 2026 against a local build of the current Simline API, with a simulated test phone that reports sent and delivered like a real one.

When a text arrives on a paired phone, the Simline app forwards it to your workspace (and keeps retrying until the server confirms it). It becomes a message with direction: "inbound" and status: "received", threaded with your outbound texts by contact.

There are two ways to find out about new texts:

  • Webhooks (recommended): a signed message.received POST to your server within moments. See Webhooks.
  • Reading: the endpoints below, with a key that has the read scope.

GET /v1/messages lists every message, newest first. Filter with direction, contact, status and deviceId:

Terminal window
curl "https://api.simline.dev/v1/messages?direction=inbound&limit=20" \
-H "Authorization: Bearer $SIMLINE_API_KEY"
{
"messages": [
{
"id": "msg_4bc040e9933401a74c070d17af89271a",
"direction": "inbound",
"status": "received",
"finalStatus": true,
"channel": "sms",
"contact": "+33600000042",
"body": "Bonjour, est-ce que la tarte aux pommes est prête ?",
"deviceId": "dev_local",
"simSlot": 0,
"readAt": null,
...
}
],
"nextCursor": "WzE3OTU4NzI0MDI2NzksIisxMjEyNTU1MDE0MiJd"
}

deviceId and simSlot tell you which phone and SIM got the text. Pass them back as from to reply on the same line. contact is usually an E.164 number, but can be an alphanumeric sender name (a bank, a delivery service) for inbound texts.

A conversation is everything exchanged with one contact. GET /v1/conversations returns one row per contact, most recent first, with the last message, how many inbound texts are unread, and the phone and SIM it last used:

{
"conversations": [
{
"contact": "+12125550142",
"unreadCount": 0,
"lastMessageAt": "2026-11-28T13:26:42.679Z",
"lastMessage": { "id": "msg_aba08b6cb24b8d7962a5355954980070", "direction": "outbound", "status": "delivered", ... },
"lastDeviceId": "dev_local",
"lastSimSlot": 0
}
],
"nextCursor": "WzE3OTU4NzI0MDI2NzksIisxMjEyNTU1MDE0MiJd"
}

GET /v1/conversations/{contact} returns one thread, both directions, newest first. URL-encode the contact: +33600000042 becomes %2B33600000042.

Terminal window
curl https://api.simline.dev/v1/conversations/%2B33600000042 \
-H "Authorization: Bearer $SIMLINE_API_KEY"

When you’ve shown or handled the texts, mark them read. It sets readAt on the contact’s inbound messages and resets unreadCount (the dashboard shows the same state):

Terminal window
curl -X POST https://api.simline.dev/v1/conversations/%2B33600000042/read \
-H "Authorization: Bearer $SIMLINE_API_KEY"
# 204

List endpoints return up to limit items (1–100, default 50) and a nextCursor. Pass it back as ?cursor= for the next page; null means you’ve reached the end.

const headers = { Authorization: `Bearer ${process.env.SIMLINE_API_KEY}` }
async function* allInbound() {
let cursor = null
do {
const url = new URL("https://api.simline.dev/v1/messages")
url.searchParams.set("direction", "inbound")
url.searchParams.set("limit", "100")
if (cursor) url.searchParams.set("cursor", cursor)
const page = await fetch(url, { headers }).then((r) => r.json())
yield* page.messages
cursor = page.nextCursor
} while (cursor)
}
for await (const m of allInbound()) console.log(m.createdAt, m.contact, m.body)

Message history follows your plan: 7 days on Free, 1 year on Pro, 2 years on Team. Each conversation’s last message is always kept. See Billing & limits.

An inbound text that is exactly a stop keyword (STOP, UNSUBSCRIBE, ARRÊT…) is stored like any other text and also opts the contact out of your workspace. See STOP and opt-outs.