Category: Forms and APIs

HTTP 401 Unauthorized: No Bearer Token in Request

Read this guide in Polish

The private endpoint returns 401, although the user in the interface looks logged in.

How to identify the source of the problem

Check that the request transmits the Authorization header and that the token has not expired.

Save method, status, headers and anonymized body requests and answers.

Repair steps

Download the current access token from the trusted session mechanism and re-log in.

How to Test Solution

The correct user receives an answer and the anonymous user does not receive private data.

Security and restrictions

Do not disable authorization or validation of webhook signature for status 200. Wash the tokens in the logs.