logologo

DOCS

Get an API Key


To interact with the Bitnob API, you must authenticate your requests using an API key. Follow these steps to get started:


Step 1: Generate Your API Key


  1. Log in to the Bitnob Dashboard.
  2. Go to the Settings section, then choose Developers, and click on API Keys & Webhooks.
  3. Click Generate New Key to create your unique API key.



Step 2: Authenticate Your Requests


Use your API key in the Authorization header of every request sent to the Bitnob API.


Example Header
 Authorization: Bearer YOUR-API-KEY 



Best Practices for API Key Security


Protecting your API keys is essential to prevent unauthorized access to your account. Follow these steps to keep them safe:


1
Don’t Hardcode API Keys

Never store API keys directly in your code or store API credentials in your codebase or database. Use environment variables or secure storage instead.

2
Use the Right Key for the Right Environment

Use test keys to simulate transactions without affecting real data or money during development. Switch to live keys only when your app is fully tested and ready for real transactions.


Did you find this page useful?