List lines
Every line of your company (or the one line an ephemeral key is restricted to), with its network state.
Every line of your company (or the one line an ephemeral key is restricted to), with its network state.
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`.
Create an ephemeral key POST
Creates a short-lived key (15 minutes) that a browser uses instead of your API key, with the STUN and TURN servers it needs for WebRTC. Call it from your server, then hand the response to the browser. An ephemeral key can list lines, open WebRTC sessions and place, answer or hang up calls. It cannot send SMS or manage webhooks. A call or session already open keeps working after the key expires.