Skip to content

Read the signed-in member's claims with a form

POST
/api/v1/oidc/userinfo
curl --request POST \
--url https://gpu-kitchen.example.lan/api/v1/oidc/userinfo \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data access_token=example

The userinfo endpoint, the token in a form body. A refusal answers the OAuth 2.0 error object { error, error_description }.

Media typeapplication/x-www-form-urlencoded
object
access_token
string
Examplegenerated
access_token=example

Success.

Media typeapplication/json
object
sub
required
string
email
string
email_verified
boolean
name
string
preferred_username
string
roles
Array<string>
Allowed values: admin user
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"
}
}