Authorization header of every request:
API keys
API keys follow the formatsk_ntl_{environment}_{secret}:
| Prefix | Environment | Base URL |
|---|---|---|
sk_ntl_prod_ | Production | https://api.natural.co |
sk_ntl_dev_ | Development | https://sandbox.api.natural.co |
Creating API keys
Create API keys from the Natural Dashboard after completing verification. The key secret is shown once — store it immediately. Each key can be scoped to a subset of permissions:Security
- Store API keys in a dedicated secret management system. Never commit them to source control.
- Rotate keys periodically. You can have multiple active keys to enable zero-downtime rotation.
- Revoke compromised keys immediately via the dashboard or
PUT /api-keys/{key_id}/revoke. - All requests require HTTPS.
Related
- API Keys endpoints — Create, list, and revoke keys
- Error Handling — Authentication error codes