Docs API reference
Endpoints
List, add, read, change and delete registration and trunk endpoints, retry a stopped registration, get an ElevenLabs endpoint's SIP password, and read the carrier templates the panel uses.
Examples read your API key from RELAYDOCK_API_KEY (see Authentication). Paths are relative to https://api.relaydock.io/api/v1. For the concepts behind these operations, read Endpoints guide.
- GET/endpointsList endpoints
- POST/endpointsAdd an endpoint
- GET/endpoints/{endpoint_id}Get an endpoint
- PATCH/endpoints/{endpoint_id}Update an endpoint
- DELETE/endpoints/{endpoint_id}Delete an endpoint
- POST/endpoints/{endpoint_id}/retry-registrationRetry a registration
- POST/endpoints/{endpoint_id}/platform-passwordGet an ElevenLabs endpoint's SIP password
- GET/provider-templatesList provider templates
List endpoints
GET/endpoints
Returns all of your team's endpoints, oldest first, with registration status and a 24-hour registration history. Filter with kind, or with state=problem for endpoints that need attention. Not paged.
Query parameters
| Field | Description |
|---|---|
kind | Only endpoints of this kind. One of: registration, trunk. |
state | problem: only endpoints that need attention (problem: true). |
Example request
curl "https://api.relaydock.io/api/v1/endpoints" \
-H "Authorization: Bearer $RELAYDOCK_API_KEY"import os
import requests
response = requests.get(
"https://api.relaydock.io/api/v1/endpoints",
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/endpoints', {
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 |
|---|---|
id | Endpoint ID. |
sip_id | The endpoint's SIP ID (ep- and 10 characters). RelayDock names its LiveKit objects after it: rd-<sip_id>-in (inbound trunk), rd-<sip_id>-out (outbound trunk), rd-<sip_id>-rule (dispatch rule); rooms of incoming calls start with rd-<sip_id>-. |
name | Display name. |
kind | registration or trunk. |
provider | Provider template code (telnyx, netgsm, 3cx, mikopbx, freepbx, other). |
mode | Where call audio flows: auto tries direct and relays through RelayDock when the other side is behind NAT (relayed calls aren't encrypted on the LiveKit leg); direct_only never relays (calls behind NAT are rejected); relay_always always relays through RelayDock's static IP and encrypts the LiveKit leg (SRTP). |
platform | livekit or elevenlabs. |
platform_host | ElevenLabs only: the ElevenLabs SIP address for your region (sip.rtc.elevenlabs.io, sip.rtc.eu.residency.elevenlabs.io, sip.rtc.in.residency.elevenlabs.io, sip.rtc.sg.residency.elevenlabs.io, sip-static.rtc.elevenlabs.io, sip-static.rtc.eu.residency.elevenlabs.io, sip-static.rtc.in.residency.elevenlabs.io, sip-static.rtc.sg.residency.elevenlabs.io). Empty for LiveKit endpoints. |
agent_name | LiveKit agent dispatched to incoming calls; empty for none. |
enabled | false when the endpoint is turned off (no registration, no calls). |
provision_state | LiveKit setup: waiting_target (no LiveKit project connected, or its credentials were rejected), pending (being set up), ready or error (see provision_error). |
provision_error | LiveKit error code of the last setup attempt (livekit.invalid_credentials, livekit.permission_denied, livekit.not_found, livekit.unreachable, livekit.error); null when fine. |
numbers | Numbers (DIDs) on this endpoint, +E.164, sorted. |
history_24h | Registration over the last 24 hours, one character per hour, oldest first: 1 up, 0 down, 2 both, - no data. Trunks always show -. |
created_at | When the endpoint was created. |
registration | Registration status; null for trunks. |
registration.state | One of registered, registering, failed, disabled, standby, unknown. disabled: the edge stopped trying after repeated authentication failures, until you change the credentials or retry. standby: the reporting edge node isn't the one registering. unknown: no report yet. |
registration.last_code | SIP status of the last REGISTER answer (200 when registered); null if none. |
registration.last_reason | Why the last attempt failed, e.g. auth_failed, send_failed or auth_brake; null when fine. |
registration.expires_in | Seconds until the current registration expires; null if the edge has no registration record. |
trunk | Trunk summary; null for registration endpoints. |
trunk.source_ip_count | Number of allowed carrier IP addresses and blocks. |
trunk.digest | Whether the carrier authenticates with a digest user name. |
trunk.outbound | Whether outbound calls are set up. |
problem | true when the endpoint needs attention: LiveKit setup failed or registration is failing. |
[
{
"id": "3f6c2a1e-8b4d-4c7a-9e21-5d0b7f9a6c13",
"sip_id": "ep-7k2m9x4q1z",
"name": "Telnyx · +12025550123",
"kind": "registration",
"provider": "telnyx",
"mode": "auto",
"platform": "livekit",
"platform_host": "",
"agent_name": "my-agent",
"enabled": true,
"provision_state": "ready",
"provision_error": null,
"numbers": [
"+12025550123"
],
"history_24h": "------111111111111111111",
"created_at": "2026-03-02T10:15:00Z",
"registration": {
"state": "registered",
"last_code": 200,
"last_reason": null,
"expires_in": 247
},
"trunk": {
"source_ip_count": 1,
"digest": false,
"outbound": true
},
"problem": false
}
]Errors
Besides the errors any request can return:
| Code | Status | When |
|---|---|---|
validation_error | 422 | A parameter or body field doesn't match the schema; `fields` maps each one to `validation.<type>`. |
Add an endpoint
POST/endpoints
Creates a registration or trunk endpoint; settings you leave out come from the provider template, and numbers must not be on any other endpoint. If a LiveKit project is connected, RelayDock creates the endpoint's inbound trunk, outbound trunk and dispatch rule in it in the background (provision_state goes from pending to ready); otherwise the endpoint waits in waiting_target. A registration endpoint starts registering on the edge within seconds.
Request body
| Field | Description |
|---|---|
kind | registration: RelayDock registers with your carrier or PBX. trunk: the carrier sends calls to your static IP and SIP address. One of: registration, trunk. |
name | Display name, one line. Leave out for a default such as Telnyx · +12025550123 or sip.carrier.example trunk.1–120 characters. |
provider | Provider template code (telnyx, netgsm, 3cx, mikopbx, freepbx, other); see GET /provider-templates. It fills in the registrar, port, transport, source IPs and dial format you leave out.Default: other.Up to 16 characters. |
mode | Where call audio flows: auto tries direct and relays through RelayDock when the other side is behind NAT (relayed calls aren't encrypted on the LiveKit leg); direct_only never relays (calls behind NAT are rejected); relay_always always relays through RelayDock's static IP and encrypts the LiveKit leg (SRTP). One of: auto, direct_only, relay_always. Default: auto. |
platform | Where the endpoint's calls go: livekit (RelayDock sets up the trunks and dispatch rule in your LiveKit project) or elevenlabs (you import the number in ElevenLabs; RelayDock carries the SIP leg and never touches LiveKit). Can't be changed later. One of: livekit, elevenlabs. Default: livekit. |
platform_host | ElevenLabs only: the ElevenLabs SIP address for your region (sip.rtc.elevenlabs.io, sip.rtc.eu.residency.elevenlabs.io, sip.rtc.in.residency.elevenlabs.io, sip.rtc.sg.residency.elevenlabs.io, sip-static.rtc.elevenlabs.io, sip-static.rtc.eu.residency.elevenlabs.io, sip-static.rtc.in.residency.elevenlabs.io, sip-static.rtc.sg.residency.elevenlabs.io). Empty for LiveKit endpoints. Leave out for sip.rtc.elevenlabs.io.Default: .Up to 255 characters. |
agent_name | The agent_name of your LiveKit agent; it's dispatched into the room of each incoming call. Letters, digits, ., _ and -, starting with a letter or digit. Empty: rooms open without an agent.Default: .Up to 128 characters. |
outbound_numbers | Caller numbers your agents may call out with, at most 20: +E.164, or a 2–15 digit extension on registration endpoints. Leave out for the default: the registration's number (or its user name if that is a number or extension), or a trunk's first 20 numbers.Up to 20 items. |
dial_format | How outbound numbers are sent to the carrier: e164 as dialed; national_tr sends Turkish numbers (+90…) in national format (0…). Leave out to use the template's. One of: e164, national_tr. |
registration | Registration details. Required when kind is registration; ignored otherwise. |
registration.registrar_host | Registrar (SIP server) host name or IPv4 address. Leave out to use the provider template's.Up to 255 characters. |
registration.registrar_port | Registrar port. Leave out to use the template's (5060).1–65535. |
registration.transport | SIP transport to the registrar. Leave out to use the template's (tcp). One of: udp, tcp, tls. |
registration.domain | SIP domain of the account, if it differs from the registrar. Empty: the registrar host.Up to 255 characters. |
registration.username | SIP user name RelayDock registers with.1–128 characters. |
registration.auth_username | Authentication user name, only if it differs from username. Empty: username.Up to 128 characters. |
registration.password | SIP password. Stored encrypted and never returned.1–128 characters. |
registration.realm | Digest realm, only if your provider asks for a specific one.Default: .Up to 128 characters. |
registration.expires | Registration lifetime RelayDock asks for, in seconds.Default: 300.60–3600. |
registration.number | The +E.164 number this account receives calls on. It lets calls the carrier sends by number match the endpoint and is the default outbound caller number. A number can be on only one endpoint.Up to 32 characters. |
registration.source_ips | IP addresses or CIDR blocks (at most 50, /16 or narrower for IPv4, /32 for IPv6) the registrar sends calls from. Leave out to use the template's addresses plus the registrar host's DNS A records.Up to 50 items. |
trunk | Trunk details. Required when kind is trunk; ignored otherwise. |
trunk.source_ips | IP addresses or CIDR blocks (at most 50, /16 or narrower for IPv4, /32 for IPv6) the carrier sends calls from.Up to 50 items. |
trunk.digest_username | User name the carrier authenticates with when it sends calls (unique across RelayDock). Leave out for IP-only trunks.Up to 128 characters. |
trunk.digest_password | Password for digest_username. Stored encrypted and never returned.Up to 128 characters. |
trunk.numbers | Numbers (DIDs) the carrier sends to this trunk, as +E.164. A number can be on only one endpoint.Up to 100 items. |
trunk.outbound | Outbound calls. Leave out for an inbound-only trunk. |
trunk.outbound.host | Carrier SIP host name or IPv4 address.1–255 characters. |
trunk.outbound.port | Carrier SIP port.Default: 5060.1–65535. |
trunk.outbound.transport | SIP transport from RelayDock to the carrier. One of: udp, tcp, tls. Default: tcp. |
trunk.outbound.auth_type | none: the carrier accepts calls from RelayDock's static IP; digest: RelayDock authenticates with username and password. One of: none, digest. Default: none. |
trunk.outbound.username | Digest user name; required when auth_type is digest.Up to 128 characters. |
trunk.outbound.password | Digest password; required when auth_type is digest. On update, leave out to keep the stored one. Stored encrypted and never returned.Up to 128 characters. |
Example request
curl -X POST "https://api.relaydock.io/api/v1/endpoints" \
-H "Authorization: Bearer $RELAYDOCK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"kind": "registration",
"provider": "telnyx",
"agent_name": "my-agent",
"registration": {
"transport": "tcp",
"username": "SIP_USERNAME",
"password": "SIP_PASSWORD",
"number": "+12025550123"
}
}'import os
import requests
response = requests.post(
"https://api.relaydock.io/api/v1/endpoints",
headers={"Authorization": f"Bearer {os.environ['RELAYDOCK_API_KEY']}"},
json={
"kind": "registration",
"provider": "telnyx",
"agent_name": "my-agent",
"registration": {
"transport": "tcp",
"username": "SIP_USERNAME",
"password": "SIP_PASSWORD",
"number": "+12025550123",
},
},
timeout=30,
)
response.raise_for_status()
print(response.json())const response = await fetch('https://api.relaydock.io/api/v1/endpoints', {
method: 'POST',
headers: {
'Authorization': `Bearer ${process.env.RELAYDOCK_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"kind": "registration",
"provider": "telnyx",
"agent_name": "my-agent",
"registration": {
"transport": "tcp",
"username": "SIP_USERNAME",
"password": "SIP_PASSWORD",
"number": "+12025550123"
}
}),
})
if (!response.ok)
throw new Error(`${response.status} ${await response.text()}`)
console.log(await response.json())curl -X POST "https://api.relaydock.io/api/v1/endpoints" \
-H "Authorization: Bearer $RELAYDOCK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"kind": "trunk",
"name": "Carrier trunk",
"agent_name": "my-agent",
"trunk": {
"source_ips": [
"198.51.100.0/24"
],
"numbers": [
"+12025550124",
"+12025550125"
],
"outbound": {
"host": "sip.carrier.example",
"port": 5060,
"transport": "tcp",
"auth_type": "digest",
"username": "acme-out",
"password": "s3cret-Passw0rd"
}
}
}'import os
import requests
response = requests.post(
"https://api.relaydock.io/api/v1/endpoints",
headers={"Authorization": f"Bearer {os.environ['RELAYDOCK_API_KEY']}"},
json={
"kind": "trunk",
"name": "Carrier trunk",
"agent_name": "my-agent",
"trunk": {
"source_ips": ["198.51.100.0/24"],
"numbers": ["+12025550124", "+12025550125"],
"outbound": {
"host": "sip.carrier.example",
"port": 5060,
"transport": "tcp",
"auth_type": "digest",
"username": "acme-out",
"password": "s3cret-Passw0rd",
},
},
},
timeout=30,
)
response.raise_for_status()
print(response.json())const response = await fetch('https://api.relaydock.io/api/v1/endpoints', {
method: 'POST',
headers: {
'Authorization': `Bearer ${process.env.RELAYDOCK_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"kind": "trunk",
"name": "Carrier trunk",
"agent_name": "my-agent",
"trunk": {
"source_ips": [
"198.51.100.0/24"
],
"numbers": [
"+12025550124",
"+12025550125"
],
"outbound": {
"host": "sip.carrier.example",
"port": 5060,
"transport": "tcp",
"auth_type": "digest",
"username": "acme-out",
"password": "s3cret-Passw0rd"
}
}
}),
})
if (!response.ok)
throw new Error(`${response.status} ${await response.text()}`)
console.log(await response.json())curl -X POST "https://api.relaydock.io/api/v1/endpoints" \
-H "Authorization: Bearer $RELAYDOCK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"kind": "registration",
"provider": "3cx",
"name": "3CX extension 201",
"agent_name": "my-agent",
"registration": {
"registrar_host": "pbx.acme.example",
"username": "201",
"password": "s3cret-Passw0rd",
"source_ips": [
"198.51.100.50"
]
}
}'import os
import requests
response = requests.post(
"https://api.relaydock.io/api/v1/endpoints",
headers={"Authorization": f"Bearer {os.environ['RELAYDOCK_API_KEY']}"},
json={
"kind": "registration",
"provider": "3cx",
"name": "3CX extension 201",
"agent_name": "my-agent",
"registration": {
"registrar_host": "pbx.acme.example",
"username": "201",
"password": "s3cret-Passw0rd",
"source_ips": ["198.51.100.50"],
},
},
timeout=30,
)
response.raise_for_status()
print(response.json())const response = await fetch('https://api.relaydock.io/api/v1/endpoints', {
method: 'POST',
headers: {
'Authorization': `Bearer ${process.env.RELAYDOCK_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"kind": "registration",
"provider": "3cx",
"name": "3CX extension 201",
"agent_name": "my-agent",
"registration": {
"registrar_host": "pbx.acme.example",
"username": "201",
"password": "s3cret-Passw0rd",
"source_ips": [
"198.51.100.50"
]
}
}),
})
if (!response.ok)
throw new Error(`${response.status} ${await response.text()}`)
console.log(await response.json())Response
201 with a JSON object.
| Field | Description |
|---|---|
id | Endpoint ID. |
sip_id | The endpoint's SIP ID (ep- and 10 characters). RelayDock names its LiveKit objects after it: rd-<sip_id>-in (inbound trunk), rd-<sip_id>-out (outbound trunk), rd-<sip_id>-rule (dispatch rule); rooms of incoming calls start with rd-<sip_id>-. |
name | Display name. |
kind | registration or trunk. |
provider | Provider template code (telnyx, netgsm, 3cx, mikopbx, freepbx, other). |
mode | Where call audio flows: auto tries direct and relays through RelayDock when the other side is behind NAT (relayed calls aren't encrypted on the LiveKit leg); direct_only never relays (calls behind NAT are rejected); relay_always always relays through RelayDock's static IP and encrypts the LiveKit leg (SRTP). |
platform | livekit or elevenlabs. |
platform_host | ElevenLabs only: the ElevenLabs SIP address for your region (sip.rtc.elevenlabs.io, sip.rtc.eu.residency.elevenlabs.io, sip.rtc.in.residency.elevenlabs.io, sip.rtc.sg.residency.elevenlabs.io, sip-static.rtc.elevenlabs.io, sip-static.rtc.eu.residency.elevenlabs.io, sip-static.rtc.in.residency.elevenlabs.io, sip-static.rtc.sg.residency.elevenlabs.io). Empty for LiveKit endpoints. |
agent_name | LiveKit agent dispatched to incoming calls; empty for none. |
enabled | false when the endpoint is turned off (no registration, no calls). |
provision_state | LiveKit setup: waiting_target (no LiveKit project connected, or its credentials were rejected), pending (being set up), ready or error (see provision_error). |
provision_error | LiveKit error code of the last setup attempt (livekit.invalid_credentials, livekit.permission_denied, livekit.not_found, livekit.unreachable, livekit.error); null when fine. |
numbers | Numbers (DIDs) on this endpoint, +E.164, sorted. |
history_24h | Registration over the last 24 hours, one character per hour, oldest first: 1 up, 0 down, 2 both, - no data. Trunks always show -. |
created_at | When the endpoint was created. |
diagnosis | The most important problem; null when all is well or disabled. |
diagnosis.severity | bad: calls are affected; warn: needs attention. One of: bad, warn. |
diagnosis.key | What's wrong: livekit.provision_failed, livekit.not_connected, reg.auth_rejected, reg.forbidden, reg.user_not_found, reg.no_response, reg.dns_failed, reg.unavailable, reg.failed, reg.disabled, edge.not_synced. Checked in this order: LiveKit setup, LiveKit connection, registration, edge sync. |
diagnosis.code | SIP status (registration problems) or LiveKit error code (LiveKit problems); null if none. |
diagnosis.since | Since when the problem has been seen; null if unknown. |
diagnosis.action | Suggested next step: resync, connect_livekit, update_password, contact_provider, check_username, check_address, retry; null if none. |
registration | Registration settings and status; null for trunks. |
registration.state | One of registered, registering, failed, disabled, standby, unknown. disabled: the edge stopped trying after repeated authentication failures, until you change the credentials or retry. standby: the reporting edge node isn't the one registering. unknown: no report yet. |
registration.last_code | SIP status of the last REGISTER answer (200 when registered); null if none. |
registration.last_reason | Why the last attempt failed, e.g. auth_failed, send_failed or auth_brake; null when fine. |
registration.expires_in | Seconds until the current registration expires; null if the edge has no registration record. |
registration.registrar_host | Registrar host name or IPv4 address. |
registration.registrar_port | Registrar port. |
registration.transport | udp, tcp or tls. |
registration.domain | SIP domain of the account; empty: the registrar host. |
registration.username | SIP user name. |
registration.auth_username | Authentication user name; empty: username. |
registration.realm | Digest realm; empty if not set. |
registration.expires | Registration lifetime RelayDock asks for, in seconds. |
registration.source_ips | Addresses the registrar may send calls from. |
registration.last_attempt | SIP messages of the last registration attempt (up to 12): ts (Unix time), dir (out sent by RelayDock, in received), msg and code (SIP status or null). |
registration.last_registered_at | Last successful registration; null if never. |
registration.state_changed_at | When state last changed. |
registration.generation | Goes up with every change that makes the edge re-register. |
registration.has_password | Whether a password is stored. |
trunk | Trunk settings; null for registration endpoints. |
trunk.source_ips | Carrier IP addresses and blocks allowed to send calls. |
trunk.source_ip_count | Number of entries in source_ips. |
trunk.digest_username | User name the carrier authenticates with; null if none. |
trunk.has_digest_password | Whether a digest password is stored. |
trunk.outbound | Outbound settings; null for an inbound-only trunk. |
trunk.outbound.host | Carrier SIP host name or IPv4 address. |
trunk.outbound.port | Carrier SIP port. |
trunk.outbound.transport | udp, tcp or tls. |
trunk.outbound.auth_type | none (static IP) or digest. |
trunk.outbound.username | Digest user name; empty with auth_type none. |
trunk.outbound.has_password | Whether a digest password is stored. |
outbound_numbers | Caller numbers your agents may call out with. |
dial_format | How outbound numbers are sent to the carrier: e164 as dialed; national_tr sends Turkish numbers (+90…) in national format (0…). |
platform_objects | LiveKit objects; null until first set up. |
platform_objects.inbound_trunk_id | LiveKit inbound trunk (rd-<sip_id>-in). |
platform_objects.outbound_trunk_id | LiveKit outbound trunk (rd-<sip_id>-out). |
platform_objects.dispatch_rule_id | LiveKit dispatch rule (rd-<sip_id>-rule). |
platform_objects.reconciled_at | When RelayDock last checked the objects. |
platform_objects.reconcile_state | Result of the last check: ok, fixed (missing or changed objects were restored) or error. |
platform_objects.last_error | LiveKit error code of the last check (livekit.invalid_credentials, livekit.permission_denied, livekit.not_found, livekit.unreachable, livekit.error). |
platform_setup | ElevenLabs endpoints: what to enter in ElevenLabs, including the SIP password. null for LiveKit. |
platform_setup.numbers | Import each of these as the phone number in ElevenLabs. |
platform_setup.address | Outbound → Address: where ElevenLabs sends your agent's outbound calls. |
platform_setup.transport | Outbound → Transport Type: tcp. |
platform_setup.username | Inbound and Outbound → Authentication user name. |
platform_setup.source_ip | Inbound → Allowed Source IP Addresses: your static IP, where RelayDock sends calls from. |
platform_setup.media_encryption | Inbound and Outbound → Media Encryption: disabled, or required with the relay_always audio mode. |
sip_domain | Your team's SIP address (<slug>.<SIP domain>; the static IP where no SIP domain is set up). Trunk carriers send calls here. |
public_ip | Your static IP: RelayDock registers and sends calls from it. Add it to your carrier's allow list. |
updated_at | When the endpoint last changed. |
{
"id": "3f6c2a1e-8b4d-4c7a-9e21-5d0b7f9a6c13",
"sip_id": "ep-7k2m9x4q1z",
"name": "Telnyx · +12025550123",
"kind": "registration",
"provider": "telnyx",
"mode": "auto",
"platform": "livekit",
"platform_host": "",
"agent_name": "my-agent",
"enabled": true,
"provision_state": "ready",
"provision_error": null,
"numbers": [
"+12025550123"
],
"history_24h": "------111111111111111111",
"created_at": "2026-03-02T10:15:00Z",
"diagnosis": {
"severity": "bad",
"key": "reg.auth_rejected",
"code": 401,
"since": "2026-03-14T09:26:53Z",
"action": "update_password"
},
"registration": {
"state": "registered",
"last_code": 200,
"last_reason": null,
"expires_in": 247,
"registrar_host": "sip.telnyx.eu",
"registrar_port": 5060,
"transport": "tcp",
"domain": "",
"username": "acme-support",
"auth_username": "",
"realm": "",
"expires": 300,
"source_ips": [
"185.246.41.140/32",
"185.246.41.141/32",
"192.76.120.72/32"
],
"last_attempt": [
{
"dir": "out",
"msg": "REGISTER sip:sip.telnyx.eu:5060",
"ts": 1773480413.2
},
{
"code": 401,
"dir": "in",
"msg": "401 Unauthorized",
"ts": 1773480413.3
},
{
"dir": "out",
"msg": "REGISTER sip:sip.telnyx.eu:5060",
"ts": 1773480413.4
},
{
"code": 200,
"dir": "in",
"msg": "200 OK",
"ts": 1773480413.5
}
],
"last_registered_at": "2026-03-14T09:26:53Z",
"state_changed_at": "2026-03-14T09:26:53Z",
"generation": 3,
"has_password": true
},
"trunk": {
"source_ips": [
"198.51.100.0/24"
],
"source_ip_count": 1,
"digest_username": null,
"has_digest_password": false,
"outbound": {
"host": "sip.carrier.example",
"port": 5060,
"transport": "tcp",
"auth_type": "digest",
"username": "acme-out",
"has_password": true
}
},
"outbound_numbers": [
"+12025550123"
],
"dial_format": "e164",
"platform_objects": {
"inbound_trunk_id": "ST_hX2c9QmZr4Lp",
"outbound_trunk_id": "ST_Vb7nK3dW8sTy",
"dispatch_rule_id": "SDR_4mQx8LzR2nPk",
"reconciled_at": "2026-03-14T09:26:53Z",
"reconcile_state": "ok",
"last_error": null
},
"platform_setup": {
"numbers": [
"+12025550123"
],
"address": "platform.sip.relaydock.io",
"transport": "tcp",
"username": "rd-ep-k3m9x2q7ab",
"source_ip": "203.0.113.10",
"media_encryption": "disabled"
},
"sip_domain": "acme.sip.relaydock.io",
"public_ip": "203.0.113.10",
"updated_at": "2026-03-14T09:26:53Z"
}Errors
Besides the errors any request can return:
| Code | Status | When |
|---|---|---|
endpoint.plan_limit | 409 | Your plan's endpoint limit is reached (the message names your plan and its limit). |
number.taken | 409 | A number is already on another endpoint, in any team. Numbers are compared in every format carriers send. |
endpoint.digest_username_taken | 409 | `trunk.digest_username` is already used by another trunk, in any team. |
validation_error | 422 | A parameter or body field doesn't match the schema; `fields` maps each one to `validation.<type>`. |
endpoint.invalid_provider | 422 | `provider` isn't a template `code` from `GET /provider-templates`. |
endpoint.invalid_agent_name | 422 | `agent_name` doesn't start with a letter or digit, or has characters other than letters, digits, `.`, `_` and `-`. |
endpoint.registration_required | 422 | `kind` is `registration` but `registration` is missing. |
endpoint.trunk_required | 422 | `kind` is `trunk` but `trunk` is missing. |
endpoint.registrar_required | 422 | `registration.registrar_host` is empty and the provider template has no registrar. |
endpoint.invalid_host | 422 | A registrar, SIP domain or outbound host isn't a host name or IPv4 address (registrar and outbound hosts also can't be private, loopback or reserved addresses). |
endpoint.invalid_username | 422 | A SIP user name has spaces, non-ASCII characters or one of `< > " @ : ; ?`. |
endpoint.password_required | 422 | `trunk.digest_username` is set but `trunk.digest_password` is missing. |
number.invalid | 422 | `registration.number` or an entry in `trunk.numbers` isn't a +E.164 number. |
endpoint.invalid_cidr | 422 | An entry in `source_ips` isn't an IP address or CIDR block, or is a private, loopback or reserved block. |
endpoint.cidr_too_broad | 422 | An entry in `source_ips` is wider than /16 (IPv4) or /32 (IPv6). |
endpoint.source_ips_required | 422 | `registration.source_ips` is empty or `null`, and neither the template nor the registrar's DNS gave an address. |
endpoint.invalid_outbound_number | 422 | An entry in `outbound_numbers` isn't +E.164. Registration endpoints also accept a 2–15 digit extension; the message then mentions it. |
endpoint.digest_incomplete | 422 | `trunk.digest_password` is set without `trunk.digest_username`. |
endpoint.trunk_auth_required | 422 | A trunk needs `trunk.source_ips`, a `trunk.digest_username`, or both. |
endpoint.outbound_auth_required | 422 | `trunk.outbound.auth_type` is `digest` but the user name (or, with the message "Digest password is required", the password) is missing. |
Get an endpoint
GET/endpoints/{endpoint_id}
Returns the endpoint's full settings, its registration status and last attempt, the current diagnosis and its LiveKit objects. Passwords are never returned, only has_password flags (an ElevenLabs endpoint's SIP password comes from POST /endpoints/{endpoint_id}/platform-password). sip_domain and public_ip are your team's SIP address and static IP.
Path parameters
| Field | Description |
|---|---|
endpoint_id | The endpoint's id (UUID), as returned by GET /endpoints. |
Example request
curl "https://api.relaydock.io/api/v1/endpoints/3f6c2a1e-8b4d-4c7a-9e21-5d0b7f9a6c13" \
-H "Authorization: Bearer $RELAYDOCK_API_KEY"import os
import requests
response = requests.get(
"https://api.relaydock.io/api/v1/endpoints/3f6c2a1e-8b4d-4c7a-9e21-5d0b7f9a6c13",
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/endpoints/3f6c2a1e-8b4d-4c7a-9e21-5d0b7f9a6c13', {
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 object.
| Field | Description |
|---|---|
id | Endpoint ID. |
sip_id | The endpoint's SIP ID (ep- and 10 characters). RelayDock names its LiveKit objects after it: rd-<sip_id>-in (inbound trunk), rd-<sip_id>-out (outbound trunk), rd-<sip_id>-rule (dispatch rule); rooms of incoming calls start with rd-<sip_id>-. |
name | Display name. |
kind | registration or trunk. |
provider | Provider template code (telnyx, netgsm, 3cx, mikopbx, freepbx, other). |
mode | Where call audio flows: auto tries direct and relays through RelayDock when the other side is behind NAT (relayed calls aren't encrypted on the LiveKit leg); direct_only never relays (calls behind NAT are rejected); relay_always always relays through RelayDock's static IP and encrypts the LiveKit leg (SRTP). |
platform | livekit or elevenlabs. |
platform_host | ElevenLabs only: the ElevenLabs SIP address for your region (sip.rtc.elevenlabs.io, sip.rtc.eu.residency.elevenlabs.io, sip.rtc.in.residency.elevenlabs.io, sip.rtc.sg.residency.elevenlabs.io, sip-static.rtc.elevenlabs.io, sip-static.rtc.eu.residency.elevenlabs.io, sip-static.rtc.in.residency.elevenlabs.io, sip-static.rtc.sg.residency.elevenlabs.io). Empty for LiveKit endpoints. |
agent_name | LiveKit agent dispatched to incoming calls; empty for none. |
enabled | false when the endpoint is turned off (no registration, no calls). |
provision_state | LiveKit setup: waiting_target (no LiveKit project connected, or its credentials were rejected), pending (being set up), ready or error (see provision_error). |
provision_error | LiveKit error code of the last setup attempt (livekit.invalid_credentials, livekit.permission_denied, livekit.not_found, livekit.unreachable, livekit.error); null when fine. |
numbers | Numbers (DIDs) on this endpoint, +E.164, sorted. |
history_24h | Registration over the last 24 hours, one character per hour, oldest first: 1 up, 0 down, 2 both, - no data. Trunks always show -. |
created_at | When the endpoint was created. |
diagnosis | The most important problem; null when all is well or disabled. |
diagnosis.severity | bad: calls are affected; warn: needs attention. One of: bad, warn. |
diagnosis.key | What's wrong: livekit.provision_failed, livekit.not_connected, reg.auth_rejected, reg.forbidden, reg.user_not_found, reg.no_response, reg.dns_failed, reg.unavailable, reg.failed, reg.disabled, edge.not_synced. Checked in this order: LiveKit setup, LiveKit connection, registration, edge sync. |
diagnosis.code | SIP status (registration problems) or LiveKit error code (LiveKit problems); null if none. |
diagnosis.since | Since when the problem has been seen; null if unknown. |
diagnosis.action | Suggested next step: resync, connect_livekit, update_password, contact_provider, check_username, check_address, retry; null if none. |
registration | Registration settings and status; null for trunks. |
registration.state | One of registered, registering, failed, disabled, standby, unknown. disabled: the edge stopped trying after repeated authentication failures, until you change the credentials or retry. standby: the reporting edge node isn't the one registering. unknown: no report yet. |
registration.last_code | SIP status of the last REGISTER answer (200 when registered); null if none. |
registration.last_reason | Why the last attempt failed, e.g. auth_failed, send_failed or auth_brake; null when fine. |
registration.expires_in | Seconds until the current registration expires; null if the edge has no registration record. |
registration.registrar_host | Registrar host name or IPv4 address. |
registration.registrar_port | Registrar port. |
registration.transport | udp, tcp or tls. |
registration.domain | SIP domain of the account; empty: the registrar host. |
registration.username | SIP user name. |
registration.auth_username | Authentication user name; empty: username. |
registration.realm | Digest realm; empty if not set. |
registration.expires | Registration lifetime RelayDock asks for, in seconds. |
registration.source_ips | Addresses the registrar may send calls from. |
registration.last_attempt | SIP messages of the last registration attempt (up to 12): ts (Unix time), dir (out sent by RelayDock, in received), msg and code (SIP status or null). |
registration.last_registered_at | Last successful registration; null if never. |
registration.state_changed_at | When state last changed. |
registration.generation | Goes up with every change that makes the edge re-register. |
registration.has_password | Whether a password is stored. |
trunk | Trunk settings; null for registration endpoints. |
trunk.source_ips | Carrier IP addresses and blocks allowed to send calls. |
trunk.source_ip_count | Number of entries in source_ips. |
trunk.digest_username | User name the carrier authenticates with; null if none. |
trunk.has_digest_password | Whether a digest password is stored. |
trunk.outbound | Outbound settings; null for an inbound-only trunk. |
trunk.outbound.host | Carrier SIP host name or IPv4 address. |
trunk.outbound.port | Carrier SIP port. |
trunk.outbound.transport | udp, tcp or tls. |
trunk.outbound.auth_type | none (static IP) or digest. |
trunk.outbound.username | Digest user name; empty with auth_type none. |
trunk.outbound.has_password | Whether a digest password is stored. |
outbound_numbers | Caller numbers your agents may call out with. |
dial_format | How outbound numbers are sent to the carrier: e164 as dialed; national_tr sends Turkish numbers (+90…) in national format (0…). |
platform_objects | LiveKit objects; null until first set up. |
platform_objects.inbound_trunk_id | LiveKit inbound trunk (rd-<sip_id>-in). |
platform_objects.outbound_trunk_id | LiveKit outbound trunk (rd-<sip_id>-out). |
platform_objects.dispatch_rule_id | LiveKit dispatch rule (rd-<sip_id>-rule). |
platform_objects.reconciled_at | When RelayDock last checked the objects. |
platform_objects.reconcile_state | Result of the last check: ok, fixed (missing or changed objects were restored) or error. |
platform_objects.last_error | LiveKit error code of the last check (livekit.invalid_credentials, livekit.permission_denied, livekit.not_found, livekit.unreachable, livekit.error). |
platform_setup | ElevenLabs endpoints: what to enter in ElevenLabs, including the SIP password. null for LiveKit. |
platform_setup.numbers | Import each of these as the phone number in ElevenLabs. |
platform_setup.address | Outbound → Address: where ElevenLabs sends your agent's outbound calls. |
platform_setup.transport | Outbound → Transport Type: tcp. |
platform_setup.username | Inbound and Outbound → Authentication user name. |
platform_setup.source_ip | Inbound → Allowed Source IP Addresses: your static IP, where RelayDock sends calls from. |
platform_setup.media_encryption | Inbound and Outbound → Media Encryption: disabled, or required with the relay_always audio mode. |
sip_domain | Your team's SIP address (<slug>.<SIP domain>; the static IP where no SIP domain is set up). Trunk carriers send calls here. |
public_ip | Your static IP: RelayDock registers and sends calls from it. Add it to your carrier's allow list. |
updated_at | When the endpoint last changed. |
{
"id": "3f6c2a1e-8b4d-4c7a-9e21-5d0b7f9a6c13",
"sip_id": "ep-7k2m9x4q1z",
"name": "Telnyx · +12025550123",
"kind": "registration",
"provider": "telnyx",
"mode": "auto",
"platform": "livekit",
"platform_host": "",
"agent_name": "my-agent",
"enabled": true,
"provision_state": "ready",
"provision_error": null,
"numbers": [
"+12025550123"
],
"history_24h": "------111111111111111111",
"created_at": "2026-03-02T10:15:00Z",
"diagnosis": {
"severity": "bad",
"key": "reg.auth_rejected",
"code": 401,
"since": "2026-03-14T09:26:53Z",
"action": "update_password"
},
"registration": {
"state": "registered",
"last_code": 200,
"last_reason": null,
"expires_in": 247,
"registrar_host": "sip.telnyx.eu",
"registrar_port": 5060,
"transport": "tcp",
"domain": "",
"username": "acme-support",
"auth_username": "",
"realm": "",
"expires": 300,
"source_ips": [
"185.246.41.140/32",
"185.246.41.141/32",
"192.76.120.72/32"
],
"last_attempt": [
{
"dir": "out",
"msg": "REGISTER sip:sip.telnyx.eu:5060",
"ts": 1773480413.2
},
{
"code": 401,
"dir": "in",
"msg": "401 Unauthorized",
"ts": 1773480413.3
},
{
"dir": "out",
"msg": "REGISTER sip:sip.telnyx.eu:5060",
"ts": 1773480413.4
},
{
"code": 200,
"dir": "in",
"msg": "200 OK",
"ts": 1773480413.5
}
],
"last_registered_at": "2026-03-14T09:26:53Z",
"state_changed_at": "2026-03-14T09:26:53Z",
"generation": 3,
"has_password": true
},
"trunk": {
"source_ips": [
"198.51.100.0/24"
],
"source_ip_count": 1,
"digest_username": null,
"has_digest_password": false,
"outbound": {
"host": "sip.carrier.example",
"port": 5060,
"transport": "tcp",
"auth_type": "digest",
"username": "acme-out",
"has_password": true
}
},
"outbound_numbers": [
"+12025550123"
],
"dial_format": "e164",
"platform_objects": {
"inbound_trunk_id": "ST_hX2c9QmZr4Lp",
"outbound_trunk_id": "ST_Vb7nK3dW8sTy",
"dispatch_rule_id": "SDR_4mQx8LzR2nPk",
"reconciled_at": "2026-03-14T09:26:53Z",
"reconcile_state": "ok",
"last_error": null
},
"platform_setup": {
"numbers": [
"+12025550123"
],
"address": "platform.sip.relaydock.io",
"transport": "tcp",
"username": "rd-ep-k3m9x2q7ab",
"source_ip": "203.0.113.10",
"media_encryption": "disabled"
},
"sip_domain": "acme.sip.relaydock.io",
"public_ip": "203.0.113.10",
"updated_at": "2026-03-14T09:26:53Z"
}Errors
Besides the errors any request can return:
| Code | Status | When |
|---|---|---|
endpoint.not_found | 404 | No endpoint with this `id` exists in your team, or it was deleted. |
validation_error | 422 | A parameter or body field doesn't match the schema; `fields` maps each one to `validation.<type>`. |
Update an endpoint
PATCH/endpoints/{endpoint_id}
Changes only the fields you send; null has the meaning given on each field. Changing mode, agent_name or outbound_numbers, or setting enabled: true, updates the endpoint's LiveKit objects in the background when a LiveKit project is connected (provision_state goes back to pending); registration changes make the edge re-register. Limited to 30 requests per minute per team.
Path parameters
| Field | Description |
|---|---|
endpoint_id | The endpoint's id (UUID), as returned by GET /endpoints. |
Request body
| Field | Description |
|---|---|
name | Display name, one line. null restores the default name.1–120 characters. |
provider | Provider template code (telnyx, netgsm, 3cx, mikopbx, freepbx, other). null keeps it.Up to 16 characters. |
mode | Where call audio flows: auto tries direct and relays through RelayDock when the other side is behind NAT (relayed calls aren't encrypted on the LiveKit leg); direct_only never relays (calls behind NAT are rejected); relay_always always relays through RelayDock's static IP and encrypts the LiveKit leg (SRTP). null keeps it. One of: auto, direct_only, relay_always. |
platform | Can't be changed: sending a different platform than the endpoint's returns 422. One of: livekit, elevenlabs. |
platform_host | ElevenLabs only: the ElevenLabs SIP address for your region (sip.rtc.elevenlabs.io, sip.rtc.eu.residency.elevenlabs.io, sip.rtc.in.residency.elevenlabs.io, sip.rtc.sg.residency.elevenlabs.io, sip-static.rtc.elevenlabs.io, sip-static.rtc.eu.residency.elevenlabs.io, sip-static.rtc.in.residency.elevenlabs.io, sip-static.rtc.sg.residency.elevenlabs.io). Empty for LiveKit endpoints. null keeps it.Up to 255 characters. |
agent_name | The agent_name of your LiveKit agent; it's dispatched into the room of each incoming call. Letters, digits, ., _ and -, starting with a letter or digit. null or empty: no agent.Up to 128 characters. |
outbound_numbers | Caller numbers your agents may call out with, at most 20: +E.164, or a 2–15 digit extension on registration endpoints. null restores the default.Up to 20 items. |
dial_format | How outbound numbers are sent to the carrier: e164 as dialed; national_tr sends Turkish numbers (+90…) in national format (0…). null keeps it. One of: e164, national_tr. |
enabled | false takes the endpoint off the edge: no registration and no calls (its LiveKit objects stay). true turns it back on. null keeps it. |
registration | Registration changes (registration endpoints). |
registration.registrar_host | Registrar host name or IPv4 address. null keeps it; an empty string uses the template's.Up to 255 characters. |
registration.registrar_port | Registrar port. null keeps it.1–65535. |
registration.transport | SIP transport to the registrar. null keeps it. One of: udp, tcp, tls. |
registration.domain | SIP domain of the account. null or empty: the registrar host.Up to 255 characters. |
registration.username | SIP user name. null keeps it.1–128 characters. |
registration.auth_username | Authentication user name. null or empty: username.Up to 128 characters. |
registration.password | New SIP password. null keeps the stored one. Stored encrypted and never returned.1–128 characters. |
registration.realm | Digest realm. null or empty clears it.Up to 128 characters. |
registration.expires | Registration lifetime in seconds. null keeps it.60–3600. |
registration.number | The account's +E.164 number. null removes it.Up to 32 characters. |
registration.source_ips | IP addresses or CIDR blocks (at most 50, /16 or narrower for IPv4, /32 for IPv6) the registrar sends calls from. null recomputes them from the template and the registrar host's DNS.Up to 50 items. |
trunk | Trunk changes (trunk endpoints). |
trunk.source_ips | IP addresses or CIDR blocks (at most 50, /16 or narrower for IPv4, /32 for IPv6) the carrier sends calls from; replaces the list. null clears it.Up to 50 items. |
trunk.digest_username | User name the carrier authenticates with. null removes digest authentication (and its password).Up to 128 characters. |
trunk.digest_password | New password for digest_username. null keeps the stored one. Stored encrypted and never returned.Up to 128 characters. |
trunk.numbers | Numbers (DIDs) as +E.164; replaces the list. null removes them all.Up to 100 items. |
trunk.outbound | Replaces the outbound settings (leave out password to keep the stored one). null turns outbound calls off. |
trunk.outbound.host | Carrier SIP host name or IPv4 address.1–255 characters. |
trunk.outbound.port | Carrier SIP port.Default: 5060.1–65535. |
trunk.outbound.transport | SIP transport from RelayDock to the carrier. One of: udp, tcp, tls. Default: tcp. |
trunk.outbound.auth_type | none: the carrier accepts calls from RelayDock's static IP; digest: RelayDock authenticates with username and password. One of: none, digest. Default: none. |
trunk.outbound.username | Digest user name; required when auth_type is digest.Up to 128 characters. |
trunk.outbound.password | Digest password; required when auth_type is digest. On update, leave out to keep the stored one. Stored encrypted and never returned.Up to 128 characters. |
Example request
curl -X PATCH "https://api.relaydock.io/api/v1/endpoints/3f6c2a1e-8b4d-4c7a-9e21-5d0b7f9a6c13" \
-H "Authorization: Bearer $RELAYDOCK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"agent_name": "support-agent"
}'import os
import requests
response = requests.patch(
"https://api.relaydock.io/api/v1/endpoints/3f6c2a1e-8b4d-4c7a-9e21-5d0b7f9a6c13",
headers={"Authorization": f"Bearer {os.environ['RELAYDOCK_API_KEY']}"},
json={"agent_name": "support-agent"},
timeout=30,
)
response.raise_for_status()
print(response.json())const response = await fetch('https://api.relaydock.io/api/v1/endpoints/3f6c2a1e-8b4d-4c7a-9e21-5d0b7f9a6c13', {
method: 'PATCH',
headers: {
'Authorization': `Bearer ${process.env.RELAYDOCK_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"agent_name": "support-agent"
}),
})
if (!response.ok)
throw new Error(`${response.status} ${await response.text()}`)
console.log(await response.json())curl -X PATCH "https://api.relaydock.io/api/v1/endpoints/3f6c2a1e-8b4d-4c7a-9e21-5d0b7f9a6c13" \
-H "Authorization: Bearer $RELAYDOCK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"mode": "relay_always"
}'import os
import requests
response = requests.patch(
"https://api.relaydock.io/api/v1/endpoints/3f6c2a1e-8b4d-4c7a-9e21-5d0b7f9a6c13",
headers={"Authorization": f"Bearer {os.environ['RELAYDOCK_API_KEY']}"},
json={"mode": "relay_always"},
timeout=30,
)
response.raise_for_status()
print(response.json())const response = await fetch('https://api.relaydock.io/api/v1/endpoints/3f6c2a1e-8b4d-4c7a-9e21-5d0b7f9a6c13', {
method: 'PATCH',
headers: {
'Authorization': `Bearer ${process.env.RELAYDOCK_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"mode": "relay_always"
}),
})
if (!response.ok)
throw new Error(`${response.status} ${await response.text()}`)
console.log(await response.json())curl -X PATCH "https://api.relaydock.io/api/v1/endpoints/3f6c2a1e-8b4d-4c7a-9e21-5d0b7f9a6c13" \
-H "Authorization: Bearer $RELAYDOCK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"registration": {
"password": "n3w-Passw0rd"
}
}'import os
import requests
response = requests.patch(
"https://api.relaydock.io/api/v1/endpoints/3f6c2a1e-8b4d-4c7a-9e21-5d0b7f9a6c13",
headers={"Authorization": f"Bearer {os.environ['RELAYDOCK_API_KEY']}"},
json={
"registration": {"password": "n3w-Passw0rd"},
},
timeout=30,
)
response.raise_for_status()
print(response.json())const response = await fetch('https://api.relaydock.io/api/v1/endpoints/3f6c2a1e-8b4d-4c7a-9e21-5d0b7f9a6c13', {
method: 'PATCH',
headers: {
'Authorization': `Bearer ${process.env.RELAYDOCK_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"registration": {
"password": "n3w-Passw0rd"
}
}),
})
if (!response.ok)
throw new Error(`${response.status} ${await response.text()}`)
console.log(await response.json())curl -X PATCH "https://api.relaydock.io/api/v1/endpoints/3f6c2a1e-8b4d-4c7a-9e21-5d0b7f9a6c13" \
-H "Authorization: Bearer $RELAYDOCK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"enabled": false
}'import os
import requests
response = requests.patch(
"https://api.relaydock.io/api/v1/endpoints/3f6c2a1e-8b4d-4c7a-9e21-5d0b7f9a6c13",
headers={"Authorization": f"Bearer {os.environ['RELAYDOCK_API_KEY']}"},
json={"enabled": False},
timeout=30,
)
response.raise_for_status()
print(response.json())const response = await fetch('https://api.relaydock.io/api/v1/endpoints/3f6c2a1e-8b4d-4c7a-9e21-5d0b7f9a6c13', {
method: 'PATCH',
headers: {
'Authorization': `Bearer ${process.env.RELAYDOCK_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"enabled": false
}),
})
if (!response.ok)
throw new Error(`${response.status} ${await response.text()}`)
console.log(await response.json())Response
200 with a JSON object.
| Field | Description |
|---|---|
id | Endpoint ID. |
sip_id | The endpoint's SIP ID (ep- and 10 characters). RelayDock names its LiveKit objects after it: rd-<sip_id>-in (inbound trunk), rd-<sip_id>-out (outbound trunk), rd-<sip_id>-rule (dispatch rule); rooms of incoming calls start with rd-<sip_id>-. |
name | Display name. |
kind | registration or trunk. |
provider | Provider template code (telnyx, netgsm, 3cx, mikopbx, freepbx, other). |
mode | Where call audio flows: auto tries direct and relays through RelayDock when the other side is behind NAT (relayed calls aren't encrypted on the LiveKit leg); direct_only never relays (calls behind NAT are rejected); relay_always always relays through RelayDock's static IP and encrypts the LiveKit leg (SRTP). |
platform | livekit or elevenlabs. |
platform_host | ElevenLabs only: the ElevenLabs SIP address for your region (sip.rtc.elevenlabs.io, sip.rtc.eu.residency.elevenlabs.io, sip.rtc.in.residency.elevenlabs.io, sip.rtc.sg.residency.elevenlabs.io, sip-static.rtc.elevenlabs.io, sip-static.rtc.eu.residency.elevenlabs.io, sip-static.rtc.in.residency.elevenlabs.io, sip-static.rtc.sg.residency.elevenlabs.io). Empty for LiveKit endpoints. |
agent_name | LiveKit agent dispatched to incoming calls; empty for none. |
enabled | false when the endpoint is turned off (no registration, no calls). |
provision_state | LiveKit setup: waiting_target (no LiveKit project connected, or its credentials were rejected), pending (being set up), ready or error (see provision_error). |
provision_error | LiveKit error code of the last setup attempt (livekit.invalid_credentials, livekit.permission_denied, livekit.not_found, livekit.unreachable, livekit.error); null when fine. |
numbers | Numbers (DIDs) on this endpoint, +E.164, sorted. |
history_24h | Registration over the last 24 hours, one character per hour, oldest first: 1 up, 0 down, 2 both, - no data. Trunks always show -. |
created_at | When the endpoint was created. |
diagnosis | The most important problem; null when all is well or disabled. |
diagnosis.severity | bad: calls are affected; warn: needs attention. One of: bad, warn. |
diagnosis.key | What's wrong: livekit.provision_failed, livekit.not_connected, reg.auth_rejected, reg.forbidden, reg.user_not_found, reg.no_response, reg.dns_failed, reg.unavailable, reg.failed, reg.disabled, edge.not_synced. Checked in this order: LiveKit setup, LiveKit connection, registration, edge sync. |
diagnosis.code | SIP status (registration problems) or LiveKit error code (LiveKit problems); null if none. |
diagnosis.since | Since when the problem has been seen; null if unknown. |
diagnosis.action | Suggested next step: resync, connect_livekit, update_password, contact_provider, check_username, check_address, retry; null if none. |
registration | Registration settings and status; null for trunks. |
registration.state | One of registered, registering, failed, disabled, standby, unknown. disabled: the edge stopped trying after repeated authentication failures, until you change the credentials or retry. standby: the reporting edge node isn't the one registering. unknown: no report yet. |
registration.last_code | SIP status of the last REGISTER answer (200 when registered); null if none. |
registration.last_reason | Why the last attempt failed, e.g. auth_failed, send_failed or auth_brake; null when fine. |
registration.expires_in | Seconds until the current registration expires; null if the edge has no registration record. |
registration.registrar_host | Registrar host name or IPv4 address. |
registration.registrar_port | Registrar port. |
registration.transport | udp, tcp or tls. |
registration.domain | SIP domain of the account; empty: the registrar host. |
registration.username | SIP user name. |
registration.auth_username | Authentication user name; empty: username. |
registration.realm | Digest realm; empty if not set. |
registration.expires | Registration lifetime RelayDock asks for, in seconds. |
registration.source_ips | Addresses the registrar may send calls from. |
registration.last_attempt | SIP messages of the last registration attempt (up to 12): ts (Unix time), dir (out sent by RelayDock, in received), msg and code (SIP status or null). |
registration.last_registered_at | Last successful registration; null if never. |
registration.state_changed_at | When state last changed. |
registration.generation | Goes up with every change that makes the edge re-register. |
registration.has_password | Whether a password is stored. |
trunk | Trunk settings; null for registration endpoints. |
trunk.source_ips | Carrier IP addresses and blocks allowed to send calls. |
trunk.source_ip_count | Number of entries in source_ips. |
trunk.digest_username | User name the carrier authenticates with; null if none. |
trunk.has_digest_password | Whether a digest password is stored. |
trunk.outbound | Outbound settings; null for an inbound-only trunk. |
trunk.outbound.host | Carrier SIP host name or IPv4 address. |
trunk.outbound.port | Carrier SIP port. |
trunk.outbound.transport | udp, tcp or tls. |
trunk.outbound.auth_type | none (static IP) or digest. |
trunk.outbound.username | Digest user name; empty with auth_type none. |
trunk.outbound.has_password | Whether a digest password is stored. |
outbound_numbers | Caller numbers your agents may call out with. |
dial_format | How outbound numbers are sent to the carrier: e164 as dialed; national_tr sends Turkish numbers (+90…) in national format (0…). |
platform_objects | LiveKit objects; null until first set up. |
platform_objects.inbound_trunk_id | LiveKit inbound trunk (rd-<sip_id>-in). |
platform_objects.outbound_trunk_id | LiveKit outbound trunk (rd-<sip_id>-out). |
platform_objects.dispatch_rule_id | LiveKit dispatch rule (rd-<sip_id>-rule). |
platform_objects.reconciled_at | When RelayDock last checked the objects. |
platform_objects.reconcile_state | Result of the last check: ok, fixed (missing or changed objects were restored) or error. |
platform_objects.last_error | LiveKit error code of the last check (livekit.invalid_credentials, livekit.permission_denied, livekit.not_found, livekit.unreachable, livekit.error). |
platform_setup | ElevenLabs endpoints: what to enter in ElevenLabs, including the SIP password. null for LiveKit. |
platform_setup.numbers | Import each of these as the phone number in ElevenLabs. |
platform_setup.address | Outbound → Address: where ElevenLabs sends your agent's outbound calls. |
platform_setup.transport | Outbound → Transport Type: tcp. |
platform_setup.username | Inbound and Outbound → Authentication user name. |
platform_setup.source_ip | Inbound → Allowed Source IP Addresses: your static IP, where RelayDock sends calls from. |
platform_setup.media_encryption | Inbound and Outbound → Media Encryption: disabled, or required with the relay_always audio mode. |
sip_domain | Your team's SIP address (<slug>.<SIP domain>; the static IP where no SIP domain is set up). Trunk carriers send calls here. |
public_ip | Your static IP: RelayDock registers and sends calls from it. Add it to your carrier's allow list. |
updated_at | When the endpoint last changed. |
{
"id": "3f6c2a1e-8b4d-4c7a-9e21-5d0b7f9a6c13",
"sip_id": "ep-7k2m9x4q1z",
"name": "Telnyx · +12025550123",
"kind": "registration",
"provider": "telnyx",
"mode": "auto",
"platform": "livekit",
"platform_host": "",
"agent_name": "my-agent",
"enabled": true,
"provision_state": "ready",
"provision_error": null,
"numbers": [
"+12025550123"
],
"history_24h": "------111111111111111111",
"created_at": "2026-03-02T10:15:00Z",
"diagnosis": {
"severity": "bad",
"key": "reg.auth_rejected",
"code": 401,
"since": "2026-03-14T09:26:53Z",
"action": "update_password"
},
"registration": {
"state": "registered",
"last_code": 200,
"last_reason": null,
"expires_in": 247,
"registrar_host": "sip.telnyx.eu",
"registrar_port": 5060,
"transport": "tcp",
"domain": "",
"username": "acme-support",
"auth_username": "",
"realm": "",
"expires": 300,
"source_ips": [
"185.246.41.140/32",
"185.246.41.141/32",
"192.76.120.72/32"
],
"last_attempt": [
{
"dir": "out",
"msg": "REGISTER sip:sip.telnyx.eu:5060",
"ts": 1773480413.2
},
{
"code": 401,
"dir": "in",
"msg": "401 Unauthorized",
"ts": 1773480413.3
},
{
"dir": "out",
"msg": "REGISTER sip:sip.telnyx.eu:5060",
"ts": 1773480413.4
},
{
"code": 200,
"dir": "in",
"msg": "200 OK",
"ts": 1773480413.5
}
],
"last_registered_at": "2026-03-14T09:26:53Z",
"state_changed_at": "2026-03-14T09:26:53Z",
"generation": 3,
"has_password": true
},
"trunk": {
"source_ips": [
"198.51.100.0/24"
],
"source_ip_count": 1,
"digest_username": null,
"has_digest_password": false,
"outbound": {
"host": "sip.carrier.example",
"port": 5060,
"transport": "tcp",
"auth_type": "digest",
"username": "acme-out",
"has_password": true
}
},
"outbound_numbers": [
"+12025550123"
],
"dial_format": "e164",
"platform_objects": {
"inbound_trunk_id": "ST_hX2c9QmZr4Lp",
"outbound_trunk_id": "ST_Vb7nK3dW8sTy",
"dispatch_rule_id": "SDR_4mQx8LzR2nPk",
"reconciled_at": "2026-03-14T09:26:53Z",
"reconcile_state": "ok",
"last_error": null
},
"platform_setup": {
"numbers": [
"+12025550123"
],
"address": "platform.sip.relaydock.io",
"transport": "tcp",
"username": "rd-ep-k3m9x2q7ab",
"source_ip": "203.0.113.10",
"media_encryption": "disabled"
},
"sip_domain": "acme.sip.relaydock.io",
"public_ip": "203.0.113.10",
"updated_at": "2026-03-14T09:26:53Z"
}Errors
Besides the errors any request can return:
| Code | Status | When |
|---|---|---|
endpoint.not_found | 404 | No endpoint with this `id` exists in your team, or it was deleted. |
number.taken | 409 | A number is already on another endpoint, in any team. Numbers are compared in every format carriers send. |
endpoint.digest_username_taken | 409 | `trunk.digest_username` is already used by another trunk, in any team. |
validation_error | 422 | A parameter or body field doesn't match the schema; `fields` maps each one to `validation.<type>`. |
endpoint.invalid_provider | 422 | `provider` isn't a template `code` from `GET /provider-templates`. |
endpoint.invalid_agent_name | 422 | `agent_name` doesn't start with a letter or digit, or has characters other than letters, digits, `.`, `_` and `-`. |
endpoint.registrar_required | 422 | `registration.registrar_host` is empty and the provider template has no registrar. |
endpoint.invalid_host | 422 | A registrar, SIP domain or outbound host isn't a host name or IPv4 address (registrar and outbound hosts also can't be private, loopback or reserved addresses). |
endpoint.invalid_username | 422 | A SIP user name has spaces, non-ASCII characters or one of `< > " @ : ; ?`. |
endpoint.password_required | 422 | A new `trunk.digest_username` was sent without `trunk.digest_password`, and no password is stored. |
number.invalid | 422 | `registration.number` or an entry in `trunk.numbers` isn't a +E.164 number. |
endpoint.invalid_cidr | 422 | An entry in `source_ips` isn't an IP address or CIDR block, or is a private, loopback or reserved block. |
endpoint.cidr_too_broad | 422 | An entry in `source_ips` is wider than /16 (IPv4) or /32 (IPv6). |
endpoint.source_ips_required | 422 | `registration.source_ips` is empty or `null`, and neither the template nor the registrar's DNS gave an address. |
endpoint.invalid_outbound_number | 422 | An entry in `outbound_numbers` isn't +E.164. Registration endpoints also accept a 2–15 digit extension; the message then mentions it. |
endpoint.digest_incomplete | 422 | `trunk.digest_password` is set without `trunk.digest_username`. |
endpoint.trunk_auth_required | 422 | A trunk needs `trunk.source_ips`, a `trunk.digest_username`, or both. |
endpoint.outbound_auth_required | 422 | `trunk.outbound.auth_type` is `digest` but the user name (or, with the message "Digest password is required", the password, when none is stored) is missing. |
rate_limited | 429 | More than 30 updates in the current one-minute window for your team (`Retry-After`: 60). |
Delete an endpoint
DELETE/endpoints/{endpoint_id}
Deletes the endpoint at once: its numbers and digest user name are freed, and the edge stops registering and taking its calls. RelayDock removes its LiveKit objects in the background. Its call records stay, and it still counts toward this month's endpoints.
Path parameters
| Field | Description |
|---|---|
endpoint_id | The endpoint's id (UUID), as returned by GET /endpoints. |
Example request
curl -X DELETE "https://api.relaydock.io/api/v1/endpoints/3f6c2a1e-8b4d-4c7a-9e21-5d0b7f9a6c13" \
-H "Authorization: Bearer $RELAYDOCK_API_KEY"import os
import requests
response = requests.delete(
"https://api.relaydock.io/api/v1/endpoints/3f6c2a1e-8b4d-4c7a-9e21-5d0b7f9a6c13",
headers={"Authorization": f"Bearer {os.environ['RELAYDOCK_API_KEY']}"},
timeout=30,
)
response.raise_for_status()
print(response.status_code)const response = await fetch('https://api.relaydock.io/api/v1/endpoints/3f6c2a1e-8b4d-4c7a-9e21-5d0b7f9a6c13', {
method: 'DELETE',
headers: {
'Authorization': `Bearer ${process.env.RELAYDOCK_API_KEY}`,
},
})
if (!response.ok)
throw new Error(`${response.status} ${await response.text()}`)
console.log(response.status)Response
204 with no body.
Errors
Besides the errors any request can return:
| Code | Status | When |
|---|---|---|
endpoint.not_found | 404 | No endpoint with this `id` exists in your team, or it was deleted. |
validation_error | 422 | A parameter or body field doesn't match the schema; `fields` maps each one to `validation.<type>`. |
Retry a registration
POST/endpoints/{endpoint_id}/retry-registration
Makes the edge register again now, for example after you fixed the password at your carrier or when registration.state is disabled; the registration's generation goes up. Returns 202 at once: poll GET /endpoints/{endpoint_id} for registration.state. Limited to 6 requests per minute per team.
Path parameters
| Field | Description |
|---|---|
endpoint_id | The endpoint's id (UUID), as returned by GET /endpoints. |
Example request
curl -X POST "https://api.relaydock.io/api/v1/endpoints/3f6c2a1e-8b4d-4c7a-9e21-5d0b7f9a6c13/retry-registration" \
-H "Authorization: Bearer $RELAYDOCK_API_KEY"import os
import requests
response = requests.post(
"https://api.relaydock.io/api/v1/endpoints/3f6c2a1e-8b4d-4c7a-9e21-5d0b7f9a6c13/retry-registration",
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/endpoints/3f6c2a1e-8b4d-4c7a-9e21-5d0b7f9a6c13/retry-registration', {
method: 'POST',
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
202 with a JSON object.
| Field | Description |
|---|---|
status | Always queued.Default: queued. |
generation | The registration's new generation; it goes up with every change that makes the edge re-register. |
{
"status": "queued",
"generation": 4
}Errors
Besides the errors any request can return:
| Code | Status | When |
|---|---|---|
endpoint.not_found | 404 | No endpoint with this `id` exists in your team, or it was deleted. |
endpoint.not_registration | 409 | The endpoint is a trunk. |
validation_error | 422 | A parameter or body field doesn't match the schema; `fields` maps each one to `validation.<type>`. |
rate_limited | 429 | More than 6 retries in the current one-minute window for your team (`Retry-After`: 60). |
Get an ElevenLabs endpoint's SIP password
POST/endpoints/{endpoint_id}/platform-password
Returns the SIP user name and password to enter in ElevenLabs (Inbound and Outbound → Authentication). The endpoint's details never include the password. Each call is recorded in your team's audit log, and the response is sent with Cache-Control: no-store. LiveKit endpoints have no such password (409). Limited to 20 requests per minute per team.
Path parameters
| Field | Description |
|---|---|
endpoint_id | The endpoint's id (UUID), as returned by GET /endpoints. |
Example request
curl -X POST "https://api.relaydock.io/api/v1/endpoints/3f6c2a1e-8b4d-4c7a-9e21-5d0b7f9a6c13/platform-password" \
-H "Authorization: Bearer $RELAYDOCK_API_KEY"import os
import requests
response = requests.post(
"https://api.relaydock.io/api/v1/endpoints/3f6c2a1e-8b4d-4c7a-9e21-5d0b7f9a6c13/platform-password",
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/endpoints/3f6c2a1e-8b4d-4c7a-9e21-5d0b7f9a6c13/platform-password', {
method: 'POST',
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 object.
| Field | Description |
|---|---|
username | Authentication user name (same as platform_setup.username). |
password | Authentication password. Secret: don't log or store it. |
{
"username": "rd-ep-k3m9x2q7ab",
"password": "…"
}Errors
Besides the errors any request can return:
| Code | Status | When |
|---|---|---|
endpoint.not_found | 404 | No endpoint with this `id` exists in your team, or it was deleted. |
endpoint.no_platform_password | 409 | The endpoint is a LiveKit endpoint; only ElevenLabs endpoints have a SIP password to enter on the platform. |
validation_error | 422 | A parameter or body field doesn't match the schema; `fields` maps each one to `validation.<type>`. |
rate_limited | 429 | More than 20 requests in the current one-minute window for your team (`Retry-After`: 60). |
List provider templates
GET/provider-templates
Returns the carrier and PBX templates you can pass as provider when adding an endpoint. A template fills in the registrar, port, transport, source IPs and dial format you leave out; verified tells whether it was tested with live traffic.
Example request
curl "https://api.relaydock.io/api/v1/provider-templates" \
-H "Authorization: Bearer $RELAYDOCK_API_KEY"import os
import requests
response = requests.get(
"https://api.relaydock.io/api/v1/provider-templates",
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/provider-templates', {
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 |
|---|---|
code | Value for provider when adding an endpoint. |
label | Display name. |
kind | Endpoint kind the template is for (registration). |
registrar_host | Registrar host; empty for PBX templates, where you give your own. |
registrar_port | Registrar port. |
transport | SIP transport: udp, tcp or tls. |
source_ips | Addresses the provider sends calls from; may be empty. |
dial_format | e164 or national_tr (Turkish numbers in national format). |
verified | true if tested with live traffic, false if not yet, null for the generic other template. |
verified_at | Day of the live test (YYYY-MM-DD); empty if not tested. |
[
{
"code": "telnyx",
"label": "Telnyx",
"kind": "registration",
"registrar_host": "sip.telnyx.eu",
"registrar_port": 5060,
"transport": "tcp",
"source_ips": [
"185.246.41.140/32",
"185.246.41.141/32",
"192.76.120.72/32"
],
"dial_format": "e164",
"verified": true,
"verified_at": "2026-11-14"
}
]