The Docent SDK authenticates via API keys. You can provide your key in several ways, listed here in order of precedence.Documentation Index
Fetch the complete documentation index at: https://docs.transluce.org/llms.txt
Use this file to discover all available pages before exploring further.
API Key
1. Direct Parameter
2. Environment Variable
3. Config File
Create adocent.env file in your project directory:
docent.env starting from the current working directory and traversing up
the directory tree. You can also specify an explicit path:
Configuration Priority
The SDK resolves each setting using a priority order. The exact order varies slightly by setting:| Setting | Priority (highest to lowest) |
|---|---|
api_key | Direct parameter → config file → DOCENT_API_KEY env var |
api_url / frontend_url | Direct parameter → DOCENT_API_URL / DOCENT_FRONTEND_URL env var → config file |
domain | Direct parameter → DOCENT_DOMAIN env var → config file → "docent.transluce.org" |
collection_id | Direct parameter → config file |
collection_id is not read from environment variables — set it via a direct parameter
or in your docent.env config file.Environment Variables
| Variable | Description | Default |
|---|---|---|
DOCENT_API_KEY | API key for authentication | Required |
DOCENT_API_URL | Direct API server URL | Derived from domain |
DOCENT_FRONTEND_URL | Direct frontend URL | Derived from domain |
DOCENT_DOMAIN | Docent instance domain | docent.transluce.org |

