Get the authenticated user
GET
/userReturns the authenticated caller's own user record. Unlike the gist list
endpoints this is a fully-private resource with no public form, so a
token lacking the scope gets 403 rather than a reduced response.
Request
Headers
| Name | Type | Scopes |
|---|---|---|
Authorizationrequired | string | user:read |
Responses
| Status | Body | Description |
|---|---|---|
200 | PrivateUser | The authenticated user. |
401 | Error | Missing or invalid credentials. |
403 | Error | The token lacks the required scope or permission. |