Read the signed-in member's claims with a form
POST
/api/v1/oidc/userinfo
const url = 'https://gpu-kitchen.example.lan/api/v1/oidc/userinfo';const options = { method: 'POST', headers: {'Content-Type': 'application/x-www-form-urlencoded'}, body: new URLSearchParams({access_token: 'example'})};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://gpu-kitchen.example.lan/api/v1/oidc/userinfo \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data access_token=exampleThe userinfo endpoint, the token in a form body. A refusal answers the OAuth 2.0 error object { error, error_description }.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/x-www-form-urlencoded
object
access_token
string
Examplegenerated
access_token=exampleResponses
Section titled “Responses”Success.
Media typeapplication/json
object
sub
required
string
email
string
email_verified
boolean
name
string
preferred_username
string
roles
Array<string>
Example
{ "roles": [ "admin" ]}Error codes: oidc_provider_unavailable.
Media typeapplication/json
object
error
required
object
code
required
Stable snake_case code to branch on.
string
message
required
A sentence to show a person.
string
details
Optional structured context.
fix
Optional place where the problem is fixed.
string
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": "example", "fix": "example" }}Error codes: payload_too_large.
Media typeapplication/json
object
error
required
object
code
required
Stable snake_case code to branch on.
string
message
required
A sentence to show a person.
string
details
Optional structured context.
fix
Optional place where the problem is fixed.
string
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": "example", "fix": "example" }}