How to authenticate your Uniblock API key
Every request to the Uniblock API must include your project API key in the request header. The key identifies your project, tracks usage, and gates access to the endpoints your plan supports.Steps
- Obtain your API key: Navigate to your Uniblock dashboard, open your project, and copy the API key shown on the Overview page.
-
Include the key in every request: Add an
X-API-Keyheader to each HTTP request you make to the Uniblock API.
- Test in the API Tester: Open the Uniblock Explorer, click Authorize, paste your API key, and click Authorize again. Every endpoint in the explorer will now send requests authenticated as your project.
- Start calling endpoints: With your key in place, you’re ready to call any Unified API endpoint your plan supports. Usage and analytics for all authenticated calls appear in your project dashboard under Endpoints → Analytics.
If you switch projects in the dashboard, update the API key in your code to match the new project — each project has its own key and its own usage metrics.