Skip to main content
The Bonai News API authenticates every request with an API key. Keys are product-scoped: a Bonai News API key works only with the Bonai News API.

Get an API key

  1. Sign in to the Bonai console.
  2. Select the Bonai News API product workspace.
  3. Open API Keys and create a new key.
  4. Copy the key (bk_...). It is shown only once.

Authenticate requests

Send your key in the api-key header on every request:

Other languages

Public endpoints

The GET /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.
Never share your API key or commit it to source control. Use environment variables or a secret manager in production.