Aurabase Logo
aurabasedocs
Aurabase Logo
aurabasedocs
API/AI Gateway/Ephemeral AI Sessions

Ephemeral AI Sessions

POST/v1/ai/{project_id}/session

Eliminates API key exposure on mobile and SPA frontends by issuing bounded capability tokens.

#
Minting

Mint Headers & Body

HeaderRequiredValue
apikeyyesService role key or authenticated user JWT
Content-Typeyesapplication/json

The minting endpoint checks and reserves token budgets against the project's real monthly quota and caches the resolved provider pipeline for 300 seconds.

#
Invocation

Strict Capability Authentication

Attention

Endpoints /session/chat, /session/chat/stream, and /session/embed strictly mandate Authorization: Bearer <ticket>. Supplying standard apikey headers is rejected to prevent confusion between permanent keys and ephemeral session capabilities.

v1.0 · revised Oct 31, 2026