Get a line's calling
GET/v1/profiles/{profile_id}/calling
- Scope
calls:read
Whether the line can place and receive calls right now, and what the team can fix if not (problems).
Parameters
Path
profile_idstringrequiredThe line (
prf_…).
Response
200 OKCalling on the line.
object"calling"requiredenabledbooleanrequiredphone_numberstring or nullrequiredstate"off" | "setting_up" | "working" | "having_trouble" | "suspended"requiredcan_place_callsbooleanrequiredcan_receive_callsbooleanrequiredproblemsarray of stringrequiredOnly ones the team can fix:
payment_required,calling_not_subscribed,spending_cap_reached,calling_suspended,fair_use_paused.messagestring or nullrequired
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.