List SMS
Sent and received messages of your company, newest first. Filter by `line_id`, by `peer` for the history with one contact, or both. Pass `next_cursor` as `before` to get the next page.
Sent and received messages of your company, newest first. Filter by line_id, by peer for the history with
one contact, or both. Pass next_cursor as before to get the next page.
apiKeyAuthorizationBearer <token>Your API key, 06l_…. For servers only.
line_id?stringOnly this line.
^line_[0-9a-z]{26}$peer?stringOnly exchanges with this number (E.164), for the history with one contact.
^\+[1-9][0-9]{6,14}$before?stringCursor from the previous page (next_cursor).
limit?integer1 <= value <= 10050OK.
application/json- response
messages*array<>next_cursor*|Null on the last page.
curl -X GET 'https://api.06line.com/v1/sms'{ "messages": [ { "id": "sms_01jbq6c2v8d4n1k5r7t9x3e6za", "line_id": "line_01jbq5a3x9e2k7m4t6v8r0c1yb", "direction": "outbound", "from": "+33612345678", "to": "+33698765432", "text": "Your appointment is confirmed for tomorrow at 10:00.", "encoding": "gsm7", "segments": 1, "status": "queued", "client_ref": "order-4821-confirmation", "incomplete": false, "created_by": { "type": "api_key", "id": "key_01jbq4fz0c8w2n5r7t9y1b3d6f" }, "created_at": "2026-10-21T14:03:11Z" } ], "next_cursor": null}Send an SMS POST
Queues an SMS on one of your lines and returns it with `status: queued`. Long texts are split into segments (153 GSM-7 or 67 UCS-2 characters each), up to 10. Delivery is reported by the `sms.status` webhook. Sending the same `client_ref` again returns the first message (`200`) instead of sending a second one.
Get an SMS GET
One message, with its current status.