Skip to content
Docs
API 1.0.0 · 22 Nov 2026

Search the docs

    Română

    Operations

    A request that changes data is accepted once and answered with an operation result you can read again.

    On this page

    Every request that changes data carries an operationId, a UUID you choose. The API answers 202 with the result of the operation. Idempotency and concurrency explains how to repeat a request safely.

    1. Send the change

      Put a new operationId in the body of the request.

    2. Read the result

      The answer holds operationId, status and aggregateRevision.

    3. Look it up if the answer is lost

      Ask for the operation by its operationId. You get the outcome each time you ask. After completed or rejected it no longer changes.

    Status of an operation

    StatusMeaning
    The request was recorded and is being applied.
    The change was applied.
    The request was understood and refused. Nothing was changed.

    aggregateRevision is the revision of the record after the operation. Send it as expectedRevision in the next change to the same record.

    Read the record

    GET /reports/v1/operations/{operationId}

    Parameters

    NameInTypeRequiredMeaning
    operationId path string Yesrequired Identifier of the resource.

    Responses

    StatusMeaningBody
    200 The requested result. OperationResult
    400 Request refused. Codes: invalid_request. Error
    401 Request refused. Codes: unauthorized. Error
    403 Request refused. Codes: forbidden. Error
    404 Request refused. Codes: record_not_found, credential_not_found. Error
    409 Request refused. Codes: revision_conflict, operation_reused. Error
    422 Request refused. Codes: query_invalid, result_invalid, source_unavailable, refresh_running, refresh_not_running, stale_refresh, run_not_completed, delivery_not_parked, row_not_found, company_forbidden, recipient_forbidden, embed_origin_forbidden, operation_invalid, filter_invalid. Error
    429 Request refused. Codes: rate_limited. Error
    503 Request refused. Codes: unavailable. Error

    Request

    curl

    curl "$RDC_BASE_URL/reports/v1/operations/41800000-0000-4000-8000-000000000001" \
      -H "Authorization: Bearer $RDC_TOKEN"

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/reports/v1/operations/41800000-0000-4000-8000-000000000001`, {
      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"]}/reports/v1/operations/41800000-0000-4000-8000-000000000001',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
    )
    result = response.json()

    PHP

    <?php
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/reports/v1/operations/41800000-0000-4000-8000-000000000001');
    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")}/reports/v1/operations/41800000-0000-4000-8000-000000000001");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 200

    JSON

    {
      "operationId": "41800000-0000-4000-8000-000000000001",
      "status": "completed",
      "aggregateRevision": 1
    }

    The full rule: Developer guide