Resolve current identity data shared with an application.
const url = 'https://session-api.sudomimus.com/userinfo';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://session-api.sudomimus.com/userinfo \ --header 'Authorization: Bearer <token>'Accepts an ordinary application access token as a Bearer credential and
returns current, consent-gated identity data for its live session. This
endpoint accepts only sessions whose issuance
protocol is APPLICATION; OIDC clients use the discovered OIDC
userinfo_endpoint instead. Profile data is read live and is never
copied from the access token.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Current application-visible identity data.
object
Pairwise sector subject for this application.
The approved surname. Empty when the account legitimately has no surname.
Sudomimus private claim for the sector-scoped animated avatar URL.
Examplegenerated
{ "sub": "example", "email_verified": true, "name": "example", "given_name": "example", "family_name": "example", "picture": "https://example.com", "picture_animated": "https://example.com"}Headers
Section titled “Headers”Prevent storage of the credential-bearing response.
Legacy cache instruction retained for credential responses.
Prevent shared-cache reuse across Bearer credentials.
Bearer token missing, malformed, expired, inactive, or owned by another issuance protocol.
object
Example
{ "error": "invalid_token"}Headers
Section titled “Headers”Bearer authentication challenge.