How to Set a Default API Key and Callback URL in Niobi
Learn how to set a default API key and callback URL in Niobi, manage notification settings, update API key credentials, and receive event notifications.
By Niobi Team · Published 2026-12-02
How to Set a Default API Key and Callback URL
Introduction
When using the Niobi API, most requests include their own callback URL, allowing Niobi to send updates to the specified endpoint. However, some events are not linked to an API request. For example, when someone deposits money directly into your account through a bank transfer, there is no associated request or callback URL.
For these events, Niobi uses your default API key and default callback URL. The callback URL tells Niobi where to send the notification, while the default API key's secret is used to sign it. This allows your system to verify that the notification genuinely came from Niobi.
In this guide, you'll learn how to:
- Understand how the default API key works and how Niobi selects it.
- Change your default API key.
- Set up or update your default callback URL.
- Ensure you continue receiving notifications without interruptions.
Time needed: About 5 minutes
Difficulty: Intermediate
Before You Start
Make sure you have the following:
- An active Niobi account with access to Workspace settings.
- Permission to manage API keys within your organization.
- At least one API key. If you don't have one yet, create it from the API Keys page using Add Credentials.
- An HTTPS endpoint on your server that can receive notifications, for example, .
- Signature verification code on your endpoint that checks notifications using the secret of your default API key.
Understanding the Default API Key
Each API key listed on the API Keys page has a Default toggle. The default API key is the one Niobi uses to sign notifications sent to your default callback URL.
The following rules apply to default API keys:
- Only one key can be the default. Enabling the toggle for a new key automatically disables it for the previously selected default key.
- Your first API key becomes the default automatically. If you have only one API key, no additional action is required.
- You cannot turn off the default key directly. To change the default, enable the toggle for another API key. The previous key will automatically stop being the default.
- You cannot delete the default API key. First, set another API key as the default. You can then delete the previous key.
The currently selected default API key displays a green toggle and a Default label underneath it.
How to Change Your Default API Key
Follow these steps to change the default API key in your Niobi Workspace:
1. Navigate to Workspace > API Keys from the left-hand menu.
2. Find the API key you want to set as the default. You can identify keys using their Client ID and the last four characters of the Secret.
3. Turn on the Default toggle for your selected API key.
4. Confirm that the Default label appears underneath the selected key and that the toggle for your previous default key is turned off.
Important: Notifications sent to your default callback URL are signed using the secret of your current default API key. Whenever you ch