{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sortance/json-schema/sortance-verify-request-schema.json",
  "title": "VerifyRequest",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sortance-openapi.json#/components/schemas/VerifyRequest",
  "type": "object",
  "properties": {
    "email": {
      "type": "string",
      "description": "The address to check, up to 320 characters.",
      "maxLength": 320
    },
    "context": {
      "type": "object",
      "properties": {
        "purpose": {
          "type": "string",
          "enum": [
            "outbound",
            "signup",
            "list_hygiene"
          ]
        },
        "sender_domain": {
          "type": "string",
          "description": "Your sending domain, for outbound checks."
        },
        "max_cost_usd": {
          "type": "number",
          "description": "Hard ceiling on provider spend for this call."
        },
        "max_latency_ms": {
          "type": "integer",
          "description": "Hard ceiling on wall-clock time; Sortance degrades rather than exceeding it."
        },
        "client": {
          "type": "object",
          "properties": {
            "ip": {
              "type": "string",
              "description": "End user's IP address."
            },
            "country": {
              "type": "string",
              "description": "ISO 3166-1 alpha-2 country code."
            },
            "user_agent": {
              "type": "string",
              "description": "End user's User-Agent."
            }
          },
          "description": "The END USER's details when your server calls Sortance. Malformed values are dropped, never a 400."
        },
        "attributes": {
          "type": "object",
          "additionalProperties": true,
          "description": "Caller attributes readable by policy rules as attributes.*."
        },
        "ai": {
          "type": "boolean",
          "description": "false skips the AI check."
        }
      }
    }
  },
  "required": [
    "email"
  ]
}