{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/citi/main/json-schema/citi-response-schema.json",
  "title": "Response",
  "description": "Successful token response returned to the TPP, containing the bearer token and its validity details.",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/citi-authentication-api-openapi.yml#/components/schemas/Response",
  "required": [
    "access_token",
    "expires_in",
    "token_type"
  ],
  "type": "object",
  "properties": {
    "token_type": {
      "type": "string",
      "description": "Token type issued by the authorization server; value is \"Bearer\".",
      "title": "token_type",
      "enum": [
        "Bearer"
      ]
    },
    "access_token": {
      "type": "string",
      "description": "OAuth access token to be presented by the TPP in the Authorization header for subsequent API requests.",
      "title": "access_token"
    },
    "expires_in": {
      "type": "integer",
      "description": "Lifetime of the access token in seconds from the time of issuance.",
      "title": "expires_in"
    },
    "scope": {
      "type": "string",
      "title": "scope",
      "description": "Scope associated with the issued access token."
    }
  }
}