Create or update the ID token extended claims configuration for the tenant. This controls which extended claims are included in ID tokens when the corresponding scopes are requested.
Body
Required
-
An array of extended claims to include in ID tokens. Possible values:
custom_data,identities,sso_identities,roles,organizations,organization_data,organization_roles.Values are
custom_data,identities,sso_identities,roles,organizations,organization_data, ororganization_roles.
PUT
/api/configs/id-token
curl \
--request PUT 'https://[tenant_id].logto.app/api/configs/id-token' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"enabledExtendedClaims":["custom_data"]}'
Request examples
{
"enabledExtendedClaims": [
"custom_data"
]
}
Response examples (200)
{
"enabledExtendedClaims": [
"custom_data"
]
}