curl -X DELETE https://api.60db.ai/agents/phone-lines/LINE_ID \
-H "Authorization: Bearer your-api-key"
await client.agents.phoneLines.delete(lineId);
client.agents.phone_lines.delete(line_id)
Agents
Delete Phone Line
Remove a phone line. Agents can no longer call from it.
DELETE
/
agents
/
phone-lines
/
{lineId}
curl -X DELETE https://api.60db.ai/agents/phone-lines/LINE_ID \
-H "Authorization: Bearer your-api-key"
await client.agents.phoneLines.delete(lineId);
client.agents.phone_lines.delete(line_id)
Remove a phone line. Agents can no longer call from it. For a 60db number, its SIP login is revoked. Your 60db number stays in Dialer, and you can add it again later. Calls already made from the line keep their history.
Request
Headers
string
required
Bearer token with your API key (scope
agents)Path
string
required
The phone line
id (UUID)Response
200 OK{
"success": true,
"data": { "deleted": true }
}
Errors
| Status | Code | Meaning |
|---|---|---|
| 404 | PHONE_LINE_NOT_FOUND | No phone line with this ID in your workspace |
| 502 | AGENTS_UPSTREAM_UNAVAILABLE | The call runtime could not remove the line. It was not deleted. Retry shortly |
Example
curl -X DELETE https://api.60db.ai/agents/phone-lines/LINE_ID \
-H "Authorization: Bearer your-api-key"
await client.agents.phoneLines.delete(lineId);
client.agents.phone_lines.delete(line_id)