API reference
Generated at build time from the API's own OpenAPI 3.1.0 document (version 1.0.0), the same one served at https://api.simline.dev/v1/openapi.json. A copy of this build's document is at /docs/openapi.json, ready for Postman, Insomnia or a client generator.
Basics
- Base URL:
https://api.simline.dev. HTTPS only, JSON in and out. - Authentication:
Authorization: Bearer sl_live_…with the scopes each endpoint lists. See Authentication & API keys. - Errors:
{"error": "…", "message": "…"}with an HTTP status. Every code. - Pagination: list endpoints return
nextCursor; pass it back as?cursor=.limitis 1–100 (default 50). - Times are ISO 8601 in UTC. Phone numbers are E.164 (
+12125550142); URL-encode them in paths (%2B12125550142). - AI agents use the MCP server at
https://api.simline.dev/mcpwith an agent key instead: see AI agents & MCP.
Endpoints
Messages
| GET | /v1/messages | List messages, newest first |
| POST | /v1/messages | Send an SMS |
| GET | /v1/messages/{id} | Get a message with its status timeline |
Conversations
| GET | /v1/conversations | One row per contact, most recent first |
| GET | /v1/conversations/{contact} | A thread with one contact, newest first |
| POST | /v1/conversations/{contact}/read | Mark every inbound message from this contact read |
Webhooks
| GET | /v1/webhooks | List webhook endpoints |
| POST | /v1/webhooks | Create a webhook endpoint |
| GET | /v1/webhooks/{id} | Get a webhook endpoint |
| PATCH | /v1/webhooks/{id} | Update a webhook endpoint |
| DELETE | /v1/webhooks/{id} | Delete a webhook endpoint and its delivery log |
| POST | /v1/webhooks/{id}/rotate-secret | Rotate the signing secret |
| POST | /v1/webhooks/{id}/test | Send a webhook.test event now and return the result |
| GET | /v1/webhooks/{id}/deliveries | The endpoint's last 100 deliveries, newest first |
| GET | /v1/webhooks/{id}/attempts | Delivery log: the endpoint's last 100 attempts, newest first |
| GET | /v1/webhook-deliveries/{id} | A delivery with its payload and attempts |
| POST | /v1/webhook-deliveries/{id}/replay | Deliver the same event again as a new delivery |
API keys
| GET | /v1/keys | List live API keys |
| POST | /v1/keys | Create an API key |
| DELETE | /v1/keys/{id} | Revoke an API key |
Spec
| GET | /v1/openapi.json | This document |
Schemas
ApiKey
| Field | Description |
|---|---|
idrequired | string |
workspaceIdrequired | string |
namerequired | string |
prefixrequired | string First characters of the key, for recognising it. |
scopesrequired | array of "send" | "read" |
createdBy | string | null |
createdAtrequired | string · date-time |
lastUsedAt | string | null · date-time |
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 |
TimelineEntry
| Field | Description |
|---|---|
staterequired | string |
attemptrequired | integer |
atrequired | string · date-time |
errorCode | string |
parts | integer |
Conversation
| Field | Description |
|---|---|
contactrequired | string |
unreadCountrequired | integer |
lastMessageAtrequired | string · date-time |
lastMessagerequired | Message |
lastDeviceId | string | null |
lastSimSlot | integer | null |
From
"auto" (least-busy connected phone, default SIM), a device id (dev_…), a SIM id (sim_…), the SIM's phone number, or { deviceId, simSlot }.
string | object — "auto" (least-busy connected phone, default SIM), a device id (dev_…), a SIM id (sim_…), the SIM's phone number, or { deviceId, simSlot }.
Webhook
| Field | Description |
|---|---|
idrequired | string · pattern ^whe_ |
workspaceIdrequired | string |
urlrequired | string · uri |
description | string | null |
eventsrequired | array of "message.received" | "message.sent" | "message.delivered" | "message.failed" | "device.online" | "device.offline" |
deviceIds | array of string | null null = every device |
enabledrequired | boolean |
disabledReason | string | nullfailing: auto-disabled after 3 days of failed deliveries |
failingSince | string | null · date-time |
secretPrefixrequired | string |
createdAtrequired | string · date-time |
updatedAtrequired | string · date-time |
WebhookDelivery
| Field | Description |
|---|---|
idrequired | string · pattern ^whd_ |
endpointIdrequired | string |
eventIdrequired | string · pattern ^evt_ Stable across retries and replays: dedupe on it. |
eventTyperequired | string |
replayOf | string | null |
statusrequired | "pending" | "succeeded" | "failed"failed: dead-lettered after 8 attempts |
attemptsrequired | integer |
nextAttemptAt | string | null · date-time |
lastStatusCode | integer | null |
lastError | string | null |
createdAtrequired | string · date-time |
completedAt | string | null · date-time |
WebhookAttempt
| Field | Description |
|---|---|
idrequired | integer |
deliveryIdrequired | string |
eventIdrequired | string |
eventTyperequired | string |
attemptrequired | integer |
okrequired | boolean |
statusCode | integer | null |
error | string | null timeout | network | redirect | blocked_url | endpoint_disabled |
latencyMsrequired | integer |
responseSnippet | string | null First 500 characters of the response body |
atrequired | string · date-time |
WebhookEvent
What Simline POSTs. Headers: Simline-Signature: t=…,v1=… (HMAC-SHA256 of t + "." + body), Simline-Event-Id, Simline-Event-Type, Simline-Delivery-Id, Simline-Attempt.
| Field | Description |
|---|---|
idrequired | string · pattern ^evt_ |
typerequired | string |
createdAtrequired | string · date-time |
datarequired | any message.*: the Message; device.*: { deviceId, name, status, presence, at } (presence: connected, unreachable, update_required (the app is below the minimum supported version) or unpaired) |