Citizen Hangar - OAuth2 / OpenID Connect API
  1. Userinfo
Citizen Hangar - OAuth2 / OpenID Connect API
  • Authorization
    • Authorization endpoint (Authorization Code with PKCE)
      GET
  • Token
    • Token endpoint
      POST
  • Userinfo
    • UserInfo endpoint
      GET
  • Introspection
    • Token introspection (RFC 7662)
      POST
  • Revocation
    • Token revocation (RFC 7009)
      POST
  • Interaction
    • Provider interaction entrypoint
      GET
    • Confirm consent/interaction
      POST
  • Schemas
    • ErrorResponse
    • TokenResponse
    • PledgeSummary
    • HangarContents
  1. Userinfo

UserInfo endpoint

GET
/userinfo
Returns claims about the authenticated user. Requires Bearer token.

Request

Authorization
API Key
Add parameter in header
Authorization
Example:
Authorization: ********************
or

Responses

🟢200
application/json
User claims
Body

🟠401
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://citizenhangar.space/oauth/userinfo' \
--header 'Authorization: <api-key>'
Response Response Example
{
    "sub": "string",
    "name": "string",
    "preferred_username": "string",
    "picture": "string",
    "email": "string",
    "public_id": "string",
    "hangar_contents": {
        "total_value": "string",
        "pledges": [
            {
                "name": "string",
                "value": "string",
                "insurance": "string",
                "package": true,
                "contents": [
                    "string"
                ]
            }
        ]
    }
}
Modified at 2025-12-29 19:35:45
Previous
Token endpoint
Next
Token introspection (RFC 7662)
Built with