API Key — your calls to kurnl
Use your API key when you are calling kurnl’s API directly (subscriber management, plan queries, bulk provisioning). Send it in theX-API-Key header:
Key format
Your API key is a single production credential of the formkrnl_<hex>. There is no separate sandbox key — the partner API operates on your live account. For safe, no-impact exploration use the in-dashboard sandbox instead.
Rotating keys
Keys can be rotated from Dashboard → Settings → API Keys. Old keys stop working immediately on rotation. There is no grace period.Webhook Secret — kurnl’s calls to you (CKO-03)
The webhook secret is used for CKO-03 external checkout callbacks. When your checkout system calls kurnl’s/external-checkout/complete endpoint, kurnl looks up the secret for your service_provider_document_id and verifies the X-Webhook-Secret header before processing anything.
webhook_url. See Webhooks for signature verification.
The webhook secret is a symmetric pre-shared value — it is never hashed or encrypted at rest on kurnl’s side. Treat it like a password: at least 32 random characters, rotated if compromised.
Keeping credentials safe
- Store both the API key and webhook secret as environment variables, never in source code
- Treat the API key as a production credential — the partner API has no sandbox mode
- Restrict server access to the IP ranges of your checkout and back-office servers where possible
- If a credential is compromised, rotate it immediately from the dashboard and audit recent API activity in your logs