{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/netcorecloud/json-schema/netcorecloud-two-factor-verify-request-schema.json",
  "title": "TwoFactorVerifyRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/netcorecloud-auth-api-openapi.yml#/components/schemas/TwoFactorVerifyRequest",
  "type": "object",
  "required": [
    "user_id",
    "client_id",
    "code"
  ],
  "properties": {
    "user_id": {
      "type": "integer"
    },
    "client_id": {
      "type": "integer"
    },
    "code": {
      "type": "string",
      "description": "6-digit TOTP code.",
      "pattern": "^\\d{6}$"
    },
    "setup": {
      "type": "boolean",
      "default": false,
      "description": "Set to `true` during initial 2FA setup confirmation."
    }
  }
}