Skip to content

The SMS API, endpoint by endpoint

A plain REST interface over HTTPS. Authenticate with the X-Api-Key header, send JSON, read JSON back. This page lists what each part of the API is for; the interactive reference has every field.

Outbound messages

Single messages, batches with personal fields, scheduled sends you can cancel, and alphanumeric sender names up to 11 characters.

POST/api/v1/send
one recipient; returns id, parts and cost
POST/api/v1/messages
a batch — many recipients, one request
GET/api/v1/messages/{id}
status, parts and cost of one message
DELETE/api/v1/messages/{id}
cancel a scheduled message

Inbound and two-way

Replies to a dedicated Danish number or a keyword on 1204 are stored, pushed to your webhook and readable by polling.

GET/api/v1/inbound
incoming SMS, newest first
GET/api/v1/numbers
your numbers and keyword requests

Verification

We create the code, send it ahead of bulk traffic and check it. Codes are stored hashed.

POST/api/v1/verify/start
send a one-time code
POST/api/v1/verify/check
validate what the user typed

Prices, balance and lookup

Everything your own back office needs to show cost and stop before the balance runs out.

GET/api/v1/rate
price of one message before you send it
GET/api/v1/prices
your full rate card
GET/api/v1/balance
balance and credit
GET/api/v1/lookup
is the number valid and mobile
GET/api/v1/me
which account, plan and scopes this key has

Delivery reports (DLR) and events

Register a webhook URL in the portal or per key. Every event is a POST with JSON and three signature headers; the event id stays the same across retries, so you can deduplicate.

  • sms.queued — accepted and waiting for a route
  • sms.sent — handed to the operator
  • sms.delivered — the handset confirmed it (where the network reports it)
  • sms.failed — with the reason, so you can retry or alert
  • sms.received — an inbound SMS to your number or keyword
POST /hooks/sms   (your endpoint)
X-Lynbro-Event: sms.delivered
X-Lynbro-Event-Id: 0b6c…-uuid
X-Lynbro-Timestamp: 1763400000
X-Lynbro-Signature: v1=9f2c…

{"event": "sms.delivered", "message_id": 23001,
 "to": "+4512345678", "status": "delivered"}

Bulk SMS from code

A batch takes a list of recipients with their own fields, so one request can send a personal text to every row of a customer list. Opted-out numbers are skipped automatically, and dry_run on a batch prices every recipient without sending — useful before a large send-out.

International SMS

The same request reaches 223 countries; the price depends on the destination and is returned in the response. US and Canadian numbers need a registered sender and are offered on request only.

Sender name or own number

Use a text sender (up to 11 letters, digits, spaces, dots or dashes) for one-way traffic, or your own Danish number when recipients should answer. Several senders per account, one default per key.