List and inspect phone lines
List every phone line of your workspace, or fetch one by itsid. Both return the same line object.
Requires a tenant-scoped key. With an OAuth / MCP token, the user must be an Owner or Admin (
phone_lines:read) — 403 PERMISSION_DENIED otherwise.GET /v1/phone-lines — List your lines
Returns the lines of the key’s workspace, newest purchase first. By default only the lines you still hold (ACTIVE, PAYMENT_PENDING, SUSPENDED); add includeClosed=true to include the finished ones (RETURNED, CANCELED).
true or 1 includes finished lines; false, 0 or absent leaves them out. Any other value (case-sensitive: TRUE is refused) → 400 INVALID_QUERY.Fetch one line
GET /v1/phone-lines/{id} returns { "line": { … } } for one line of your workspace, finished lines included.
{id} is the line’s id (from the list, or lineId in the purchase result) — not the phone number. A line of another workspace answers 404 LINE_NOT_FOUND, the same as one that does not exist.
Line object fields
The name your team gave the line in the dashboard (Edit name, the pencil next to the line’s name on its page), up to 60 characters — like a WhatsApp number’s
name in GET /v1/numbers. Never empty: a line without a name returns its formatted number, the same as display — and every line is bought without one. It cannot be set or changed through the API. It is a label: identify the line by its id.ACTIVE, PAYMENT_PENDING, SUSPENDED, RETURNED or CANCELED. See the line lifecycle.What this line costs per month — the price of its next renewal (e.g.
33.9). It is the price the line was bought at, unless your workspace has its own phone line price: then it is that price, on lines bought before it too.ISO 8601 — when the line was bought. Renewals count from it: the same day each month, or the month’s last day when that day does not exist — and that shorter day then sticks.
ISO 8601 — end of the paid period. The next renewal is attempted in the first hourly billing run after it. For a line cancelled at period end, when it becomes
CANCELED.true after a DELETE on an ACTIVE line: it will not renew and becomes CANCELED at currentPeriodEnd.ISO 8601 — when the renewal charge failed. The line is suspended 2 days after this.
null once a renewal succeeds.ISO 8601 — when the line was suspended. It is returned 1 day after this.
null once a renewal succeeds.How many code requests were opened on this line so far. A
POST …/activations that answered 503 is not counted.On a
PAYMENT_PENDING or SUSPENDED line, what paying it now charges: the amount of its overdue period, fixed when that period was first charged. It can differ from price when the workspace’s own phone line price changed after the renewal failed. null on any other line — it owes nothing now.status is the field to branch on. The timestamps explain how a line got there; currentPeriodEnd does not move while a renewal is unpaid, so on a PAYMENT_PENDING or SUSPENDED line it is already in the past. returnedAt and canceledAt can appear a moment before status changes, while the carrier confirms the return or cancellation.