Quickstart
This guide will walk you through the essential steps to get started with our API, from obtaining your API key to making your first request.
Obtain Your API Keys
To start using the One of None API, you need to obtain your API keys from the dashboard. Only team owners and team admins have access to the API keys management section. Follow the steps below:
-
Log in to your One of None dashboard.
- Go to One of None Dashboard and sign in with your credentials.
-
Navigate to the API Keys section.
- In the sidebar, select Team Settings, then click on API Keys.
-
Copy your API keys.
- You will find two types of API keys available:
- Client API Key: Safe for client-side operations (e.g., web applications), can be exposed in the browser.
- Server API Key: For server-side operations, must be kept secret and never exposed publicly.
- Click the copy icon next to the key to copy it to your clipboard.
- You will find two types of API keys available:
Always keep your Server API Key secure and never expose it in a browser or client environment. If your Server API key is leaked, regenerate it immediately.
Add Whitelisted Domains
Before you can start making requests to the API, you need to whitelist the domains that will use your API keys. Only team owners and team admins have access to this section:
-
Add your domains.
- Enter the fully qualified domain name (e.g.,
https://yourwebsite.com
orhttp://localhost:<port>
for local development).Use wildcard subdomains like*.yourwebsite.com
if you need broader access.
- Enter the fully qualified domain name (e.g.,
-
Save the changes.
- Click the “Save” button to apply the changes.
Make Your First API Request
Once you have obtained your API key and whitelisted your domains, you’re ready to make your first API request. Use the x-api-key
header to authenticate your requests.
Replace YOUR_API_KEY
with your actual API key to authenticate the request. If everything is set up correctly, you’ll receive a JSON response like the following:
If you encounter any issues, refer to the troubleshooting page.
Explore More
Once you have successfully made your first request, you can explore other API endpoints by referring to our API Documentation. Need help? Contact our support team at support@oneofnone.io.