{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/proxmint/json-schema/proxmint-proxies-request-schema.json",
  "title": "ProxiesRequest",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/proxmint-openapi.json#/components/schemas/ProxiesRequest",
  "type": "object",
  "properties": {
    "product": {
      "type": "string",
      "enum": [
        "datacenter",
        "residential",
        "premium-residential",
        "mobile"
      ]
    },
    "protocol": {
      "type": "string",
      "enum": [
        "http",
        "socks5"
      ],
      "default": "http",
      "description": "`http` also carries HTTPS."
    },
    "session": {
      "type": "string",
      "enum": [
        "rotating",
        "sticky"
      ],
      "default": "rotating"
    },
    "sticky_minutes": {
      "type": "integer",
      "minimum": 1,
      "maximum": 120,
      "default": 30
    },
    "count": {
      "type": "integer",
      "minimum": 1,
      "maximum": 50,
      "default": 1,
      "description": "Sticky lines to build. Rotating always returns one."
    },
    "format": {
      "type": "string",
      "enum": [
        "url",
        "host:port:user:pass"
      ],
      "default": "url",
      "description": "`url` is protocol://user:pass@host:port."
    },
    "country": {
      "type": "string",
      "pattern": "^[A-Za-z]{2}$",
      "description": "ISO 3166-1 alpha-2. Omit every location field to use the targeting saved in the dashboard."
    },
    "state": {
      "type": "string",
      "maxLength": 40,
      "description": "Needs `country`."
    },
    "city": {
      "type": "string",
      "maxLength": 40,
      "description": "Lowercase, no spaces. Needs `country`."
    },
    "zip": {
      "type": "string",
      "description": "Needs `country`."
    },
    "asn": {
      "type": "string",
      "pattern": "^\\d{1,10}$",
      "description": "Carrier or ISP network number. Needs `country`."
    }
  },
  "required": [
    "product"
  ]
}