# Auth0 \`/userinfo\` endpoint documentation is incorrect

**URL:** <https://community.auth0.com/t/auth0-userinfo-endpoint-documentation-is-incorrect/187552>\
**Category:** Get Help\
**Tags:** user-profile, user-management\
**Created:** [June 3, 2025, 7:50pm UTC](https://community.auth0.com/t/auth0-userinfo-endpoint-documentation-is-incorrect/187552 "2025-06-03T19:50:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![justice](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/justice/32/71157_2.png) [@justice](https://community.auth0.com/u/justice)\
**Post date:** [June 3, 2025, 7:50pm UTC](https://community.auth0.com/t/auth0-userinfo-endpoint-documentation-is-incorrect/187552/1 "2025-06-03T19:50:19Z")

</div>

Should be fairly easy to fix: The documentation states that the `/userinfo` endpoint accepts only 1 header, specifically `access_token`. When a request is built using the tool on [the documentation website] in cURL, and executed, a 401 Unauthorized code is returned. The correct header that works for this endpoint is `Authorization: Bearer <token>`.

So the request goes from

```auto
curl -L -g 'https://{yourDomain}/userinfo' \
-H 'Accept: application/json' \
-H 'access_token: <Token>'

```

(generated by the tool on the documentation)

to

```auto
curl -L -g 'https://{yourDomain}/userinfo' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <Token>'

```

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [June 29, 2025, 9:54pm UTC](https://community.auth0.com/t/auth0-userinfo-endpoint-documentation-is-incorrect/187552/3 "2025-06-29T21:54:58Z")

</div>

Hi there!

Welcome to the Auth0 Community!

Thank you for reporting that! I’ve sent that over to our Documentation team to review and update!

Thank you for your contribution!  
Dawid

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [July 13, 2025, 9:55pm UTC](https://community.auth0.com/t/auth0-userinfo-endpoint-documentation-is-incorrect/187552/4 "2025-07-13T21:55:39Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
