Start Here / Authentication
Authentication
Every partner API call uses three headers. Wrong credentials return 401 with a generic message.
| Header | Example | Notes |
|---|---|---|
| X-Crebit-Key-Id | cbk_sbx_… | Public key id |
| X-Crebit-Key-Secret | cbs_… | Secret, store securely |
| X-Crebit-Environment | sandbox | Must match key row |
Getting Keys
Crebit provisions sandbox and production keys during partner onboarding. You do not call an API to mint keys, contact your Crebit integration lead.
Verify with GET /me
curl -sS -X GET "https://lock-apis-sandbox.crebitpay.com/api/v1/partners/me" \
-H "X-Crebit-Key-Id: YOUR_KEY_ID" \
-H "X-Crebit-Key-Secret: YOUR_KEY_SECRET" \
-H "X-Crebit-Environment: sandbox"