{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sortance/json-schema/sortance-decide-request-schema.json",
  "title": "DecideRequest",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sortance-openapi.json#/components/schemas/DecideRequest",
  "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"
          ]
        },
        "policy": {
          "type": "string",
          "description": "Policy slug. Default: default."
        },
        "enrich": {
          "type": "string",
          "enum": [
            "auto",
            "always",
            "never"
          ],
          "description": "auto (default) enriches only when a rule needs it."
        },
        "max_cost_usd": {
          "type": "number",
          "description": "Ceiling across verification and enrichment together."
        },
        "max_latency_ms": {
          "type": "integer"
        },
        "attributes": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        },
        "signals": {
          "type": "object",
          "properties": {
            "signature_agent_header": {
              "type": "string"
            },
            "signup_ip": {
              "type": "string"
            },
            "otp_delivered_at": {
              "type": "integer"
            },
            "otp_submitted_at": {
              "type": "integer"
            }
          }
        },
        "sender_domain": {
          "type": "string"
        }
      }
    }
  },
  "required": [
    "email"
  ]
}