Skip to content
Docs
API 1.0.0 · 23 Nov 2026

Search the docs

    Română

    Audit

    Read the trail of what happened to a document: who did what, and when.

    List the audit trail

    GET /documents/v1/audit

    Returns the lines of the audit trail, the newest first. A document's revision is the number of its lines.

    Parameters

    NameInTypeRequiredMeaning
    documentId query string (uuid) Nooptional Only the lines of this document.
    type query string Nooptional Only lines of this type. One of created, submitted, approved, revised, signature-sent, delivered, signed, declined, rejected, archived, imported
    by query string Nooptional Only the lines written by this person.
    limit query integer Nooptional Records per page. Default 100 Range 1 – 500
    cursor query string Nooptional The nextCursor of the previous page.

    Responses

    StatusMeaningBody
    200 A page of records. AuditPage
    400 The request cannot be read or breaks the contract: malformed JSON, a missing or unknown field, a wrong type. fields names each one. Error
    401 The token is missing, expired or not ours. Error
    403 The token does not give access to this company or operation. Error
    429 The request was refused and not processed: the code is rate_limited. Wait the seconds in the header Retry-After, then send it again with the same operationId. Error
    503 The service cannot answer now: the code is unavailable. Send the request again with the same operationId. Error

    Request

    curl

    curl "$RDC_BASE_URL/documents/v1/audit?limit=20" \
      -H "Authorization: Bearer $RDC_TOKEN"

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/documents/v1/audit?limit=20`, {
      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"]}/documents/v1/audit?limit=20',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
    )
    result = response.json()

    PHP

    <?php
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/documents/v1/audit?limit=20');
    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")}/documents/v1/audit?limit=20");
    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

    {
      "items": [
        {
          "id": "DOC-2026-0398-8",
          "documentId": "472fda2c-c118-43fc-80a9-5a708911c856",
          "number": "DOC-2026-0398",
          "time": "2026-11-20T10:05:00Z",
          "type": "signed",
          "by": "ana-rusu",
          "status": "approved"
        },
        {
          "id": "DOC-2026-0398-7",
          "documentId": "472fda2c-c118-43fc-80a9-5a708911c856",
          "number": "DOC-2026-0398",
          "time": "2026-11-20T10:02:00Z",
          "type": "delivered",
          "by": "mircea-balan",
          "status": "approved"
        },
        {
          "id": "DOC-2026-0398-6",
          "documentId": "472fda2c-c118-43fc-80a9-5a708911c856",
          "number": "DOC-2026-0398",
          "time": "2026-11-20T10:01:00Z",
          "type": "delivered",
          "by": "ana-rusu",
          "status": "approved"
        }
      ],
      "nextCursor": null
    }