All Collections
Quick Guide to Africa's Talking
Why am I getting the error 'Supplied Authentication is Invalid'?
Why am I getting the error 'Supplied Authentication is Invalid'?

Reasons for the authentication error

Caroline Wavinya avatar
Written by Caroline Wavinya
Updated over a week ago

Our API authenticates requests using your username or API Key. If either one or both are incorrect, you will get the error "Supplied authentication is invalid".

Here are a few ways you can ensure you are using the correct credentials : 

  • If you are on Sandbox, make sure your username is sandbox and that the API key was generated from your Sandbox dashboard.

  • If you are in the live environment, make sure you are using your application username. Here's how you can view your application username:

  • Make sure the API Key is correct. You can try regenerating a new API key; just follow the steps in this article

  • Remember that you need to generate a separate API Key for the sandbox environment and a separate API Key for the live environment

  • Once you generate a new key, please give it at least 5 minutes before testing.

For further questions, email info@africastalking.com 

Did this answer your question?