Docs
llms.txt for AI agents Download OpenAPI spec

Start Here / Authentication

Authentication

Every partner API call uses three headers. Wrong credentials return 401 with a generic message.

HeaderExampleNotes
X-Crebit-Key-Idcbk_sbx_…Public key id
X-Crebit-Key-Secretcbs_…Secret, store securely
X-Crebit-EnvironmentsandboxMust 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

HTTP code sample
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"