Hi everyone,

I'm getting a 401 Unauthorized error when trying to call the Management API from my web app. I've already checked my token, headers, and API endpoint, but nothing seems to work. However, I’m still confused and can’t figure out where exactly I’m going wrong.

I feel like the solution might be in that blog, but I can’t pinpoint what I’m missing. Has anyone faced a similar issue? Could you help me understand what I should double-check or fix?

Oh, it looks as if you're referring to auth0, as I see you've also posted over there. It says you've attached a diagram of the request flow but I'm not seeing it.

commented: https://www.daniweb.com/programming/web-development/threads/543379/why-am-i-getting-a-401-unauthorized-error-when-calling-the-management-api +0

OK, I'm a little confused. You're an SEO guy who linked to a blog article about 401 errors on an SEO firm's website. The link to that article was snipped from your post for being self-promotional in nature. (I assumed you were just trying to get the backlink.) However, you're saying the 401 error is from using the Auth0 API. Can you post your code that connects to the API please? (And why, as an SEO guy, are you writing API calls?)

I feel like the solution might be in that blog

It's not. The blog article whose link was snipped has nothing to do with API authorization errors.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.