List lines
GET/v1/profiles
- Any API key
The lines this key can use, oldest first. A key limited to some lines sees only those.
Response
200 OKThe lines.
dataarray of ProfilerequiredFields of
dataidstringrequiredprf_…object"profile"requiredslugstringrequiredlabelstring or nullrequiredstatusstringrequiredprovisioning,active,offline,suspendedorretired. Preferstate.state"working" | "having_trouble" | "setting_up" | "suspended" | "retired"requiredWhether the line works right now.
having_trouble: sends wait in the queue until it's back.phone_numberstring or nullrequiredThe line's number, E.164.
calling_on_planbooleanrequiredCalling is on the plan for this line.
call_forwardingobjectrequiredForwarding of the line's calls to another number (lines without Calling).
Fields of
call_forwardingforward_tostring or nullrequiredstatus"off" | "requested" | "on"required
sending_pausedbooleanrequiredWe paused sending on this line or your whole account while we review recent activity. Incoming messages still arrive; sends answer
403 sending_paused.created_attimestamprequired
has_morebooleanrequiredMore items exist after this page.
Errors
| Status | Code | Means |
|---|---|---|
| 400 | validation_failed | A field is missing or invalid. |
| 401 | unauthorized | The API key is missing, unknown or revoked. |
| 403 | insufficient_scope | The API key lacks the scope this needs. |
| 404 | not_found | No such object, or the key can't see it. |
Every error is { "error": { "code", "message" } }. All error codes.