Docs Guides
Notifications
RelayDock emails your team when something needs attention, and once more when it is fixed. Everything is also in the event feed, in the panel and over the API.
Who receives them
Add up to 10 addresses under Settings → Notifications. Leave the list empty to use the team owners' addresses.
- Alerts about registrations, LiveKit and the platform go to the notification addresses, or to the owners when there are none.
- Billing and limit emails go to the owners and the notification addresses.
Each problem is emailed once while it lasts, not repeatedly. Times in emails are UTC.
Emails
| Subject | When | To |
|---|---|---|
| Registration down: <endpoint> | A registration has been failing for 5 minutes. The email has the SIP code and the diagnosis. | Notification addresses or owners |
| Registration stopped: <endpoint> | Right away when RelayDock stops trying after 3 authentication failures in a row. | Notification addresses or owners |
| Registration restored: <endpoint> | The endpoint registered again after one of the two emails above. | Notification addresses or owners |
| Endpoint can't be set up in LiveKit: <endpoint> | Setting up the endpoint in LiveKit has failed for 2 minutes, for a reason other than the API key or an unreachable LiveKit API. | Notification addresses or owners |
| Endpoint set up in LiveKit: <endpoint> | The setup succeeded after that. | Notification addresses or owners |
| LiveKit connection failed: <team> | LiveKit rejects the API key of a project that was verified before. | Notification addresses or owners |
| LiveKit connection restored: <team> | The project is verified again. | Notification addresses or owners |
| RelayDock SIP edge is not reporting | RelayDock's edge has not reported for 15 minutes. Sent to every active team. | Notification addresses or owners |
| RelayDock SIP edge is back | The edge reports again. | Notification addresses or owners |
| Daily outbound limit reached: <team> | The first call rejected with daily-cap in a UTC day. | Owners and notification addresses |
| Your RelayDock trial is ending | 3 days before the trial ends. | Owners and notification addresses |
| Action needed: choose a RelayDock plan | The trial or subscription ended. Calls keep working for 7 days. | Owners and notification addresses |
| RelayDock calls are paused | After those 7 days, new calls are rejected until you choose a plan. Registrations stay up. | Owners and notification addresses |
| Your RelayDock payment needs confirmation | Your bank asks for an extra confirmation (3D Secure). | Owners and notification addresses |
| RelayDock paused new calls | A payment dispute is under review. | Owners and notification addresses |
The event feed
The panel shows the team's events on the Overview and each endpoint's in its Events tab. Over the API, read the newest events first:
curl "https://api.relaydock.io/api/v1/events?limit=20" \
-H "Authorization: Bearer $RELAYDOCK_API_KEY"import os
import requests
response = requests.get(
"https://api.relaydock.io/api/v1/events",
headers={"Authorization": f"Bearer {os.environ['RELAYDOCK_API_KEY']}"},
params={"limit": 20},
timeout=30,
)
response.raise_for_status()
print(response.json())const response = await fetch('https://api.relaydock.io/api/v1/events?limit=20', {
headers: {
'Authorization': `Bearer ${process.env.RELAYDOCK_API_KEY}`,
},
})
if (!response.ok)
throw new Error(`${response.status} ${await response.text()}`)
console.log(await response.json())For the next page, pass the id of the last event you received as before:
curl "https://api.relaydock.io/api/v1/events?limit=20&before=90211" \
-H "Authorization: Bearer $RELAYDOCK_API_KEY"import os
import requests
response = requests.get(
"https://api.relaydock.io/api/v1/events",
headers={"Authorization": f"Bearer {os.environ['RELAYDOCK_API_KEY']}"},
params={"limit": 20, "before": 90211},
timeout=30,
)
response.raise_for_status()
print(response.json())const response = await fetch('https://api.relaydock.io/api/v1/events?limit=20&before=90211', {
headers: {
'Authorization': `Bearer ${process.env.RELAYDOCK_API_KEY}`,
},
})
if (!response.ok)
throw new Error(`${response.status} ${await response.text()}`)
console.log(await response.json()) Each event has a kind, a severity (ok, info, warn or bad), params with the details and the endpoint it belongs to. Kinds you will see most:
| Kind | In the panel |
|---|---|
registration.up | <endpoint> registered |
registration.down | <endpoint> registration dropped |
registration.disabled | <endpoint> registration stopped |
call.source_rejected | Inbound call rejected at <endpoint> |
call.relay_auto | Call moved to Relay |
call.transferred | Call transferred |
endpoint.created | <name> added |
endpoint.updated | <endpoint> updated |
endpoint.deleted | <name> deleted |
endpoint.provisioned | <endpoint> set up in LiveKit |
livekit.recreated | LiveKit objects restored for <endpoint> |
livekit.provision_failed | Couldn't set up <endpoint> in LiveKit |
target.verified | LiveKit project verified |
target.failed | LiveKit verification failed |
fraud.daily_cap | Daily outbound limit reached |
Billing events start with billing.. RelayDock has no webhooks yet: to react to events in your own systems, read the feed periodically.