Header types
1. Admin bootstrap header
Useadmin-key only for creating organizations and issuing API keys.
- Header:
admin-key: <ADMIN_KEY> - Endpoint:
POST /v1/createOrganization
2. Business API key header
Usex-api-key for all business feature endpoints under /v1.
- Header:
x-api-key: <issued_api_key> - Endpoints: sources, flashcards, mindmaps, quizzes
Bootstrap flow
- Call
POST /v1/createOrganizationwithadmin-key. - Save the returned API key securely.
- Use that API key in
x-api-keyfor all subsequent/v1requests.
Example
Security notes
- Never expose
admin-keyorx-api-keyin frontend bundles. - Store keys in a secure secret manager.
- Rotate keys if leakage is suspected.