{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/citi/main/json-schema/citi-response-2-schema.json",
  "title": "oAuthTokenResponse",
  "description": "The response body for the v4 authentication service to retrieve an OAuth token.",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/citi-authenticationservices-api-openapi.yml#/components/schemas/Response_2",
  "type": "object",
  "properties": {
    "token": {
      "required": [
        "access_token",
        "expires_in",
        "scope"
      ],
      "type": "object",
      "title": "token",
      "properties": {
        "access_token": {
          "type": "string",
          "description": "Contains the OAuth Token that will be used for authenticating successive API calls.",
          "title": "access_token"
        },
        "token_type": {
          "type": "string",
          "description": "Default value will be “Bearer\".",
          "title": "token_type"
        },
        "scope": {
          "type": "string",
          "description": "The version scope of the authentication call. The value will be the same for all the API versions.",
          "title": "scope"
        },
        "expires_in": {
          "type": "string",
          "description": "The expiry time of the OAuth Token in seconds.",
          "title": "expires_in"
        }
      }
    }
  }
}