Authentication & Scopes
All protected Bipkit API endpoints authenticate machine clients using an organization API key (bpk_live_...).
Supported Headers
Section titled “Supported Headers”Pass your key via either header (standard Bearer auth is recommended):
Authorization: Bearer bpk_live_YOUR_API_KEYor
X-API-Key: bpk_live_YOUR_API_KEYAPI Key Scopes
Section titled “API Key Scopes”| Scope | Grants Access To |
|---|---|
evaluate:run |
POST /api/v1/evaluate, POST /api/v1/decide, POST /api/v1/feedback |
keys:manage |
GET /api/v1/api-keys, POST /api/v1/api-keys, POST /api/v1/api-keys/{key_id}/rotate, DELETE /api/v1/api-keys/{key_id} |
| Any valid org key | GET /api/v1/engines, GET /api/v1/usage/summary, GET /api/v1/usage/timeseries, tenant DPL endpoints |
| Unauthenticated (Public) | GET /api/v1/health, GET /api/v1/provenance/manifest, GET /api/v1/provenance/calibration, GET /api/v1/provenance/keys |
Zero-Downtime Key Rotation
Section titled “Zero-Downtime Key Rotation”- Call
POST /api/v1/api-keys/{key_id}/rotate(requireskeys:manage). - Store the newly returned raw secret immediately — it is shown only once.
- Roll out the new secret to your services, then revoke the superseded key if no longer needed via
DELETE /api/v1/api-keys/{key_id}.
