latestOpenAPI 3.1.02026-08-21211181.8 KB

e5d7af502419

User

Get the authenticated user

Returns the caller's own identity, read from the verified access-token claims. Profile fields (email, name, country) appear only when the token carries them.

get/v1/user

Response

The caller's identity claims.

substring required

The token subject (the JWT sub): the user's email, which auth.wego.com uses as the stable user identifier.

scopestring

Space-separated OAuth scopes granted to the token.

emailstring

The user's email address, when the token carries it.

namestring

The user's full display name, when present.

first_namestring

The user's given name, when present.

last_namestring

The user's family name, when present.

country_codestring

The user's market country code, when present (id_token-sourced; usually absent on the access token).

principal_namestring

The auth server's principal name for the user, when present.