Docs menu

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_idstringrequired

    The line (prf_…).

Response

200 OKCalling on the line.

  • object"calling"required

  • enabledbooleanrequired

  • phone_numberstring or nullrequired

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

  • can_place_callsbooleanrequired

  • can_receive_callsbooleanrequired

  • problemsarray of stringrequired

    Only ones the team can fix: payment_required, calling_not_subscribed, spending_cap_reached, calling_suspended, fair_use_paused.

  • messagestring or nullrequired

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