{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/azupay/main/json-schema/azupay-get-oauth2-response-obj-schema.json",
  "title": "GetOAuth2ResponseObj",
  "description": "Response returned when retrieving the OAuth2 configuration for a client. Identical to `EnableOAuth2ResponseObj` except that `oauth2ClientSecret` is **not** returned because the secret is only ever exposed at enablement time.\n",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/azupay-api-keys-api-openapi.yml#/components/schemas/GetOAuth2ResponseObj",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "oauth2ClientId",
    "oauth2TokenUrl",
    "oauth2GrantType",
    "oauth2TtlInSecs",
    "oauth2AllowedScopes"
  ],
  "properties": {
    "oauth2ClientId": {
      "type": "string",
      "description": "The OAuth2 client identifier issued for this Azupay client."
    },
    "oauth2TokenUrl": {
      "type": "string",
      "format": "url",
      "description": "The OAuth2 token endpoint to request access tokens from."
    },
    "oauth2GrantType": {
      "type": "string",
      "description": "The OAuth2 grant type supported by this client.",
      "enum": [
        "client_credentials"
      ]
    },
    "oauth2TtlInSecs": {
      "type": "integer",
      "description": "The lifetime, in seconds, of access tokens issued for this client."
    },
    "oauth2AllowedScopes": {
      "type": "array",
      "description": "The list of OAuth2 scopes that this client is allowed to request.",
      "items": {
        "type": "string"
      }
    }
  }
}