Citizen Hangar - OAuth2 / OpenID Connect API
  1. Token
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. Token

Token endpoint

POST
/token
Exchange Authorization Code for tokens, refresh, or client_credentials. Accepts form-encoded parameters.

Request

Body Params application/x-www-form-urlencoded

Responses

🟢200
application/json
Token response
Body

🟠400
🟠401
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://citizenhangar.space/oauth/token' \
--data-urlencode 'grant_type=' \
--data-urlencode 'code=' \
--data-urlencode 'redirect_uri=' \
--data-urlencode 'client_id=' \
--data-urlencode 'client_secret=' \
--data-urlencode 'code_verifier=' \
--data-urlencode 'refresh_token='
Response Response Example
200 - Example 1
{
    "access_token": "string",
    "token_type": "Bearer",
    "expires_in": 0,
    "refresh_token": "string",
    "id_token": "string",
    "scope": "string"
}
Modified at 2025-12-29 19:35:45
Previous
Authorization endpoint (Authorization Code with PKCE)
Next
UserInfo endpoint
Built with