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"

Response

200 with a JSON array; each item has these fields.

Field Description
e164stringThe number, +E.164.
endpointobjectWhere the number's calls arrive.
endpoint.idstring (uuid)Endpoint ID.
endpoint.namestringEndpoint name.
endpoint.sip_idstringThe endpoint's SIP ID.
endpoint.kindstringregistration or trunk.
agent_namestringLiveKit agent that answers the number's calls; empty for none.
last_call_atstring (date-time)can be nullWhen the last inbound call to this number arrived; null if none.
json
[
  {
    "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"
  }
]