Userinfo

The claims this access token discloses

GET
/api/v1/userinfo/

Scoped to exactly what the user granted: identity unlocks email, the person's username in your organization and verification status; profile unlocks the consented profile claims, read from the person's profile with your organization. sub and id (the same value) are always present. Mirrors an OIDC userinfo endpoint and shares one implementation with /o/userinfo/, so the two can never answer differently for the same token.

Authorization

oauth2
AuthorizationBearer <token>

An OAuth2 access token issued through the authorization flow. Acts on a user's behalf, and reads only what that user's granted scopes disclose. A token whose user has since been deactivated or soft-deleted is rejected.

In: header

Response Body

application/json

application/json

application/json

application/json

application/json

Error codes

Every error response carries one of these in its code field. Branch on the code, never on the detail text.

Statuscode
401not_authenticated, authentication_failed
403permission_denied
429rate_limited

Before you run the sample

  • Replace ACCESS_TOKEN with your user's access token.
curl -X GET "https://example.com/api/v1/userinfo/"
{  "banner_url": "string",  "birthdate": "2019-08-24",  "date_joined": "2019-08-24T14:15:22Z",  "email": "user@example.com",  "email_verified": true,  "family_name": "string",  "gender": "male",  "given_name": "string",  "id": "string",  "is_verified": true,  "locale": "string",  "middle_name": "string",  "name": "string",  "nickname": "string",  "picture": "string",  "preferred_username": "string",  "sub": "string",  "updated_at": 0,  "username": "string",  "website": "http://example.com"}