Overview

Authentication

Authenticate Corpus API requests with an API key and country-scoped permissions.

Send your API key in the X-API-KEY header:

curl "https://corpus-api.onera.app/catalog" \
  --header "X-API-KEY: your_api_key"

Keys can be limited to a country or capability. A valid key without the required permission returns 403 Forbidden.

PermissionAccess
us:readUnited States datasets
india:readIndia datasets
search:readDocument search
rag:searchNatural-language Ask and governed retrieval
litigation:readIndia court judgments; also requires india:read
data:exportIndia CSV, XLSX, and Parquet exports; also requires india:read

Do not put a long-lived API key in browser source code. Frontend applications should obtain a scoped credential through their authenticated server session.