The Atlas Data API JTW token {"error":"invalid session: error finding user for endpoint","error_code":"InvalidSession"}

I’m trying to use JTW token authentication with the Atlas Data API, but for some reason, I’m not able to send a successful http request. I always get an error:

{"error":"invalid session: error finding user for endpoint","error_code":"InvalidSession","link"

I follow the example from this tutorial, my JWT token is valid, auth provider is enabled, I turned user settings ON to create a user upon firing the request, but still does not work. Maybe someone had similar problem in the past and knows a solution?

curl --location --request POST '' \
    --header 'jwtTokenString: $(cat jwt_token.txt)' \
    --header 'Content-Type: application/json' \
    --data-raw '{

{"error":"invalid session: error finding user for endpoint","error_code":"InvalidSession","link":"