Skip to content
Docs
API 1.0.0 · 22 Nov 2026

Search the docs

    Română

    Documents

    Read a source by its identifier under the caller’s access.

    Read a source

    GET /ai/v1/documents/{documentId}

    Parameters

    NameInTypeRequiredMeaning
    documentId path string Yesrequired Source identifier from a citation.
    language query string Nooptional One of en, ro

    Responses

    StatusMeaningBody
    200 Current result. Source
    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
    404 The record does not exist for this company. Error
    429 Too many requests. Retry-After gives the seconds. Error
    503 The service cannot answer now. Error

    Request

    curl

    curl "$RDC_BASE_URL/ai/v1/documents/account" \
      -H "Authorization: Bearer $RDC_TOKEN"

    JavaScript

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

    PHP

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

    {
      "id": "account",
      "system": "CRM",
      "title": "Hanul Ozana account notes",
      "owner": "Andrei Pop",
      "changed": "2026-11-17T15:40:00Z",
      "path": "/sales/hanul-ozana",
      "scope": "sales",
      "passage": "Hanul Ozana pays by bank transfer at the end of the month after delivery."
    }