Discussions

Ask a Question
Back to All

Invalid Token error

Hello,

I'm trying to use the API to get some User records from Ayla. I am able to Sign In and generate a Token but when I try to run a GET on the User Service, no matter what endpoint I use, I always get the same error:

"401 Unauthorized".

Example:

GET URL: https://user.aylanetworks.com/users/d8ec2ce6-272e-11ee-9c50-ead5950d72be.json

Headers:

Accept: application/json

Authorization: ******

Response: 401 Unauthroized

Bearer realm="Doorkeeper", error="invalid_token", error_description="The access token is invalid"