DokuBrain

API Overview

DokuBrain REST API — base URL, versioning, request format, and conventions.

API Overview

The DokuBrain API is a RESTful, JSON-based API. All requests must be authenticated and made over HTTPS in production.

Base URL

EnvironmentBase URL
Productionhttps://api.dokubrain.com/api/v1
Local developmenthttp://localhost:8000/api/v1

Request format

  • All request bodies must be application/json unless uploading files
  • File uploads use multipart/form-data
  • All responses return JSON with a consistent envelope:
Success response
{
  "success": true,
  "data": { ... }
}
Error response
{
  "success": false,
  "error": "Human-readable error description"
}

Pagination

List endpoints support pagination:

ParameterTypeDefaultDescription
pagenumber1Page number
limitnumber20Results per page (max 100)
offsetnumber0Number of items to skip
sortstringcreatedAtField to sort by
orderstringdescSort direction (asc or desc)
Paginated response
{
  "success": true,
  "data": [ ... ],
  "pagination": {
    "total": 142,
    "page": 1,
    "limit": 20,
    "hasMore": true
  }
}

API endpoints

ResourceBase pathDescription
Authentication/authRegister, login, tokens, sessions
Ingestion/ingestionUpload and ingest documents
Documents/documentsDocument management, extraction, insights
Projects/projectsOrganize documents into projects
Corpus/corpusRAG queries, hybrid search, and AI reasoning
Workflows/workflowsAutomated processing pipelines
Templates/templatesExtraction template management
Reports/reportsReport creation and execution
API Keys/api-keysAPI key management
Governance/governancePolicies, compliance, and audit logs

Versioning

The API is versioned via the URL path (/api/v1/). Breaking changes are introduced in new versions. Non-breaking changes (new fields, new endpoints) are added to the current version.

Rate limits

All authenticated endpoints are rate-limited. Specific limits vary by endpoint and plan. Rate limit headers are included in every response:

HeaderDescription
X-RateLimit-LimitMaximum requests allowed in the window
X-RateLimit-RemainingRemaining requests in the current window
X-RateLimit-ResetUnix timestamp when the window resets

On this page