x-api-key header.
Authentication
Every request must include an API key:curl
401 Unauthorized response.
Creating an API key
- Go to Settings > API keys in the Kernel app
- Click Create key and optionally give it a name
- Copy the key value and signing secret — both are shown only once
Key value
The key value is a string you pass in thex-api-key header. After creation, the full key is displayed once — it cannot be retrieved later. If you lose a key, delete it and create a new one.
Webhook signing secret
Each API key comes with a webhook signing secret (prefixed withwhsec_). Use this secret to verify that webhook payloads were sent by Kernel. See Webhooks for the verification process.
The signing secret is shown once when you create an API key. If you need a new secret, delete the key and create a new one.
Deleting a key
Deleting an API key immediately revokes it. Any requests using that key will receive a401 Unauthorized response.
To delete a key, go to Settings > API keys, open the key’s menu, and select Delete key.
Security best practices
- Store API keys in environment variables, never in source code
- Use separate keys for development and production
- Rotate keys if you suspect they have been leaked
- Delete keys you no longer need

