06 Line
API

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.

GET
/v1/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.

Authorization

apiKey
headerAuthorizationBearer <token>

Your API key, 06l_…. For servers only.

Query Parameters

line_id?string

Only this line.

Match^line_[0-9a-z]{26}$
peer?string

Only exchanges with this number (E.164), for the history with one contact.

Match^\+[1-9][0-9]{6,14}$
before?string

Cursor from the previous page (next_cursor).

limit?integer
Range1 <= value <= 100
Default50

Response Body

OK.

application/json
  1. response
messages*array<>
next_cursor*|

Null on the last page.

Example Request
curl -X GET 'https://api.06line.com/v1/sms'
Example Response
{  "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}