RiskPilot customer API
string · enum · requiredstringstring · maxLength: 80object | null
string · pattern:
string · pattern: object | nullstring | null
string · pattern: string · enuminteger · min: 1 · max: 100integer · requiredstring | null
Properties for Variant 1:string · requiredstring · enumstring · maxLength: 80string · requiredstring · enum · requiredboolean · requiredstringstring · date-timestring | null · date-timestring | null · date-timestring | null
Inbox and push
Your chat channels for alerts, and which kinds this server offers
GET
/api/v1/customer/channels
Your chat channels for alerts, and which kinds this server offers › Responses
OK
ChatChannel[] · required
object · required
Add a Discord or Slack webhook (sends a first message) or start a Telegram link
POST
/api/v1/customer/channels
Discord: url on discord.com or discordapp.com (/api/webhooks/url on hooks.slack.com (/services/…). Any other host, http, credentials or a private address is 400 url_not_allowed or 400. Telegram: no url; the answer's link holds a one-time code and the t.me deep link. A kind that is off on this server is 503 channel_unavailable; at most 10 channels (409 channel_limit).
Add a Discord or Slack webhook (sends a first message) or start a Telegram link › Request Body
kindEnum values:
discord
slack
telegram
urlDiscord or Slack incoming-webhook URL.
labelAdd a Discord or Slack webhook (sends a first message) or start a Telegram link › Responses
Created.
ChatChannel · required
testA fresh Telegram link code
POST
/api/v1/customer/channels/{id}/relink
path Parameters
id^\d{1,18}$ · requiredChannel id.
A fresh Telegram link code › Responses
OK
TelegramLink · required
Verify a channel: check the Telegram link, or send a Discord/Slack test
POST
/api/v1/customer/channels/{id}/verify
path Parameters
id^\d{1,18}$ · requiredChannel id.
Verify a channel: check the Telegram link, or send a Discord/Slack test › Responses
OK
ChatChannel · required
testerrorThe inbox, newest first
GET
/api/v1/customer/notifications
An account that has not paid sees its subscription notices (system) only.
query Parameters
before^\d{1,18}$Older than this notification id (from nextBefore).
unreadOnly unread ones.
Enum values:
true
false
limitPage size.
Default: 30
The inbox, newest first › Responses
OK
Notification[] · required
unreadnextBeforeRegistered push devices and the channels on offer
GET
/api/v1/customer/push/devices
Registered push devices and the channels on offer › Responses
OK
PushDevice[] · required
PushChannels · required
Register a device for push (Web Push, FCM or APNs)
POST
/api/v1/customer/push/devices
503 push_unavailable when that provider is not configured on this server.
Register a device for push (Web Push, FCM or APNs) › Request Body
oneOf
Exactly one variant must match.
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = object · requires: endpoint, keys | |
| type = object · requires: provider, token |
endpointThe push service URL (https).
object · required
providerEnum values:
webpush
labelRegister a device for push (Web Push, FCM or APNs) › Responses
Registered.
idproviderEnum values:
webpush
fcm
apns
enabledlabelcreatedAtlastSeenAtlastSuccessAtdisabledReason