Events
Read delivery records, subscribe to changes and replay parked events.
On this page
List events
GET /integrations/v1/events
Parameters
| Name | In | Type | Required | Meaning |
|---|---|---|---|---|
limit | query | integer | Nooptional | Page size. Default 100 Range 1 – 500 |
cursor | query | string | Nooptional | Opaque cursor from the previous page. |
Responses
| Status | Meaning | Body |
|---|---|---|
200 | Current record. | EventPage |
400 | Request refused: invalid_request. | Error |
401 | Request refused: unauthorized. | Error |
403 | Request refused: forbidden. | Error |
404 | Request refused: resource_not_found. | Error |
409 | Request refused: revision_conflict. | Error |
422 | Request refused: invalid-settings. | Error |
429 | Request refused: rate_limited. | Error |
503 | Request refused: unavailable. | Error |
Request
curl
curl "$RDC_BASE_URL/integrations/v1/events?limit=100" \
-H "Authorization: Bearer $RDC_TOKEN" JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/integrations/v1/events?limit=100`, {
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"]}/integrations/v1/events?limit=100',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
)
result = response.json() PHP
<?php
$curl = curl_init(getenv('RDC_BASE_URL') . '/integrations/v1/events?limit=100');
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")}/integrations/v1/events?limit=100");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); Response 200
{
"items": [
{
"id": "621d8426-2567-4e3c-b237-39c58f04d170",
"type": "com.rdcopilot.integrations.run.completed.v1",
"state": "parked",
"attempts": 6,
"revision": 1
}
],
"nextCursor": null
} Read event
GET /integrations/v1/events/{id}
Parameters
| Name | In | Type | Required | Meaning |
|---|---|---|---|---|
id | path | string | Yesrequired | Identifier: id. |
Responses
| Status | Meaning | Body |
|---|---|---|
200 | Current record. | Event |
400 | Request refused: invalid_request. | Error |
401 | Request refused: unauthorized. | Error |
403 | Request refused: forbidden. | Error |
404 | Request refused: resource_not_found. | Error |
409 | Request refused: revision_conflict. | Error |
422 | Request refused: invalid-settings. | Error |
429 | Request refused: rate_limited. | Error |
503 | Request refused: unavailable. | Error |
Request
curl
curl "$RDC_BASE_URL/integrations/v1/events/621d8426-2567-4e3c-b237-39c58f04d170" \
-H "Authorization: Bearer $RDC_TOKEN" JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/integrations/v1/events/621d8426-2567-4e3c-b237-39c58f04d170`, {
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"]}/integrations/v1/events/621d8426-2567-4e3c-b237-39c58f04d170',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
)
result = response.json() PHP
<?php
$curl = curl_init(getenv('RDC_BASE_URL') . '/integrations/v1/events/621d8426-2567-4e3c-b237-39c58f04d170');
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")}/integrations/v1/events/621d8426-2567-4e3c-b237-39c58f04d170");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); Response 200
{
"id": "621d8426-2567-4e3c-b237-39c58f04d170",
"type": "com.rdcopilot.integrations.run.completed.v1",
"state": "parked",
"attempts": 6,
"revision": 1
} Register a subscription
POST /integrations/v1/subscriptions
Persist the command and return its operation receipt. Read the operation outcome before treating it as complete. Reusing an operationId with a different body returns operation_reused.
Request body
| Field | Type | Required | Meaning |
|---|---|---|---|
operationId | string (uuid) | Yesrequired | UUID chosen by the caller; reuse it only with the same request. |
expectedRevision | integer | Yesrequired | Revision read before the change; zero for a new resource. |
endpoint | string | Yesrequired | HTTPS destination. |
eventTypes | string[] | Yesrequired | Event types to deliver. |
Responses
| Status | Meaning | Body |
|---|---|---|
202 | Subscription changed; the first response includes its secret. | SubscriptionOperationResult |
400 | Request refused: invalid_request. | Error |
401 | Request refused: unauthorized. | Error |
403 | Request refused: forbidden. | Error |
404 | Request refused: resource_not_found. | Error |
409 | Request refused: revision_conflict. | Error |
422 | Request refused: invalid-settings. | Error |
429 | Request refused: rate_limited. | Error |
503 | Request refused: unavailable. | Error |
Request
curl
curl -X POST "$RDC_BASE_URL/integrations/v1/subscriptions" \
-H "Authorization: Bearer $RDC_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"operationId": "33a22ec0-f0af-4498-a388-123456789abc",
"expectedRevision": 0,
"endpoint": "https://receiver.example/events",
"eventTypes": [
"com.rdcopilot.integrations.run.completed.v1"
]
}' JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/integrations/v1/subscriptions`, {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.RDC_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"operationId": "33a22ec0-f0af-4498-a388-123456789abc",
"expectedRevision": 0,
"endpoint": "https://receiver.example/events",
"eventTypes": [
"com.rdcopilot.integrations.run.completed.v1"
]
}),
});
const result = await response.json(); Python
import os
import requests
response = requests.request(
'POST',
f'{os.environ["RDC_BASE_URL"]}/integrations/v1/subscriptions',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
json={
'operationId': '33a22ec0-f0af-4498-a388-123456789abc',
'expectedRevision': 0,
'endpoint': 'https://receiver.example/events',
'eventTypes': [
'com.rdcopilot.integrations.run.completed.v1',
],
},
)
result = response.json() PHP
<?php
$body = <<<'JSON'
{
"operationId": "33a22ec0-f0af-4498-a388-123456789abc",
"expectedRevision": 0,
"endpoint": "https://receiver.example/events",
"eventTypes": [
"com.rdcopilot.integrations.run.completed.v1"
]
}
JSON;
$curl = curl_init(getenv('RDC_BASE_URL') . '/integrations/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")}/integrations/v1/subscriptions");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
"operationId": "33a22ec0-f0af-4498-a388-123456789abc",
"expectedRevision": 0,
"endpoint": "https://receiver.example/events",
"eventTypes": [
"com.rdcopilot.integrations.run.completed.v1"
]
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); Response 202
{
"operationId": "33a22ec0-f0af-4498-a388-123456789abc",
"status": "completed",
"aggregateRevision": 1,
"aggregateId": "subscription-orders",
"secret": "whsec_b3JkZXItZGVsaXZlcnktc2lnbmluZy1rZXk="
} Rotate the subscription secret
POST /integrations/v1/subscriptions/{subscriptionId}/secret
Persist the command and return its operation receipt. Read the operation outcome before treating it as complete. Reusing an operationId with a different body returns operation_reused.
Parameters
| Name | In | Type | Required | Meaning |
|---|---|---|---|---|
subscriptionId | path | string | Yesrequired | Identifier: subscriptionId. |
Request body
| Field | Type | Required | Meaning |
|---|---|---|---|
operationId | string (uuid) | Yesrequired | UUID chosen by the caller; reuse it only with the same request. |
expectedRevision | integer | Yesrequired | Revision read before the change; zero for a new resource. |
Responses
| Status | Meaning | Body |
|---|---|---|
202 | Subscription changed; the first response includes its secret. | SubscriptionOperationResult |
400 | Request refused: invalid_request. | Error |
401 | Request refused: unauthorized. | Error |
403 | Request refused: forbidden. | Error |
404 | Request refused: resource_not_found. | Error |
409 | Request refused: revision_conflict. | Error |
422 | Request refused: invalid-settings. | Error |
429 | Request refused: rate_limited. | Error |
503 | Request refused: unavailable. | Error |
Request
curl
curl -X POST "$RDC_BASE_URL/integrations/v1/subscriptions/subscription-orders/secret" \
-H "Authorization: Bearer $RDC_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"operationId": "33a22ec0-f0af-4498-a388-123456789abc",
"expectedRevision": 1
}' JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/integrations/v1/subscriptions/subscription-orders/secret`, {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.RDC_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"operationId": "33a22ec0-f0af-4498-a388-123456789abc",
"expectedRevision": 1
}),
});
const result = await response.json(); Python
import os
import requests
response = requests.request(
'POST',
f'{os.environ["RDC_BASE_URL"]}/integrations/v1/subscriptions/subscription-orders/secret',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
json={
'operationId': '33a22ec0-f0af-4498-a388-123456789abc',
'expectedRevision': 1,
},
)
result = response.json() PHP
<?php
$body = <<<'JSON'
{
"operationId": "33a22ec0-f0af-4498-a388-123456789abc",
"expectedRevision": 1
}
JSON;
$curl = curl_init(getenv('RDC_BASE_URL') . '/integrations/v1/subscriptions/subscription-orders/secret');
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")}/integrations/v1/subscriptions/subscription-orders/secret");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
"operationId": "33a22ec0-f0af-4498-a388-123456789abc",
"expectedRevision": 1
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); Response 202
{
"operationId": "33a22ec0-f0af-4498-a388-123456789abc",
"status": "completed",
"aggregateRevision": 1,
"aggregateId": "subscription-orders",
"secret": "whsec_b3JkZXItZGVsaXZlcnktc2lnbmluZy1rZXk="
} Replay a parked event
POST /integrations/v1/events/{id}/replay
Persist the command and return its operation receipt. Read the operation outcome before treating it as complete. Reusing an operationId with a different body returns operation_reused.
Parameters
| Name | In | Type | Required | Meaning |
|---|---|---|---|---|
id | path | string | Yesrequired | Identifier: id. |
Request body
| Field | Type | Required | Meaning |
|---|---|---|---|
operationId | string (uuid) | Yesrequired | UUID chosen by the caller; reuse it only with the same request. |
expectedRevision | integer | Yesrequired | Revision read before the change; zero for a new resource. |
Responses
| Status | Meaning | Body |
|---|---|---|
202 | Operation accepted. | OperationResult |
400 | Request refused: invalid_request. | Error |
401 | Request refused: unauthorized. | Error |
403 | Request refused: forbidden. | Error |
404 | Request refused: resource_not_found. | Error |
409 | Request refused: revision_conflict. | Error |
422 | Request refused: invalid-settings. | Error |
429 | Request refused: rate_limited. | Error |
503 | Request refused: unavailable. | Error |
Request
curl
curl -X POST "$RDC_BASE_URL/integrations/v1/events/621d8426-2567-4e3c-b237-39c58f04d170/replay" \
-H "Authorization: Bearer $RDC_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"operationId": "33a22ec0-f0af-4498-a388-123456789abc",
"expectedRevision": 1
}' JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/integrations/v1/events/621d8426-2567-4e3c-b237-39c58f04d170/replay`, {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.RDC_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"operationId": "33a22ec0-f0af-4498-a388-123456789abc",
"expectedRevision": 1
}),
});
const result = await response.json(); Python
import os
import requests
response = requests.request(
'POST',
f'{os.environ["RDC_BASE_URL"]}/integrations/v1/events/621d8426-2567-4e3c-b237-39c58f04d170/replay',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
json={
'operationId': '33a22ec0-f0af-4498-a388-123456789abc',
'expectedRevision': 1,
},
)
result = response.json() PHP
<?php
$body = <<<'JSON'
{
"operationId": "33a22ec0-f0af-4498-a388-123456789abc",
"expectedRevision": 1
}
JSON;
$curl = curl_init(getenv('RDC_BASE_URL') . '/integrations/v1/events/621d8426-2567-4e3c-b237-39c58f04d170/replay');
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")}/integrations/v1/events/621d8426-2567-4e3c-b237-39c58f04d170/replay");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
"operationId": "33a22ec0-f0af-4498-a388-123456789abc",
"expectedRevision": 1
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); Response 202
{
"operationId": "33a22ec0-f0af-4498-a388-123456789abc",
"status": "accepted",
"aggregateRevision": 1,
"aggregateId": "621d8426-2567-4e3c-b237-39c58f04d170"
}