Docs API reference

Activity

The event feed of your team or of one endpoint, and the registration history of a registration endpoint.

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 Notifications.

List events

GET/events

Returns your team's activity feed, newest first: endpoint changes, registration ups and downs, LiveKit setup, rejected calls and billing changes. For the next page, pass the last event's id as before; an empty or short page means you reached the end.

Query parameters

Field Description
limitintegerPage size, 1–100.Default: 20.
beforeintegerOnly events older than this event id: pass the last id of the previous page.

Example request

curl "https://api.relaydock.io/api/v1/events?limit=20" \
  -H "Authorization: Bearer $RELAYDOCK_API_KEY"

Response

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

Field Description
idintegerEvent ID; increases over time. Pass the last one as before for the next page.
kindstringWhat happened, as <area>.<event>, e.g. endpoint.created, endpoint.provisioned, registration.down, registration.up, call.source_rejected, target.verified or billing.plan_changed. New kinds may be added.
severitystringok, info, warn or bad.
paramsobjectValues for the event's text; the keys depend on kind.
endpointobjectcan be nullThe endpoint the event is about; null for team-wide events.
endpoint.idstring (uuid)Endpoint ID.
endpoint.namestringEndpoint name (also for deleted endpoints).
created_atstring (date-time)When it happened.
json
[
  {
    "id": 90211,
    "kind": "registration.up",
    "severity": "ok",
    "params": {
      "code": 200,
      "expires_in": 300
    },
    "endpoint": {
      "id": "3f6c2a1e-8b4d-4c7a-9e21-5d0b7f9a6c13",
      "name": "Telnyx · +12025550123"
    },
    "created_at": "2026-03-14T09:26:53Z"
  }
]

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>`.

List an endpoint's events

GET/endpoints/{endpoint_id}/events

Returns the events of one endpoint, newest first. For the next page, pass the last event's id as before.

Path parameters

Field Description
endpoint_idstring (uuid)requiredThe endpoint's id (UUID), as returned by GET /endpoints.

Query parameters

Field Description
limitintegerPage size, 1–200.Default: 50.
beforeintegerOnly events older than this event id: pass the last id of the previous page.

Example request

curl "https://api.relaydock.io/api/v1/endpoints/3f6c2a1e-8b4d-4c7a-9e21-5d0b7f9a6c13/events" \
  -H "Authorization: Bearer $RELAYDOCK_API_KEY"

Response

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

Field Description
idintegerEvent ID; increases over time. Pass the last one as before for the next page.
kindstringWhat happened, as <area>.<event>, e.g. endpoint.created, endpoint.provisioned, registration.down, registration.up, call.source_rejected, target.verified or billing.plan_changed. New kinds may be added.
severitystringok, info, warn or bad.
paramsobjectValues for the event's text; the keys depend on kind.
endpointobjectcan be nullThe endpoint the event is about; null for team-wide events.
endpoint.idstring (uuid)Endpoint ID.
endpoint.namestringEndpoint name (also for deleted endpoints).
created_atstring (date-time)When it happened.
json
[
  {
    "id": 90211,
    "kind": "registration.up",
    "severity": "ok",
    "params": {
      "code": 200,
      "expires_in": 300
    },
    "endpoint": {
      "id": "3f6c2a1e-8b4d-4c7a-9e21-5d0b7f9a6c13",
      "name": "Telnyx · +12025550123"
    },
    "created_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>`.

Get registration history

GET/endpoints/{endpoint_id}/registration-history

Returns a registration endpoint's state per hour for the last hours hours (UTC hours, the last one is the current hour) and every state change in that window. A bucket is partial when the registration was both up and down in that hour.

Path parameters

Field Description
endpoint_idstring (uuid)requiredThe endpoint's id (UUID), as returned by GET /endpoints.

Query parameters

Field Description
hoursintegerWindow length in hours, 1–168 (7 days).Default: 24.

Example request

curl "https://api.relaydock.io/api/v1/endpoints/3f6c2a1e-8b4d-4c7a-9e21-5d0b7f9a6c13/registration-history?hours=24" \
  -H "Authorization: Bearer $RELAYDOCK_API_KEY"

Response

200 with a JSON object.

Field Description
bucketsarray of objectsOne entry per hour, oldest first; the last is the current hour.
buckets[].startstring (date-time)Start of the hour.
buckets[].statestringup (registered), down (failed or disabled), partial (both in this hour) or unknown (no data).
transitionsarray of objectsState changes inside the window, oldest first.
transitions[].atstring (date-time)When the state changed.
transitions[].statestringThe new state, as in registration.state of the endpoint.
transitions[].sip_codeintegercan be nullSIP status of the REGISTER answer, if any.
transitions[].reasonstringcan be nullFailure reason (e.g. auth_failed), if any.
json
{
  "buckets": [
    {
      "start": "2026-03-14T09:00:00Z",
      "state": "up"
    }
  ],
  "transitions": [
    {
      "at": "2026-03-14T09:26:53Z",
      "state": "registered",
      "sip_code": 200,
      "reason": null
    }
  ]
}

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>`.