Get an API key
- Sign in to the Bonai console.
- Select the Bonai News API product workspace.
- Open API Keys and create a new key.
- Copy the key (
bk_...). It is shown only once.
Authenticate requests
Send your key as a bearer token on every request. This is the recommended method:x-api-key or api-key header:
If you send more than one, the API uses
Authorization, then x-api-key, then api-key.
Other languages
Public endpoints
TheGET /ping endpoint is public and does not require an API key:
Managing keys
- Revoke: revoke a key from the API Keys page if it’s compromised or no longer needed. Revocation is immediate.
- Rotate: create a new key, update your applications, then revoke the old one.