Get current person-bound OIDC identity
GET
/v1/oauth/userinfo
const url = 'https://api.infiniteaudience.ai/v1/oauth/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://api.infiniteaudience.ai/v1/oauth/userinfo \ --header 'Authorization: Bearer <token>'Validates an MCP OAuth bearer and its active person-bound grant, then returns the current verified email when email was granted. Requires ‘openid’ scope.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Current OIDC identity claims.
Media typeapplication/json
object
sub
required
Stable opaque subject for this person in this organization.
string
email
Current email when the email scope was granted.
string format: email
email_verified
Present only for a currently verified email.
boolean
Example
{ "email_verified": true}RFC 6749-shaped OAuth protocol error — error is a fixed machine-readable code and error_description is a human-readable detail. Deliberately NOT this API’s usual {error, code, message} shape — this is the RFC’s own error contract, used only by /v1/oauth/authorize, /v1/oauth/device_authorization, /v1/oauth/token, and /v1/oauth/revoke.
Media typeapplication/json
RFC 6749 §5.2 / §4.1.2.1 error body — see the OAuthError response component.
object
error
required
string
error_description
required
string
Example
{ "error": "invalid_request"}