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.

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
kindstringOnly endpoints of this kind. One of: registration, trunk.
statestringproblem: only endpoints that need attention (problem: true).

Example request

curl "https://api.relaydock.io/api/v1/endpoints" \
  -H "Authorization: Bearer $RELAYDOCK_API_KEY"

Response

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

Field Description
idstring (uuid)Endpoint ID.
sip_idstringThe 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>-.
namestringDisplay name.
kindstringregistration or trunk.
providerstringProvider template code (telnyx, netgsm, 3cx, mikopbx, freepbx, other).
modestringWhere 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).
platformstringlivekit or elevenlabs.
platform_hoststringElevenLabs 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_namestringLiveKit agent dispatched to incoming calls; empty for none.
enabledbooleanfalse when the endpoint is turned off (no registration, no calls).
provision_statestringLiveKit setup: waiting_target (no LiveKit project connected, or its credentials were rejected), pending (being set up), ready or error (see provision_error).
provision_errorstringcan be nullLiveKit error code of the last setup attempt (livekit.invalid_credentials, livekit.permission_denied, livekit.not_found, livekit.unreachable, livekit.error); null when fine.
numbersarray of stringNumbers (DIDs) on this endpoint, +E.164, sorted.
history_24hstringRegistration over the last 24 hours, one character per hour, oldest first: 1 up, 0 down, 2 both, - no data. Trunks always show -.
created_atstring (date-time)When the endpoint was created.
registrationobjectcan be nullRegistration status; null for trunks.
registration.statestringOne 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_codeintegercan be nullSIP status of the last REGISTER answer (200 when registered); null if none.
registration.last_reasonstringcan be nullWhy the last attempt failed, e.g. auth_failed, send_failed or auth_brake; null when fine.
registration.expires_inintegercan be nullSeconds until the current registration expires; null if the edge has no registration record.
trunkobjectcan be nullTrunk summary; null for registration endpoints.
trunk.source_ip_countintegerNumber of allowed carrier IP addresses and blocks.
trunk.digestbooleanWhether the carrier authenticates with a digest user name.
trunk.outboundbooleanWhether outbound calls are set up.
problembooleantrue when the endpoint needs attention: LiveKit setup failed or registration is failing.
json
[
  {
    "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_error422A 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
kindstringrequiredregistration: RelayDock registers with your carrier or PBX. trunk: the carrier sends calls to your static IP and SIP address. One of: registration, trunk.
namestringnullableDisplay name, one line. Leave out for a default such as Telnyx · +12025550123 or sip.carrier.example trunk.1–120 characters.
providerstringProvider 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.
modestringWhere 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.
platformstringWhere 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_hoststringElevenLabs 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_namestringThe 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_numbersarray of stringnullableCaller 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_formatstringnullableHow 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.
registrationobjectnullableRegistration details. Required when kind is registration; ignored otherwise.
registration.registrar_hoststringnullableRegistrar (SIP server) host name or IPv4 address. Leave out to use the provider template's.Up to 255 characters.
registration.registrar_portintegernullableRegistrar port. Leave out to use the template's (5060).1–65535.
registration.transportstringnullableSIP transport to the registrar. Leave out to use the template's (tcp). One of: udp, tcp, tls.
registration.domainstringnullableSIP domain of the account, if it differs from the registrar. Empty: the registrar host.Up to 255 characters.
registration.usernamestringrequiredSIP user name RelayDock registers with.1–128 characters.
registration.auth_usernamestringnullableAuthentication user name, only if it differs from username. Empty: username.Up to 128 characters.
registration.passwordstringrequiredSIP password. Stored encrypted and never returned.1–128 characters.
registration.realmstringDigest realm, only if your provider asks for a specific one.Default: .Up to 128 characters.
registration.expiresintegerRegistration lifetime RelayDock asks for, in seconds.Default: 300.60–3600.
registration.numberstringnullableThe +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_ipsarray of stringnullableIP 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.
trunkobjectnullableTrunk details. Required when kind is trunk; ignored otherwise.
trunk.source_ipsarray of stringnullableIP 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_usernamestringnullableUser name the carrier authenticates with when it sends calls (unique across RelayDock). Leave out for IP-only trunks.Up to 128 characters.
trunk.digest_passwordstringnullablePassword for digest_username. Stored encrypted and never returned.Up to 128 characters.
trunk.numbersarray of stringNumbers (DIDs) the carrier sends to this trunk, as +E.164. A number can be on only one endpoint.Up to 100 items.
trunk.outboundobjectnullableOutbound calls. Leave out for an inbound-only trunk.
trunk.outbound.hoststringrequiredCarrier SIP host name or IPv4 address.1–255 characters.
trunk.outbound.portintegerCarrier SIP port.Default: 5060.1–65535.
trunk.outbound.transportstringSIP transport from RelayDock to the carrier. One of: udp, tcp, tls. Default: tcp.
trunk.outbound.auth_typestringnone: the carrier accepts calls from RelayDock's static IP; digest: RelayDock authenticates with username and password. One of: none, digest. Default: none.
trunk.outbound.usernamestringnullableDigest user name; required when auth_type is digest.Up to 128 characters.
trunk.outbound.passwordstringnullableDigest 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

Register a Telnyx number
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"
    }
  }'
