1. When to use SLA
Use a shared line when a team answers one identity together and anyone on the team may take over a live call:- Reception desk — the company’s main number rings on every device at the front desk; whoever is free answers.
- Executive assistant — the exec’s line appears on the assistant’s phone; the assistant screens, answers, and can hand the call to the exec without a transfer sequence.
- Coverage pairs — two agents covering the same window see the other’s line go busy and grab it when one steps away.
2. Create a shared line
Create the line first, then add members.POST /api/v1/voice/shared-lines requires a role with write access (owner, admin, or developer).
cURL
The 201 response returns the created line with an empty
members array — note the id, it goes in every later call. GET /api/v1/voice/shared-lines lists lines with cursor pagination (cursor, limit 1–100, default 50) and a per-line memberCount; GET /:id returns one line with its full roster.
3. Manage the member roster
Members are the devices the line rings.POST /:id/members and DELETE /:id/members/:memberId are write paths (owner/admin/developer).
cURL
Shape rules enforced at write time:
- A
sip_extensionmember must reference a live SIP credential for your organization — an unknown username answers422naming the value.user_idmembers are not existence-checked upfront; the fork layer resolves them at call time. - Each member value can appear once per line — a double-add answers
409(otherwise the fork would invite the same phone twice). - The roster is capped at 50 members — the 51st answers
409. - Removing the last member is allowed; the line simply rings nothing until you re-add one (the DID’s fallback route then covers it — see section 6).
cURL
204. Deleting the whole line (DELETE /api/v1/voice/shared-lines/:id) removes its roster too — there is no soft delete.
4. Poll live status
GET /:id/status is a read-only, side-effect-free endpoint the Shared Lines dashboard page polls to draw the busy lamp and decide whether to offer Grab. Front-desk roles can read it (owner, admin, developer, agent).
cURL
200 — line idle
200 — line busy
activeCall semantics — the busy lamp is accurate on purpose:
activeCall: nullmeans the line is idle. Only a call that actually arrived on the line (dialed to itsprimaryExtension, or arrives via a DID routed to this line) marks it busy. A member’s private or outbound call on their own phone never lights the line up.onDeviceUsernameis the SIP username of the member device currently holding the call. It isnullwhen the line demonstrably has a call but the answering device hasn’t been correlated yet (mid-bridge) — the field is never a guess.- Poll on a short interval (the dashboard does); the endpoint is safe to hit repeatedly.
5. Grab an in-use call
Grab moves the line’s currently answered call from whichever device answered onto your own device — the receptionist-assistant handoff without a transfer menu.POST /:id/grab is a live-call action open to agent role as well as operators.
cURL
grabbingMemberValue must be a sip_extension member of this line’s roster with canGrab true — the receiving device, not the device that answered.
The full walkthrough:
- Line is active (409 otherwise). An
inactiveline cannot be grabbed. - You must be on the roster with grab permission (403). A
grabbingMemberValuethat isn’t asip_extensionmember of this line, or hascanGrab: false, is rejected with403— the membership flag is the gate, not just the roster. - The line must have an answered call (404 otherwise). Grabbing while
activeCallis null answers404. Only a call on the line itself can be grabbed; a member’s private call is invisible to this endpoint, so a private call can never be pulled onto a colleague’s phone. - You can’t grab the device already holding it (409). If
onDeviceUsernamewas resolved and equals yourgrabbingMemberValue, the request is a no-op409. - Only one grabber wins (dedup). Claims race on a short atomic window, so two members hitting Grab in the same instant get one
200and one409. A retry of the same request id is equally safe — it reports conflict instead of double-moving the call.
200
6. Point a DID at the line
A shared line has no inbound traffic until a DID routes to it. On the number’s routing config, settype: "shared_line" with config.sharedLineId — the same picker under Numbers → number → Routing and the same API as every other route type (full guide: Pick the right inbound routing for a DID).
cURL
config.ringTimeoutSec is optional (5–120). Set a fallback so a call answers somewhere when the roster is empty or nobody picks up — route-specific notes on fallbacks are in the routing guide. Internal dials straight to the line’s primaryExtension also reach the line without touching a DID.
7. Errors and dedup semantics
The grab claim is atomic (a short-window dedup slot, same primitive used across the live-call endpoints), so safe-retry and racing-members semantics hold: one winner, conflict for the rest, and no double-move.
8. Inbound call alerts
When a call arrives on the line, two surfaces wake up: the browser (every open dashboard session shows the ring) and the mobile app (an incoming-call push that wakes the phone even when it is locked). The alert set matches the ring set on purpose, so you can predict who buzzes before you staff the line.Ring-alert matrix
The per-type config shapes and decision table are in Pick the right inbound routing for a DID; setting up the push surface itself is covered in the mobile app guide.
DND and presence parity
DND is set per extension under Voice → Extensions, and it removes the device from the fork and from the alert in the same step: a member on DND gets no browser ring and no push, and the caller’s ring window simply skips that device. When you federate presence from Microsoft Teams, Slack, or Zoom, the mapping is deliberately asymmetric: a mapped busy status still rings and alerts (busy means “in a call”, not “unreachable”), while a mapped Do Not Disturb status behaves exactly like the extension’s own DND — no ring, no alert.Worked example — reception line, one member on DND
LineReception (primaryExtension 201) with three members: Anna on a desk phone, Ben on the mobile softphone, and Chloe with DND on.
- A caller dials the DID routed
shared_line. The fork rings Anna’s desk phone and Ben’s devices; Chloe’s extension is skipped. - Alerts match the fork: Anna sees the browser ring, Ben gets the browser ring plus the incoming-call push on his phone. Chloe’s phone stays silent — no push, no banner.
- Anna answers.
GET /:id/statusnow reportsactiveCallon her device, and Ben sees the line busy with Grab available because his membership hascanGrabtrue (see section 5). - Chloe’s DND did not remove her from the roster. If her membership allows grab, she can still take an answered call; DND silences rings and alerts, it does not change membership.
- If nobody answers within
ringTimeoutSec, the call follows the route’s fallback — set it when you attach the DID, as in section 6. To text the caller back automatically after a miss, see Missed-call SMS callback.
Webhook routes
A DID routed towebhook runs your own call flow. The platform fires the incoming-call alert when the call arrives, in parallel with fetching your URL; it does not wait for the leg of your flow that eventually rings a person. Because your flow — not the platform — picks the answerer, the alert reaches the whole workspace. If your flow rings someone and nobody answers, the caller follows the route’s fallback; pair it with Missed-call SMS callback to close the loop by text.
Noise control
- Direct-to-mailbox routes never alert.
voicemailanddispatch_to_voicemail_boxring nobody at the routing step, so they produce no incoming-call alert by design. The mailbox’s own notification settings stay the notification path. - Paused or unfinished lines stay quiet. A
shared_lineroute whose line is inactive, deleted, or has an empty roster rings nothing and alerts nothing — no phantom buzzes while you re-staff the line. - All-DND rosters stay quiet. When every member is on DND the fork has no destination, and the alert is suppressed instead of waking the workspace for a call nobody can take.
See also: Pick the right inbound routing for a DID · Mobile app · Missed-call SMS callback · Extensions vs. Colleagues · Paging, ring groups, and call park