Skip to main content
All CollectionsCommon Errors
API Key Authorization Error

API Key Authorization Error

API Key Authorization Error explained.

Praise Magidi avatar
Written by Praise Magidi
Updated over a week ago

Step

Any steps in which authenticated services are required.

Message

You did not provide an API key. You need to provide your API key in the Authorization header, using Bearer auth (e.g. 'Authorization: Bearer YOUR_SECRET_KEY')

Cause

This error is triggered when attempting to access a restricted resource without providing a valid API key in the Authorization header.

Resolution

To resolve this issue, verify that your API key is correctly generated and has the necessary permissions to access the requested resource. If issues persist, double-check the configuration and permissions settings in your application.

Error Detail

json
{
"message": "Unauthorized",
"statusCode": 401,
"errorMessage": "You did not provide an API key. You need to provide your API key in the Authorization header, using Cearer auth (eg 'Authorization: Bearer YOUR_SECRET_KEY')"
}
Did this answer your question?