Notifications
Receive alert events and link maintenance work.
Register an HTTPS endpoint for alert event types. Verify the signature against the raw body and check the delivery timestamp as described in Verify signatures. Store the event durably, then return a 2xx response and process it asynchronously. Deduplicate by event id.
curl
curl -X POST "$RDC_BASE_URL/iot/v1/subscriptions" \
-H "Authorization: Bearer $RDC_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"operationId": "a1000000-0000-4000-8000-000000000005",
"expectedRevision": 0,
"endpoint": "https://receiver.example/events",
"types": [
"com.rdcopilot.iot.alert.opened.v1"
]
}' JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/iot/v1/subscriptions`, {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.RDC_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"operationId": "a1000000-0000-4000-8000-000000000005",
"expectedRevision": 0,
"endpoint": "https://receiver.example/events",
"types": [
"com.rdcopilot.iot.alert.opened.v1"
]
}),
});
const result = await response.json(); Python
import os
import requests
response = requests.request(
'POST',
f'{os.environ["RDC_BASE_URL"]}/iot/v1/subscriptions',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
json={
'operationId': 'a1000000-0000-4000-8000-000000000005',
'expectedRevision': 0,
'endpoint': 'https://receiver.example/events',
'types': [
'com.rdcopilot.iot.alert.opened.v1',
],
},
)
result = response.json() PHP
<?php
$body = <<<'JSON'
{
"operationId": "a1000000-0000-4000-8000-000000000005",
"expectedRevision": 0,
"endpoint": "https://receiver.example/events",
"types": [
"com.rdcopilot.iot.alert.opened.v1"
]
}
JSON;
$curl = curl_init(getenv('RDC_BASE_URL') . '/iot/v1/subscriptions');
curl_setopt_array($curl, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('RDC_TOKEN'),
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => $body,
]);
$result = json_decode(curl_exec($curl), true);
curl_close($curl); C#
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/iot/v1/subscriptions");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
"operationId": "a1000000-0000-4000-8000-000000000005",
"expectedRevision": 0,
"endpoint": "https://receiver.example/events",
"types": [
"com.rdcopilot.iot.alert.opened.v1"
]
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); {
"operationId": "a1000000-0000-4000-8000-000000000005",
"status": "accepted",
"aggregateRevision": 1,
"secret": "whsec_dGVzdC1pb3Qtc2VjcmV0"
} Assign a member before requesting an ERP work order. The alert links workOrderId only after ERP confirms the record. Poll the operation and read the alert again; a request accepted for processing is not yet a created work order.
curl
curl -X POST "$RDC_BASE_URL/iot/v1/alerts/alert-1/work-order" \
-H "Authorization: Bearer $RDC_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"operationId": "a1000000-0000-4000-8000-000000000012",
"expectedRevision": 3
}' JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/iot/v1/alerts/alert-1/work-order`, {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.RDC_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"operationId": "a1000000-0000-4000-8000-000000000012",
"expectedRevision": 3
}),
});
const result = await response.json(); Python
import os
import requests
response = requests.request(
'POST',
f'{os.environ["RDC_BASE_URL"]}/iot/v1/alerts/alert-1/work-order',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
json={
'operationId': 'a1000000-0000-4000-8000-000000000012',
'expectedRevision': 3,
},
)
result = response.json() PHP
<?php
$body = <<<'JSON'
{
"operationId": "a1000000-0000-4000-8000-000000000012",
"expectedRevision": 3
}
JSON;
$curl = curl_init(getenv('RDC_BASE_URL') . '/iot/v1/alerts/alert-1/work-order');
curl_setopt_array($curl, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('RDC_TOKEN'),
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => $body,
]);
$result = json_decode(curl_exec($curl), true);
curl_close($curl); C#
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/iot/v1/alerts/alert-1/work-order");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
"operationId": "a1000000-0000-4000-8000-000000000012",
"expectedRevision": 3
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); {
"operationId": "a1000000-0000-4000-8000-000000000012",
"status": "accepted",
"aggregateRevision": 4
} Use the alert identifier and revision when updating your mobile task list. Event deliveries can repeat or arrive out of order; retrieve the latest alert when a revision gap appears. Repair a failing receiver before replaying parked deliveries.
curl
curl "$RDC_BASE_URL/iot/v1/alerts/alert-1" \
-H "Authorization: Bearer $RDC_TOKEN" JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/iot/v1/alerts/alert-1`, {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.RDC_TOKEN}`,
},
});
const result = await response.json(); Python
import os
import requests
response = requests.request(
'GET',
f'{os.environ["RDC_BASE_URL"]}/iot/v1/alerts/alert-1',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
)
result = response.json() PHP
<?php
$curl = curl_init(getenv('RDC_BASE_URL') . '/iot/v1/alerts/alert-1');
curl_setopt_array($curl, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('RDC_TOKEN'),
],
]);
$result = json_decode(curl_exec($curl), true);
curl_close($curl); C#
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/iot/v1/alerts/alert-1");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); {
"id": "alert-1",
"ruleId": "rule-1",
"severity": "critical",
"assetId": "cold-room-2",
"opened": "2026-11-20T09:03:10Z",
"state": "open",
"assignee": null,
"workOrderId": null,
"revision": 1
}