Trunk authenticated by IP, with outbound calls
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"
      }
    }
  }'
Register an extension on your PBX
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"
      ]
    }
  }'

Response

201 with a JSON object.

Field Description
idstring (uuid)Endpoint ID.
sip_idstringThe 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>-.
namestringDisplay name.
kindstringregistration or trunk.
providerstringProvider template code (telnyx, netgsm, 3cx, mikopbx, freepbx, other).
modestringWhere 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).
platformstringlivekit or elevenlabs.
platform_hoststringElevenLabs 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_namestringLiveKit agent dispatched to incoming calls; empty for none.
enabledbooleanfalse when the endpoint is turned off (no registration, no calls).
provision_statestringLiveKit setup: waiting_target (no LiveKit project connected, or its credentials were rejected), pending (being set up), ready or error (see provision_error).
provision_errorstringcan be nullLiveKit error code of the last setup attempt (livekit.invalid_credentials, livekit.permission_denied, livekit.not_found, livekit.unreachable, livekit.error); null when fine.
numbersarray of stringNumbers (DIDs) on this endpoint, +E.164, sorted.
history_24hstringRegistration over the last 24 hours, one character per hour, oldest first: 1 up, 0 down, 2 both, - no data. Trunks always show -.
created_atstring (date-time)When the endpoint was created.
diagnosisobjectcan be nullThe most important problem; null when all is well or disabled.
diagnosis.severitystringbad: calls are affected; warn: needs attention. One of: bad, warn.
diagnosis.keystringWhat'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.codeinteger or stringcan be nullSIP status (registration problems) or LiveKit error code (LiveKit problems); null if none.
diagnosis.sincestring (date-time)can be nullSince when the problem has been seen; null if unknown.
diagnosis.actionstringcan be nullSuggested next step: resync, connect_livekit, update_password, contact_provider, check_username, check_address, retry; null if none.
registrationobjectcan be nullRegistration settings and status; null for trunks.
registration.statestringOne 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_codeintegercan be nullSIP status of the last REGISTER answer (200 when registered); null if none.
registration.last_reasonstringcan be nullWhy the last attempt failed, e.g. auth_failed, send_failed or auth_brake; null when fine.
registration.expires_inintegercan be nullSeconds until the current registration expires; null if the edge has no registration record.
registration.registrar_hoststringRegistrar host name or IPv4 address.
registration.registrar_portintegerRegistrar port.
registration.transportstringudp, tcp or tls.
registration.domainstringSIP domain of the account; empty: the registrar host.
registration.usernamestringSIP user name.
registration.auth_usernamestringAuthentication user name; empty: username.
registration.realmstringDigest realm; empty if not set.
registration.expiresintegerRegistration lifetime RelayDock asks for, in seconds.
registration.source_ipsarray of stringAddresses the registrar may send calls from.
registration.last_attemptarray of objectSIP 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_atstring (date-time)can be nullLast successful registration; null if never.
registration.state_changed_atstring (date-time)can be nullWhen state last changed.
registration.generationintegerGoes up with every change that makes the edge re-register.
registration.has_passwordbooleanWhether a password is stored.
trunkobjectcan be nullTrunk settings; null for registration endpoints.
trunk.source_ipsarray of stringCarrier IP addresses and blocks allowed to send calls.
trunk.source_ip_countintegerNumber of entries in source_ips.
trunk.digest_usernamestringcan be nullUser name the carrier authenticates with; null if none.
trunk.has_digest_passwordbooleanWhether a digest password is stored.
trunk.outboundobjectcan be nullOutbound settings; null for an inbound-only trunk.
trunk.outbound.hoststringCarrier SIP host name or IPv4 address.
trunk.outbound.portintegerCarrier SIP port.
trunk.outbound.transportstringudp, tcp or tls.
trunk.outbound.auth_typestringnone (static IP) or digest.
trunk.outbound.usernamestringDigest user name; empty with auth_type none.
trunk.outbound.has_passwordbooleanWhether a digest password is stored.
outbound_numbersarray of stringCaller numbers your agents may call out with.
dial_formatstringHow outbound numbers are sent to the carrier: e164 as dialed; national_tr sends Turkish numbers (+90…) in national format (0…).
platform_objectsobjectcan be nullLiveKit objects; null until first set up.
platform_objects.inbound_trunk_idstringcan be nullLiveKit inbound trunk (rd-<sip_id>-in).
platform_objects.outbound_trunk_idstringcan be nullLiveKit outbound trunk (rd-<sip_id>-out).
platform_objects.dispatch_rule_idstringcan be nullLiveKit dispatch rule (rd-<sip_id>-rule).
platform_objects.reconciled_atstring (date-time)When RelayDock last checked the objects.
platform_objects.reconcile_statestringResult of the last check: ok, fixed (missing or changed objects were restored) or error.
platform_objects.last_errorstringcan be nullLiveKit error code of the last check (livekit.invalid_credentials, livekit.permission_denied, livekit.not_found, livekit.unreachable, livekit.error).
platform_setupobjectcan be nullElevenLabs endpoints: what to enter in ElevenLabs, including the SIP password. null for LiveKit.
platform_setup.numbersarray of stringImport each of these as the phone number in ElevenLabs.
platform_setup.addressstringOutbound → Address: where ElevenLabs sends your agent's outbound calls.
platform_setup.transportstringOutbound → Transport Type: tcp.
platform_setup.usernamestringInbound and Outbound → Authentication user name.
platform_setup.source_ipstringInbound → Allowed Source IP Addresses: your static IP, where RelayDock sends calls from.
platform_setup.media_encryptionstringInbound and Outbound → Media Encryption: disabled, or required with the relay_always audio mode.
sip_domainstringYour team's SIP address (<slug>.<SIP domain>; the static IP where no SIP domain is set up). Trunk carriers send calls here.
public_ipstringYour static IP: RelayDock registers and sends calls from it. Add it to your carrier's allow list.
updated_atstring (date-time)When the endpoint last changed.
json
{
  "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_limit409Your plan's endpoint limit is reached (the message names your plan and its limit).
number.taken409A number is already on another endpoint, in any team. Numbers are compared in every format carriers send.
endpoint.digest_username_taken409`trunk.digest_username` is already used by another trunk, in any team.
validation_error422A parameter or body field doesn't match the schema; `fields` maps each one to `validation.<type>`.
endpoint.invalid_provider422`provider` isn't a template `code` from `GET /provider-templates`.
endpoint.invalid_agent_name422`agent_name` doesn't start with a letter or digit, or has characters other than letters, digits, `.`, `_` and `-`.
endpoint.registration_required422`kind` is `registration` but `registration` is missing.
endpoint.trunk_required422`kind` is `trunk` but `trunk` is missing.
endpoint.registrar_required422`registration.registrar_host` is empty and the provider template has no registrar.
endpoint.invalid_host422A 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_username422A SIP user name has spaces, non-ASCII characters or one of `< > " @ : ; ?`.
endpoint.password_required422`trunk.digest_username` is set but `trunk.digest_password` is missing.
number.invalid422`registration.number` or an entry in `trunk.numbers` isn't a +E.164 number.
endpoint.invalid_cidr422An entry in `source_ips` isn't an IP address or CIDR block, or is a private, loopback or reserved block.
endpoint.cidr_too_broad422An entry in `source_ips` is wider than /16 (IPv4) or /32 (IPv6).
endpoint.source_ips_required422`registration.source_ips` is empty or `null`, and neither the template nor the registrar's DNS gave an address.
endpoint.invalid_outbound_number422An entry in `outbound_numbers` isn't +E.164. Registration endpoints also accept a 2–15 digit extension; the message then mentions it.
endpoint.digest_incomplete422`trunk.digest_password` is set without `trunk.digest_username`.
endpoint.trunk_auth_required422A trunk needs `trunk.source_ips`, a `trunk.digest_username`, or both.
endpoint.outbound_auth_required422`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_idstring (uuid)requiredThe 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"

Response

200 with a JSON object.

Field Description
idstring (uuid)Endpoint ID.
sip_idstringThe 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>-.
namestringDisplay name.
kindstringregistration or trunk.
providerstringProvider template code (telnyx, netgsm, 3cx, mikopbx, freepbx, other).
modestringWhere 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).
platformstringlivekit or elevenlabs.
platform_hoststringElevenLabs 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_namestringLiveKit agent dispatched to incoming calls; empty for none.
enabledbooleanfalse when the endpoint is turned off (no registration, no calls).
provision_statestringLiveKit setup: waiting_target (no LiveKit project connected, or its credentials were rejected), pending (being set up), ready or error (see provision_error).
provision_errorstringcan be nullLiveKit error code of the last setup attempt (livekit.invalid_credentials, livekit.permission_denied, livekit.not_found, livekit.unreachable, livekit.error); null when fine.
numbersarray of stringNumbers (DIDs) on this endpoint, +E.164, sorted.
history_24hstringRegistration over the last 24 hours, one character per hour, oldest first: 1 up, 0 down, 2 both, - no data. Trunks always show -.
created_atstring (date-time)When the endpoint was created.
diagnosisobjectcan be nullThe most important problem; null when all is well or disabled.
diagnosis.severitystringbad: calls are affected; warn: needs attention. One of: bad, warn.
diagnosis.keystringWhat'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.codeinteger or stringcan be nullSIP status (registration problems) or LiveKit error code (LiveKit problems); null if none.
diagnosis.sincestring (date-time)can be nullSince when the problem has been seen; null if unknown.
diagnosis.actionstringcan be nullSuggested next step: resync, connect_livekit, update_password, contact_provider, check_username, check_address, retry; null if none.
registrationobjectcan be nullRegistration settings and status; null for trunks.
registration.statestringOne 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_codeintegercan be nullSIP status of the last REGISTER answer (200 when registered); null if none.
registration.last_reasonstringcan be nullWhy the last attempt failed, e.g. auth_failed, send_failed or auth_brake; null when fine.
registration.expires_inintegercan be nullSeconds until the current registration expires; null if the edge has no registration record.
registration.registrar_hoststringRegistrar host name or IPv4 address.
registration.registrar_portintegerRegistrar port.
registration.transportstringudp, tcp or tls.
registration.domainstringSIP domain of the account; empty: the registrar host.
registration.usernamestringSIP user name.
registration.auth_usernamestringAuthentication user name; empty: username.
registration.realmstringDigest realm; empty if not set.
registration.expiresintegerRegistration lifetime RelayDock asks for, in seconds.
registration.source_ipsarray of stringAddresses the registrar may send calls from.
registration.last_attemptarray of objectSIP 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_atstring (date-time)can be nullLast successful registration; null if never.
registration.state_changed_atstring (date-time)can be nullWhen state last changed.
registration.generationintegerGoes up with every change that makes the edge re-register.
registration.has_passwordbooleanWhether a password is stored.
trunkobjectcan be nullTrunk settings; null for registration endpoints.
trunk.source_ipsarray of stringCarrier IP addresses and blocks allowed to send calls.
trunk.source_ip_countintegerNumber of entries in source_ips.
trunk.digest_usernamestringcan be nullUser name the carrier authenticates with; null if none.
trunk.has_digest_passwordbooleanWhether a digest password is stored.
trunk.outboundobjectcan be nullOutbound settings; null for an inbound-only trunk.
trunk.outbound.hoststringCarrier SIP host name or IPv4 address.
trunk.outbound.portintegerCarrier SIP port.
trunk.outbound.transportstringudp, tcp or tls.
trunk.outbound.auth_typestringnone (static IP) or digest.
trunk.outbound.usernamestringDigest user name; empty with auth_type none.
trunk.outbound.has_passwordbooleanWhether a digest password is stored.
outbound_numbersarray of stringCaller numbers your agents may call out with.
dial_formatstringHow outbound numbers are sent to the carrier: e164 as dialed; national_tr sends Turkish numbers (+90…) in national format (0…).
platform_objectsobjectcan be nullLiveKit objects; null until first set up.
platform_objects.inbound_trunk_idstringcan be nullLiveKit inbound trunk (rd-<sip_id>-in).
platform_objects.outbound_trunk_idstringcan be nullLiveKit outbound trunk (rd-<sip_id>-out).
platform_objects.dispatch_rule_idstringcan be nullLiveKit dispatch rule (rd-<sip_id>-rule).
platform_objects.reconciled_atstring (date-time)When RelayDock last checked the objects.
platform_objects.reconcile_statestringResult of the last check: ok, fixed (missing or changed objects were restored) or error.
platform_objects.last_errorstringcan be nullLiveKit error code of the last check (livekit.invalid_credentials, livekit.permission_denied, livekit.not_found, livekit.unreachable, livekit.error).
platform_setupobjectcan be nullElevenLabs endpoints: what to enter in ElevenLabs, including the SIP password. null for LiveKit.
platform_setup.numbersarray of stringImport each of these as the phone number in ElevenLabs.
platform_setup.addressstringOutbound → Address: where ElevenLabs sends your agent's outbound calls.
platform_setup.transportstringOutbound → Transport Type: tcp.
platform_setup.usernamestringInbound and Outbound → Authentication user name.
platform_setup.source_ipstringInbound → Allowed Source IP Addresses: your static IP, where RelayDock sends calls from.
platform_setup.media_encryptionstringInbound and Outbound → Media Encryption: disabled, or required with the relay_always audio mode.
sip_domainstringYour team's SIP address (<slug>.<SIP domain>; the static IP where no SIP domain is set up). Trunk carriers send calls here.
public_ipstringYour static IP: RelayDock registers and sends calls from it. Add it to your carrier's allow list.
updated_atstring (date-time)When the endpoint last changed.
json
{
  "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_found404No endpoint with this `id` exists in your team, or it was deleted.
validation_error422A 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_idstring (uuid)requiredThe endpoint's id (UUID), as returned by GET /endpoints.

Request body

Field Description
namestringnullableDisplay name, one line. null restores the default name.1–120 characters.
providerstringnullableProvider template code (telnyx, netgsm, 3cx, mikopbx, freepbx, other). null keeps it.Up to 16 characters.
modestringnullableWhere 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.
platformstringnullableCan't be changed: sending a different platform than the endpoint's returns 422. One of: livekit, elevenlabs.
platform_hoststringnullableElevenLabs 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_namestringnullableThe 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_numbersarray of stringnullableCaller 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_formatstringnullableHow 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.
enabledbooleannullablefalse takes the endpoint off the edge: no registration and no calls (its LiveKit objects stay). true turns it back on. null keeps it.
registrationobjectnullableRegistration changes (registration endpoints).
registration.registrar_hoststringnullableRegistrar host name or IPv4 address. null keeps it; an empty string uses the template's.Up to 255 characters.
registration.registrar_portintegernullableRegistrar port. null keeps it.1–65535.
registration.transportstringnullableSIP transport to the registrar. null keeps it. One of: udp, tcp, tls.
registration.domainstringnullableSIP domain of the account. null or empty: the registrar host.Up to 255 characters.
registration.usernamestringnullableSIP user name. null keeps it.1–128 characters.
registration.auth_usernamestringnullableAuthentication user name. null or empty: username.Up to 128 characters.
registration.passwordstringnullableNew SIP password. null keeps the stored one. Stored encrypted and never returned.1–128 characters.
registration.realmstringnullableDigest realm. null or empty clears it.Up to 128 characters.
registration.expiresintegernullableRegistration lifetime in seconds. null keeps it.60–3600.
registration.numberstringnullableThe account's +E.164 number. null removes it.Up to 32 characters.
registration.source_ipsarray of stringnullableIP 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.
trunkobjectnullableTrunk changes (trunk endpoints).
trunk.source_ipsarray of stringnullableIP 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_usernamestringnullableUser name the carrier authenticates with. null removes digest authentication (and its password).Up to 128 characters.
trunk.digest_passwordstringnullableNew password for digest_username. null keeps the stored one. Stored encrypted and never returned.Up to 128 characters.
trunk.numbersarray of stringnullableNumbers (DIDs) as +E.164; replaces the list. null removes them all.Up to 100 items.
trunk.outboundobjectnullableReplaces the outbound settings (leave out password to keep the stored one). null turns outbound calls off.
trunk.outbound.hoststringrequiredCarrier SIP host name or IPv4 address.1–255 characters.
trunk.outbound.portintegerCarrier SIP port.Default: 5060.1–65535.
trunk.outbound.transportstringSIP transport from RelayDock to the carrier. One of: udp, tcp, tls. Default: tcp.
trunk.outbound.auth_typestringnone: the carrier accepts calls from RelayDock's static IP; digest: RelayDock authenticates with username and password. One of: none, digest. Default: none.
trunk.outbound.usernamestringnullableDigest user name; required when auth_type is digest.Up to 128 characters.
trunk.outbound.passwordstringnullableDigest 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

Dispatch another LiveKit agent
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"
  }'
Always relay audio (SRTP to LiveKit)
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"
  }'
New SIP password; the edge re-registers
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"
    }
  }'
No registration and no calls until turned on
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
  }'

Response

200 with a JSON object.

Field Description
idstring (uuid)Endpoint ID.
sip_idstringThe 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>-.
namestringDisplay name.
kindstringregistration or trunk.
providerstringProvider template code (telnyx, netgsm, 3cx, mikopbx, freepbx, other).
modestringWhere 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).
platformstringlivekit or elevenlabs.
platform_hoststringElevenLabs 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_namestringLiveKit agent dispatched to incoming calls; empty for none.
enabledbooleanfalse when the endpoint is turned off (no registration, no calls).
provision_statestringLiveKit setup: waiting_target (no LiveKit project connected, or its credentials were rejected), pending (being set up), ready or error (see provision_error).
provision_errorstringcan be nullLiveKit error code of the last setup attempt (livekit.invalid_credentials, livekit.permission_denied, livekit.not_found, livekit.unreachable, livekit.error); null when fine.
numbersarray of stringNumbers (DIDs) on this endpoint, +E.164, sorted.
history_24hstringRegistration over the last 24 hours, one character per hour, oldest first: 1 up, 0 down, 2 both, - no data. Trunks always show -.
created_atstring (date-time)When the endpoint was created.
diagnosisobjectcan be nullThe most important problem; null when all is well or disabled.
diagnosis.severitystringbad: calls are affected; warn: needs attention. One of: bad, warn.
diagnosis.keystringWhat'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.codeinteger or stringcan be nullSIP status (registration problems) or LiveKit error code (LiveKit problems); null if none.
diagnosis.sincestring (date-time)can be nullSince when the problem has been seen; null if unknown.
diagnosis.actionstringcan be nullSuggested next step: resync, connect_livekit, update_password, contact_provider, check_username, check_address, retry; null if none.
registrationobjectcan be nullRegistration settings and status; null for trunks.
registration.statestringOne 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_codeintegercan be nullSIP status of the last REGISTER answer (200 when registered); null if none.
registration.last_reasonstringcan be nullWhy the last attempt failed, e.g. auth_failed, send_failed or auth_brake; null when fine.
registration.expires_inintegercan be nullSeconds until the current registration expires; null if the edge has no registration record.
registration.registrar_hoststringRegistrar host name or IPv4 address.
registration.registrar_portintegerRegistrar port.
registration.transportstringudp, tcp or tls.
registration.domainstringSIP domain of the account; empty: the registrar host.
registration.usernamestringSIP user name.
registration.auth_usernamestringAuthentication user name; empty: username.
registration.realmstringDigest realm; empty if not set.
registration.expiresintegerRegistration lifetime RelayDock asks for, in seconds.
registration.source_ipsarray of stringAddresses the registrar may send calls from.
registration.last_attemptarray of objectSIP 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_atstring (date-time)can be nullLast successful registration; null if never.
registration.state_changed_atstring (date-time)can be nullWhen state last changed.
registration.generationintegerGoes up with every change that makes the edge re-register.
registration.has_passwordbooleanWhether a password is stored.
trunkobjectcan be nullTrunk settings; null for registration endpoints.
trunk.source_ipsarray of stringCarrier IP addresses and blocks allowed to send calls.
trunk.source_ip_countintegerNumber of entries in source_ips.
trunk.digest_usernamestringcan be nullUser name the carrier authenticates with; null if none.
trunk.has_digest_passwordbooleanWhether a digest password is stored.
trunk.outboundobjectcan be nullOutbound settings; null for an inbound-only trunk.
trunk.outbound.hoststringCarrier SIP host name or IPv4 address.
trunk.outbound.portintegerCarrier SIP port.
trunk.outbound.transportstringudp, tcp or tls.
trunk.outbound.auth_typestringnone (static IP) or digest.
trunk.outbound.usernamestringDigest user name; empty with auth_type none.
trunk.outbound.has_passwordbooleanWhether a digest password is stored.
outbound_numbersarray of stringCaller numbers your agents may call out with.
dial_formatstringHow outbound numbers are sent to the carrier: e164 as dialed; national_tr sends Turkish numbers (+90…) in national format (0…).
platform_objectsobjectcan be nullLiveKit objects; null until first set up.
platform_objects.inbound_trunk_idstringcan be nullLiveKit inbound trunk (rd-<sip_id>-in).
platform_objects.outbound_trunk_idstringcan be nullLiveKit outbound trunk (rd-<sip_id>-out).
platform_objects.dispatch_rule_idstringcan be nullLiveKit dispatch rule (rd-<sip_id>-rule).
platform_objects.reconciled_atstring (date-time)When RelayDock last checked the objects.
platform_objects.reconcile_statestringResult of the last check: ok, fixed (missing or changed objects were restored) or error.
platform_objects.last_errorstringcan be nullLiveKit error code of the last check (livekit.invalid_credentials, livekit.permission_denied, livekit.not_found, livekit.unreachable, livekit.error).
platform_setupobjectcan be nullElevenLabs endpoints: what to enter in ElevenLabs, including the SIP password. null for LiveKit.
platform_setup.numbersarray of stringImport each of these as the phone number in ElevenLabs.
platform_setup.addressstringOutbound → Address: where ElevenLabs sends your agent's outbound calls.
platform_setup.transportstringOutbound → Transport Type: tcp.
platform_setup.usernamestringInbound and Outbound → Authentication user name.
platform_setup.source_ipstringInbound → Allowed Source IP Addresses: your static IP, where RelayDock sends calls from.
platform_setup.media_encryptionstringInbound and Outbound → Media Encryption: disabled, or required with the relay_always audio mode.
sip_domainstringYour team's SIP address (<slug>.<SIP domain>; the static IP where no SIP domain is set up). Trunk carriers send calls here.
public_ipstringYour static IP: RelayDock registers and sends calls from it. Add it to your carrier's allow list.
updated_atstring (date-time)When the endpoint last changed.
json
{
  "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_found404No endpoint with this `id` exists in your team, or it was deleted.
number.taken409A number is already on another endpoint, in any team. Numbers are compared in every format carriers send.
endpoint.digest_username_taken409`trunk.digest_username` is already used by another trunk, in any team.
validation_error422A parameter or body field doesn't match the schema; `fields` maps each one to `validation.<type>`.
endpoint.invalid_provider422`provider` isn't a template `code` from `GET /provider-templates`.
endpoint.invalid_agent_name422`agent_name` doesn't start with a letter or digit, or has characters other than letters, digits, `.`, `_` and `-`.
endpoint.registrar_required422`registration.registrar_host` is empty and the provider template has no registrar.
endpoint.invalid_host422A 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_username422A SIP user name has spaces, non-ASCII characters or one of `< > " @ : ; ?`.
endpoint.password_required422A new `trunk.digest_username` was sent without `trunk.digest_password`, and no password is stored.
number.invalid422`registration.number` or an entry in `trunk.numbers` isn't a +E.164 number.
endpoint.invalid_cidr422An entry in `source_ips` isn't an IP address or CIDR block, or is a private, loopback or reserved block.
endpoint.cidr_too_broad422An entry in `source_ips` is wider than /16 (IPv4) or /32 (IPv6).
endpoint.source_ips_required422`registration.source_ips` is empty or `null`, and neither the template nor the registrar's DNS gave an address.
endpoint.invalid_outbound_number422An entry in `outbound_numbers` isn't +E.164. Registration endpoints also accept a 2–15 digit extension; the message then mentions it.
endpoint.digest_incomplete422`trunk.digest_password` is set without `trunk.digest_username`.
endpoint.trunk_auth_required422A trunk needs `trunk.source_ips`, a `trunk.digest_username`, or both.
endpoint.outbound_auth_required422`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_limited429More 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_idstring (uuid)requiredThe 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"

Response

204 with no body.

Errors

Besides the errors any request can return:

Code Status When
endpoint.not_found404No endpoint with this `id` exists in your team, or it was deleted.
validation_error422A 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_idstring (uuid)requiredThe 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"

Response

202 with a JSON object.

Field Description
statusstringAlways queued.Default: queued.
generationintegerThe registration's new generation; it goes up with every change that makes the edge re-register.
json
{
  "status": "queued",
  "generation": 4
}

Errors

Besides the errors any request can return:

Code Status When
endpoint.not_found404No endpoint with this `id` exists in your team, or it was deleted.
endpoint.not_registration409The endpoint is a trunk.
validation_error422A parameter or body field doesn't match the schema; `fields` maps each one to `validation.<type>`.
rate_limited429More 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_idstring (uuid)requiredThe 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"

Response

200 with a JSON object.

Field Description
usernamestringAuthentication user name (same as platform_setup.username).
passwordstringAuthentication password. Secret: don't log or store it.
json
{
  "username": "rd-ep-k3m9x2q7ab",
  "password": "…"
}

Errors

Besides the errors any request can return:

Code Status When
endpoint.not_found404No endpoint with this `id` exists in your team, or it was deleted.
endpoint.no_platform_password409The endpoint is a LiveKit endpoint; only ElevenLabs endpoints have a SIP password to enter on the platform.
validation_error422A parameter or body field doesn't match the schema; `fields` maps each one to `validation.<type>`.
rate_limited429More 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"

Response

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

Field Description
codestringValue for provider when adding an endpoint.
labelstringDisplay name.
kindstringEndpoint kind the template is for (registration).
registrar_hoststringRegistrar host; empty for PBX templates, where you give your own.
registrar_portintegerRegistrar port.
transportstringSIP transport: udp, tcp or tls.
source_ipsarray of stringAddresses the provider sends calls from; may be empty.
dial_formatstringe164 or national_tr (Turkish numbers in national format).
verifiedbooleancan be nulltrue if tested with live traffic, false if not yet, null for the generic other template.
verified_atstringDay of the live test (YYYY-MM-DD); empty if not tested.
json
[
  {
    "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"
  }
]