Skip to content
Docs
API 1.0.0 · 22 Nov 2026

Search the docs

    Română

    Single server

    Install the gateway, indexing workers and model runtime on one host.

    On this page

    Prepare the host

    Use the installation package and the configuration agreed for your installation. Keep application data on persistent storage and secrets outside application files. Only the gateway is reachable by users; model and index services remain on the internal network.

    1. Install the supplied release and record its version before starting services.
    2. Configure the account identity endpoint, host certificate, data paths and model package.
    3. Start storage and indexing before enabling the gateway for users.

    Verify the installation

    Read workspace health and model state through the API. Index a readable file in the test space, ask a question, then test a user without access. A successful health request alone does not establish that permissions or indexing work.

    Recover a restart

    After a host restart, confirm persistent files and permissions are present, the queue resumes and the configured model is loaded. Resolve failed indexing before repeating a question about affected files.

    curl

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

    JavaScript

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

    PHP

    <?php
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/private-ai/v1/admin/health');
    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")}/private-ai/v1/admin/health");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 200

    {
      "files": 3,
      "readyDocuments": 2,
      "queue": 0,
      "failedDocuments": 1,
      "notReadableFiles": 1,
      "loadedModels": 1,
      "memoryMiB": 6144,
      "capacityMiB": 12288
    }