Docs menu

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_idstringrequired

    The line (prf_…).

Response

200 OKThe status.

  • object"profile_status"required

  • profile_idstringrequired

    prf_…

  • statusstringrequired

  • state"working" | "having_trouble" | "setting_up" | "suspended" | "retired"required

    Whether the line works right now. having_trouble: sends wait in the queue until it's back.

  • messagestring or nullrequired

    One sentence for people, or null when the line is working.

  • queued_messagesintegerrequired

  • oldest_queued_attimestamp or nullrequired

  • pending_draftsintegerrequired

  • sending_pausedbooleanrequired

    We paused sending (this line, or your whole account) while we review recent activity. Incoming messages still arrive.

Errors

StatusCodeMeans
400validation_failedA field is missing or invalid.
401unauthorizedThe API key is missing, unknown or revoked.
403insufficient_scopeThe API key lacks the scope this needs.
404not_foundNo such object, or the key can't see it.

Every error is { "error": { "code", "message" } }. All error codes.

Keys come with your first line.

Request an invite and we'll set up a line for your team. API access is part of every plan.

Request an invite