Get a line's status
GET/v1/profiles/{profile_id}/status
- Scope
messages:read
Whether the line works right now, how many sends are waiting in its queue, and how many drafts wait for approval.
Parameters
Path
profile_idstringrequiredThe line (
prf_…).
Response
200 OKThe status.
object"profile_status"requiredprofile_idstringrequiredprf_…statusstringrequiredstate"working" | "having_trouble" | "setting_up" | "suspended" | "retired"requiredWhether the line works right now.
having_trouble: sends wait in the queue until it's back.messagestring or nullrequiredOne sentence for people, or null when the line is working.
queued_messagesintegerrequiredoldest_queued_attimestamp or nullrequiredpending_draftsintegerrequiredsending_pausedbooleanrequiredWe paused sending (this line, or your whole account) while we review recent activity. Incoming messages still arrive.
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.