Skip to content
Docs
API 1.0.0 · 22 Nov 2026

Search the docs

    Română

    Custom connector

    Prepare a source mapping and verify it with the test company.

    Agree the mapping when setting up access with our team. Provide a stable source ID, title, owner, path and change timestamp. Map read permissions to groups and plan how the source signals deletions or access removal.

    For personal data, limit what you index to what is necessary for the purpose of the processing.

    Start with a document shared between groups and a restricted document. Check sync and retrieve the shared document. Revoke access to it at the source, then verify that the caller loses the passage after permission sync.

    curl

    curl "$RDC_BASE_URL/ai/v1/admin/connectors" \
      -H "Authorization: Bearer $RDC_TOKEN"

    JavaScript

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

    PHP

    <?php
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/ai/v1/admin/connectors');
    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/admin/connectors");
    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": "erp",
          "system": "ERP",
          "lastSync": "2026-11-19T07:45:00Z",
          "documentsIndexed": 283,
          "errors": []
        },
        {
          "id": "crm",
          "system": "CRM",
          "lastSync": "2026-11-19T07:52:00Z",
          "documentsIndexed": 168,
          "errors": []
        },
        {
          "id": "dms",
          "system": "DMS",
          "lastSync": "2026-11-18T22:10:00Z",
          "documentsIndexed": 79,
          "errors": [
            "permission_sync_failed"
          ]
        }
      ],
      "nextCursor": null
    }

    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

    {
      "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."
    }