Authenticate requests

Send your secret key in the Authorization: Bearer header. Existing sk_test_oni_… and sk_live_oni_… keys remain compatible.

Headers
Authorization: Bearer YOUR_SECRET_KEY
Content-Type: application/json

Keep keys server-side

Use an environment variable or your secrets manager. These examples read CIRCUSPAY_SECRET_KEY; no key is entered or transmitted through this documentation.

Respect permissions

Sensitive operations, including payouts and key management, may require a portal session. A 403 response with session_required means an API key is insufficient.

Compatibility