curl https://api.60db.ai/agents/phone-lines \
-H "Authorization: Bearer your-api-key"
const { phone_lines } = await client.agents.phoneLines.list();
lines = client.agents.phone_lines.list()["phone_lines"]
Agents
List Phone Lines
List the phone lines agents can call from
GET
/
agents
/
phone-lines
curl https://api.60db.ai/agents/phone-lines \
-H "Authorization: Bearer your-api-key"
const { phone_lines } = await client.agents.phoneLines.list();
lines = client.agents.phone_lines.list()["phone_lines"]
List the phone lines in your workspace. A phone line is a number that agents call from: a 60db Dialer number (
sixtydb) or your own SIP trunk (byo).
SIP passwords are never returned. A 60db line’s SIP login is managed by 60db. A BYO line shows its domain and username, but not its password.
Request
Headers
string
required
Bearer token with your API key (scope
agents)Response
200 OK{
"success": true,
"data": {
"phone_lines": [
{
"id": "2d8e4f10-6a3b-4c9d-8e7f-0b1a2c3d4e5f",
"kind": "sixtydb",
"name": "+919876543210",
"caller_id": "+919876543210",
"inbound_number": null,
"agent_id": "9c2e1d7a-0b3f-4e6a-8f1d-5a7b9c0e2d44",
"agent_name": "Front desk",
"created_at": "2026-11-03T10:05:00.000Z",
"updated_at": "2026-11-03T10:05:00.000Z"
},
{
"id": "7a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
"kind": "byo",
"name": "Main office trunk",
"caller_id": "+911204567890",
"inbound_number": null,
"agent_id": null,
"agent_name": null,
"domain": "sip.carrier.example.com",
"username": "office-trunk",
"created_at": "2026-11-03T11:00:00.000Z",
"updated_at": "2026-11-03T11:00:00.000Z"
}
],
"inbound_available": false
}
}
| Field | Meaning |
|---|---|
kind | sixtydb (60db Dialer number) or byo (your SIP trunk) |
caller_id | The number shown to callers |
agent_id | The agent this line calls for. null if none |
inbound_number | The number agents answer. null for now |
inbound_available | false while inbound calls are not yet available |
Errors
No endpoint-specific errors. Access and permission errors are listed in Agents.Example
curl https://api.60db.ai/agents/phone-lines \
-H "Authorization: Bearer your-api-key"
const { phone_lines } = await client.agents.phoneLines.list();
lines = client.agents.phone_lines.list()["phone_lines"]