Skip to content
Docs
API 1.0.0 · 22 Nov 2026

Search the docs

    Română

    Event catalogue

    Lifecycle events identify a run, its revision and its originating operation.

    On this page

    Event types

    TypeMeaning
    com.rdcopilot.integrations.run.started.v1A run started with its pinned flow version.
    com.rdcopilot.integrations.run.completed.v1The run reached its end step.
    com.rdcopilot.integrations.run.failed.v1A step failed or an approval was rejected.
    com.rdcopilot.integrations.run.timed_out.v1An active step reached its time limit.
    com.rdcopilot.integrations.run.cancelled.v1The run was cancelled; completed writes remain.
    com.rdcopilot.integrations.step.approval_requested.v1An approval step is waiting for an authorized decision.

    Follow the record

    Match the run by aggregateId and relate it to the incoming order through correlationId. The event envelope carries aggregateRevision, causationId and the actor, so the receiver can associate the event with the change that caused it.

    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
    }

    Handle repeated and stale deliveries

    Persist the event before acknowledging it. Keep its id for duplicate detection and do not repeat side effects for an event already handled. Compare aggregateRevision when deliveries arrive out of order; read the current run rather than rolling state backwards.

    Register the receiver through Subscriptions, then recover parked deliveries through Replay.