Creating and Managing API Keys
Last updated
Last updated
This guide walks you through the process of creating API keys on the Bakery Marketplace. Follow these steps to create and manage the use your API keys.
Visit the Bakery Marketplace and log in with your credentials.
After logging in, you'll be directed to your dashboard. On the left sidebar, locate and select API-Key. This will take you to the API-Key Control page, where you can manage your API keys.
On the API-Key Control page, you'll see your User ID and the status of any API keys you've created. Ensure the status of your API key is set to "Active" to enable usage.
If you ever need to refresh your API key, click the "Refresh API Key" button. This action will generate a new key while invalidating the old one.
Before you can use your API keys, install the following dependencies:
Axios: npm install axios
Node-Fetch: npm install node-fetch
Form Data: npm install form-data
UUID: npm install uuid
Buffer: npm install buffer
Bagelml: npm install bagelml
After installing the necessary dependencies, update the api.js
file located in node_modules > bageldb-beta > src > api
. Replace its contents with the following code to create an API key:
You can now create an API key by running the following code in your project:
Upon successful creation, the method will return:
Need extra help or just want to connect with other developers? Join our community on Discord for additional support (https://discord.gg/bagelnet) 👾