{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/buildworkpro-com/json-schema/buildworkpro-com-oauth-revoke-request-schema.json",
  "title": "OauthRevokeRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/buildworkpro-com-oauth-api-openapi.yml#/components/schemas/OauthRevokeRequest",
  "type": "object",
  "properties": {
    "token": {
      "type": "string",
      "description": "The token to revoke. Can be either an access token (prefix bwp_at_) or a refresh token (prefix bwp_rt_)."
    },
    "token_type_hint": {
      "type": "string",
      "enum": [
        "access_token",
        "refresh_token"
      ],
      "description": "Optional hint about the token type. The server still falls back to the other type if the hinted lookup misses (RFC 7009 §4.1.2)."
    },
    "client_id": {
      "type": "string",
      "description": "OAuth client identifier issued by the registration endpoint."
    },
    "client_secret": {
      "type": "string",
      "description": "Required for confidential clients; MUST be omitted for public clients."
    }
  },
  "required": [
    "token",
    "client_id"
  ]
}