Authentication
Use the micro1 dashboard to get your API key.
-
Login in to your micro1 account.
-
Click on the bottom left to go to settings
-
Click generate API key button.
Using the API Key
Once you have generated your API key, you need to include it in the header of each API request. The API key is passed in the header using the following format:
Example Request
Here is an example of how to include the API key in a cURL request:
Header Details
-
Header Name: x-api-key
-
Header Value: YOUR_API_KEY Replace YOUR_API_KEY with the actual API key you generated from the client portal.
Error Handling
If your API key is missing, invalid, or expired, the API will respond with an error. Below are common HTTP status codes related to authentication:
-
401 Unauthorized: The request was made without a valid API key or the key was incorrect.
-
403 Forbidden: The API key does not have the necessary permissions to access the requested resource.
Example Error Response