x-api-key header.
API Keys
Kyren Pay uses API keys to authenticate requests. You can manage your API keys from the Merchant Dashboard. The current backend implementation accepts live API keys:Making Authenticated Requests
Include your API key in thex-api-key header of every request:
Environments
The current public production API accepts live API keys with the
kyren_live_ prefix.
Kyren does not currently expose self-service kyren_test_ keys in the merchant dashboard.
Use a staging base URL only when Kyren has issued matching staging credentials to you.Regenerating API Keys
If your API key is compromised, you can regenerate it from the Dashboard:- Go to Dashboard > Developer
- Click Regenerate next to the key you want to replace
- Confirm the action
Error Responses
If authentication fails, the API returns a401 Unauthorized response:
- Missing
x-api-keyheader - Invalid or expired API key
- Using an API key prefix not accepted by the current environment