List lines
Every line of your company, with its network state. An ephemeral key restricted to a line sees that line only.
Every line of your company, with its network state. An ephemeral key restricted to a line sees that line only.
AuthorizationBearer <token>Your API key, 06l_…. For servers only.
OK.
application/json- response
lines*array<>curl -X GET 'https://api.06line.com/v1/lines'{ "lines": [ { "id": "line_01jbq5a3x9e2k7m4t6v8r0c1yb", "phone_number": "+33612345678", "status": "active", "online": true, "signal": 3, "network": "4g" } ]}List calls GET
Placed and received calls of your company, newest first. Same filters and paging as `GET /v1/sms`. An ephemeral key restricted to a line lists the calls of that line only.
Create an ephemeral key POST
Creates a short-lived key (15 minutes) that a browser uses instead of your API key, with the ICE servers it needs for WebRTC. Call it from your server, then hand the response to the browser. An ephemeral key can list lines, open and close WebRTC sessions, place, answer, hang up and list calls, and download their recordings. It cannot send or read SMS, read or manage webhook endpoints, nor create ephemeral keys (`403`). Restricted to a line, it sees that line only: other lines, their calls and sessions answer `404`, and placing a call on another line `403`. A call or session already open keeps working after the key expires.