FAQs About the API and Webhooks

Edited

How do I create an API key?

  1. Open Settings > API Keys.

  2. Click Generate New Key and give it a clear label.

  3. Click Generate Key.

  4. Copy the Client ID and Client Secret into secure storage immediately. The secret is displayed only once.

I lost my API secret. Can it be recovered?

No. Revoke the affected key and generate a replacement. Update every service that used the old key.

Why should I label my API keys?

Labels help you identify which application or service uses each key. This makes it easier to rotate or revoke the correct credentials.

How should I store and rotate keys?

Keep credentials on your server in environment variables or a secrets manager. Do not put secrets in frontend code, mobile applications or source repositories.

Separate production and testing configurations, rotate credentials regularly, and revoke unused keys.

How do I avoid duplicate transactions when retrying?

Send a unique Idempotency-Key for each business action. Reusing that key within 24 hours returns the original result rather than repeating the action. Also assign a unique reference to each transfer.

If a request times out, check the original transaction before retrying. Reuse its key for a retry of the same action.

How do I set up a webhook?

  1. Open Settings > Webhooks and click Create Webhook.

  2. Enter a name and your endpoint URL.

  3. Configure a webhook secret for signature verification.

  4. Set the retry count, up to a maximum of 10.

  5. Click Create Webhook.

You can configure multiple webhooks for different services and manage them from the webhooks table.

Can I receive the same webhook twice?

Yes. Events can arrive more than once and out of order. Deduplicate using event_id, available in the payload and the x-bitnob-event-id header. Check the current transaction status if incoming events conflict with your records.

Which webhook events are available?

Examples include:

Product

Events

Stablecoins and Bitcoin

deposit.success, transfer.success, transfer.failed

Payouts

payouts.initialized, payouts.processing, payouts.withdrawal.success, payouts.withdrawal.expired

NGN virtual accounts

virtual_account.deposit.success

Virtual cards

virtualcard.created.completed, virtualcard.topup.completed, virtualcard.withdrawal.completed, plus card transaction events

Consult the API reference for the complete event list and payloads.

Is payouts.processing a final status?

No. It means the payout is in progress through the settlement route. Wait for payouts.withdrawal.success before treating the recipient as paid.

What other developer tools are available?

Available developer resources include the API reference, Swagger explorer, Postman collection, interactive playground, changelog and developer Discord. Use the developer resources linked from your dashboard for current access.

RELATED ARTICLE

Was this article helpful?

Sorry about that! Care to tell us more?

Thanks for the feedback!

There was an issue submitting your feedback
Please check your connection and try again.