Docs API reference
Numbers
The phone numbers on your endpoints, with the agent that answers them and the time of the last inbound call.
Examples read your API key from RELAYDOCK_API_KEY (see Authentication). Paths are relative to https://api.relaydock.io/api/v1.
List numbers
GET/numbers
Returns every number (DID) on your endpoints, sorted, with its endpoint, the LiveKit agent that answers it and the time of its last inbound call.
Example request
curl "https://api.relaydock.io/api/v1/numbers" \
-H "Authorization: Bearer $RELAYDOCK_API_KEY"import os
import requests
response = requests.get(
"https://api.relaydock.io/api/v1/numbers",
headers={"Authorization": f"Bearer {os.environ['RELAYDOCK_API_KEY']}"},
timeout=30,
)
response.raise_for_status()
print(response.json())const response = await fetch('https://api.relaydock.io/api/v1/numbers', {
headers: {
'Authorization': `Bearer ${process.env.RELAYDOCK_API_KEY}`,
},
})
if (!response.ok)
throw new Error(`${response.status} ${await response.text()}`)
console.log(await response.json())Response
200 with a JSON array; each item has these fields.
| Field | Description |
|---|---|
e164 | The number, +E.164. |
endpoint | Where the number's calls arrive. |
endpoint.id | Endpoint ID. |
endpoint.name | Endpoint name. |
endpoint.sip_id | The endpoint's SIP ID. |
endpoint.kind | registration or trunk. |
agent_name | LiveKit agent that answers the number's calls; empty for none. |
last_call_at | When the last inbound call to this number arrived; null if none. |
[
{
"e164": "+12025550123",
"endpoint": {
"id": "3f6c2a1e-8b4d-4c7a-9e21-5d0b7f9a6c13",
"name": "Telnyx · +12025550123",
"sip_id": "ep-7k2m9x4q1z",
"kind": "registration"
},
"agent_name": "my-agent",
"last_call_at": "2026-03-14T09:26:53Z"
}
]