Enjab Developers
Enjab RAG

Authentication

API keys, read vs write scopes, and where to mint them.

Every request to Enjab RAG carries an API key. Keys look like enjabrag_… and are sent in the Authorization header:

Authorization: Bearer enjabrag_YOUR_KEY

The x-api-key: enjabrag_YOUR_KEY header is accepted as an alternative.

Minting keys

Staff sign in at rag.enjab.ae/dash/keys (Sign in with Enjab) and create a key per agent or integration. The raw key is shown once, only its SHA-256 hash is stored, so copy it then. Lost a key? Revoke it and mint a new one.

Give each agent its own named key. That way usage is traceable per agent and you can revoke one without disrupting the others.

Scopes

ScopeCan doUse for
Readsearch, fetch, the MCP serverAgents that consume knowledge (most agents).
Read + writethe above plus /api/ingestPipelines and tools that add knowledge.

A read key on /api/ingest returns 401. Default to read-only keys for agents and reserve write keys for ingestion jobs.

Endpoints by scope

EndpointMinimum scope
POST /api/mcpread
POST /api/searchread
POST /api/ingestwrite

Rotation

Keys do not expire on their own. Rotate by minting a replacement, updating the agent's config, then revoking the old one. Because only the hash is stored, a key that leaks cannot be recovered, revoke and replace it.

On this page