Authentication
All API requests require a Bearer token in the Authorization header.
Bearer Token
http
Authorization: Bearer genju_live_xxxxxxxxxxxxxxxxxxxx
Key format: genju_live_[32 random alphanumeric chars]
Get your key: app.genju.ai → Settings → API & Webhooks
Security Rules
- Never include your API key in client-side code
- Never commit it to version control
- Rotate keys immediately if compromised
- Each key is scoped to one Genju account (tenant)
Test Connection
Call GET /api/v1/me to verify your key. Returns your account details if valid, or 401 if invalid.
bash
curl https://app.genju.ai/api/v1/me \
-H 'Authorization: Bearer YOUR_API_KEY'