Auth & Keys
All Developer API requests useX-API-Key authentication.
Base URL
- Production:
https://api.indigenius.ai - Version prefix:
/v1
Endpoints
POST /v1/auth/keys— create an API keyGET /v1/auth/keys— list API keysGET /v1/auth/scopes— list supported scopesPATCH /v1/auth/keys/{id}/scopes— replace key scopesPOST /v1/auth/keys/{id}/rotate— rotate key secretPOST /v1/auth/keys/{id}/revoke— revoke key
Test this section quickly
Create API key (DTO-accurate):Scope model
Scopes are enforced per endpoint. Common examples:keys:read,keys:writecalls:read,calls:writeassistants:read,assistants:writewidgets:read,widgets:writeworkflows:read,workflows:writeanalytics:readbilling:readphone:read,phone:writewebhooks:readcreate_studio:read,create_studio:write
Key lifecycle best practices
- Create separate keys per environment (
dev,staging,prod). - Restrict scopes to least privilege.
- Rotate keys regularly and immediately after suspected exposure.
- Revoke unused keys.
Common errors while testing
401/404 invalid key— verifyX-API-Keyvalue and key status.403 scope denied— add required scope to key viaPATCH /v1/auth/keys/{id}/scopes.400 validation— payload fields fail DTO constraints.