Skip to content

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=. limit is 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/mcp with an agent key instead: see AI agents & MCP.

Endpoints

Messages

GET/v1/messagesList messages, newest first
POST/v1/messagesSend an SMS
GET/v1/messages/{id}Get a message with its status timeline

Conversations

GET/v1/conversationsOne row per contact, most recent first
GET/v1/conversations/{contact}A thread with one contact, newest first
POST/v1/conversations/{contact}/readMark every inbound message from this contact read

Webhooks

GET/v1/webhooksList webhook endpoints
POST/v1/webhooksCreate 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-secretRotate the signing secret
POST/v1/webhooks/{id}/testSend a webhook.test event now and return the result
GET/v1/webhooks/{id}/deliveriesThe endpoint's last 100 deliveries, newest first
GET/v1/webhooks/{id}/attemptsDelivery 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}/replayDeliver the same event again as a new delivery

API keys

GET/v1/keysList live API keys
POST/v1/keysCreate an API key
DELETE/v1/keys/{id}Revoke an API key

Spec

GET/v1/openapi.jsonThis document

Schemas

ApiKey

FieldDescription
id
required
string
workspaceId
required
string
name
required
string
prefix
required
string
First characters of the key, for recognising it.
scopes
required
array of "send" | "read"
createdBystring | null
createdAt
required
string · date-time
lastUsedAtstring | null · date-time

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

TimelineEntry

FieldDescription
state
required
string
attempt
required
integer
at
required
string · date-time
errorCodestring
partsinteger

Conversation

FieldDescription
contact
required
string
unreadCount
required
integer
lastMessageAt
required
string · date-time
lastMessage
required
Message
lastDeviceIdstring | null
lastSimSlotinteger | 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

FieldDescription
id
required
string · pattern ^whe_
workspaceId
required
string
url
required
string · uri
descriptionstring | null
events
required
array of "message.received" | "message.sent" | "message.delivered" | "message.failed" | "device.online" | "device.offline"
deviceIdsarray of string | null
null = every device
enabled
required
boolean
disabledReasonstring | null
failing: auto-disabled after 3 days of failed deliveries
failingSincestring | null · date-time
secretPrefix
required
string
createdAt
required
string · date-time
updatedAt
required
string · date-time

WebhookDelivery

FieldDescription
id
required
string · pattern ^whd_
endpointId
required
string
eventId
required
string · pattern ^evt_
Stable across retries and replays: dedupe on it.
eventType
required
string
replayOfstring | null
status
required
"pending" | "succeeded" | "failed"
failed: dead-lettered after 8 attempts
attempts
required
integer
nextAttemptAtstring | null · date-time
lastStatusCodeinteger | null
lastErrorstring | null
createdAt
required
string · date-time
completedAtstring | null · date-time

WebhookAttempt

FieldDescription
id
required
integer
deliveryId
required
string
eventId
required
string
eventType
required
string
attempt
required
integer
ok
required
boolean
statusCodeinteger | null
errorstring | null
timeout | network | redirect | blocked_url | endpoint_disabled
latencyMs
required
integer
responseSnippetstring | null
First 500 characters of the response body
at
required
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.

FieldDescription
id
required
string · pattern ^evt_
type
required
string
createdAt
required
string · date-time
data
required
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)