Start a conversation

I get the Unauthorized 401 error, why?

The "Unauthorized" error means that you have not created the user for your application in admin panel OR your login/email or password are wrong, or if the user exists - the session was created without user credentials.

To access QuickBlox APIs you need to authenticate your application with QuickBlox server.
A token-based authentication should be used to provide secure access to QuickBlox APIs.

The token-based authentication works by ensuring that each request to the server contains a token that is verified by the server for the authenticity. When the authenticity is verified, the server responds to the request.

There are two types of tokens: application session token and user session token.
The application session token is limited to read-only permissions preventing changes to application data while the user session token is not restricted in permissions and allows for making edits to application data.

Please visit and make sure that you followed the steps described in our documentation: 

Authentication | iOS SDK | QuickBlox
Authentication | Android SDK | QuickBlox
Authentication | JavaScript SDK | QuickBlox
Authentication | React Native SDK | QuickBlox
Authentication | Flutter SDK | QuickBlox
Authentication | Server API | QuickBlox

Also make sure that you updated user's details in code sample as well as credentials.

More information about API error codes and descriptions you can find here:
Error codes and types


If you have any additional questions, feel free to start a conversation and our team will help with your request as soon as possible: Submit a ticket - QuickBlox Help Center

Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Maksym Pidhorbunskyi

  2. Posted
  3. Updated

Comments