{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/citi/main/json-schema/citi-request-schema.json",
  "title": "Request",
  "description": "Form-encoded token request body sent by the TPP to obtain an OAuth access token using client credentials.",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/citi-authentication-api-openapi.yml#/components/schemas/Request",
  "type": "object",
  "required": [
    "grant_type",
    "scope"
  ],
  "properties": {
    "grant_type": {
      "type": "string",
      "title": "grantType",
      "description": "You must always pass 'client_credentials' in this field because Citi only provides credentials-based authentication for API users.",
      "enum": [
        "client_credentials"
      ]
    },
    "scope": {
      "type": "string",
      "title": "scope",
      "description": "This is the version scope of the authentication call."
    }
  }
}