{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/skyvern-com/json-schema/skyvern-com-workflow-run-request-input-schema.json",
  "title": "WorkflowRunRequest",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/skyvern-com-openapi.json#/components/schemas/WorkflowRunRequest-Input",
  "properties": {
    "agent_id": {
      "type": "string",
      "title": "Agent Id",
      "description": "ID of the agent to run. Starts with `wpid_`. `workflow_id` is accepted as an alias."
    },
    "parameters": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Parameters",
      "description": "Parameters to pass to the workflow"
    },
    "title": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Title",
      "description": "The title for this workflow run"
    },
    "proxy_location": {
      "anyOf": [
        {
          "$ref": "#/$defs/ProxyLocation"
        },
        {
          "$ref": "#/$defs/GeoTarget"
        },
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Proxy Location",
      "description": "\nGeographic Proxy location to route the browser traffic through. This is only available in Skyvern Cloud.\n\nAvailable geotargeting options:\n- RESIDENTIAL: the default value. Skyvern Cloud uses a random US residential proxy.\n- RESIDENTIAL_ES: Spain\n- RESIDENTIAL_IE: Ireland\n- RESIDENTIAL_GB: United Kingdom\n- RESIDENTIAL_IN: India\n- RESIDENTIAL_JP: Japan\n- RESIDENTIAL_FR: France\n- RESIDENTIAL_DE: Germany\n- RESIDENTIAL_NZ: New Zealand\n- RESIDENTIAL_PH: Philippines\n- RESIDENTIAL_KR: South Korea\n- RESIDENTIAL_SA: Saudi Arabia\n- RESIDENTIAL_ZA: South Africa\n- RESIDENTIAL_AR: Argentina\n- RESIDENTIAL_AU: Australia\n- RESIDENTIAL_BR: Brazil\n- RESIDENTIAL_TR: Turkey\n- RESIDENTIAL_CA: Canada\n- RESIDENTIAL_MX: Mexico\n- RESIDENTIAL_IT: Italy\n- RESIDENTIAL_NL: Netherlands\n- RESIDENTIAL_ISP: ISP proxy\n- US-CA: California (deprecated, routes through RESIDENTIAL_ISP)\n- US-NY: New York (deprecated, routes through RESIDENTIAL_ISP)\n- US-TX: Texas (deprecated, routes through RESIDENTIAL_ISP)\n- US-FL: Florida (deprecated, routes through RESIDENTIAL_ISP)\n- US-WA: Washington (deprecated, routes through RESIDENTIAL_ISP)\n- NONE: No proxy\n\nFor self-hosted deployments, you can pass a custom proxy URL as a dict: {\"url\": \"http://user:password@proxy.example.com:8080\"}. This routes the browser through your own proxy server and takes precedence over any globally configured proxy pool.\n Can also be a GeoTarget object for granular city/state targeting: {\"country\": \"US\", \"subdivision\": \"CA\", \"city\": \"San Francisco\"}",
      "default": "RESIDENTIAL"
    },
    "webhook_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Webhook Url",
      "description": "URL to send workflow status updates to after a run is finished. Refer to https://www.skyvern.com/docs/running-tasks/webhooks-faq for webhook questions."
    },
    "totp_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Totp Url",
      "description": "\nURL that serves TOTP/2FA/MFA codes for Skyvern to use during the workflow run. Refer to https://www.skyvern.com/docs/credentials#let-skyvern-fetch-codes-from-your-endpoint for more details.\n"
    },
    "totp_identifier": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Totp Identifier",
      "description": "\nIdentifier for the TOTP/2FA/MFA code when the code is pushed to Skyvern. Refer to https://www.skyvern.com/docs/credentials#push-a-code for more details.\n"
    },
    "otp_request_id": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 255,
          "minLength": 1,
          "pattern": "^otpr_[A-Za-z0-9_-]+$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Otp Request Id",
      "description": "Explicit request marker for strict run-bound OTP delivery. This field is accepted only on the otp-bound run endpoint; omit it to retain legacy behavior."
    },
    "browser_session_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Browser Session Id",
      "description": "ID of a Skyvern browser session to reuse, having it continue from the current screen state"
    },
    "reuse_browser_session": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Reuse Browser Session",
      "description": "Override whether this run reuses the workflow's managed browser session. Null inherits the workflow setting. Without login credentials, a browser profile key, or a sequential key, reuse is workflow-scoped: every run shares one browser and its signed-in state, so treat the workflow as single-account."
    },
    "browser_profile_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Browser Profile Id",
      "description": "ID of a browser profile to reuse for this workflow run"
    },
    "start_fresh_browser": {
      "type": "boolean",
      "title": "Start Fresh Browser",
      "description": "When true, start this run from a fresh, empty browser and ignore any saved browser memory — no memory is read or written. A verified sign-in during the run still updates the credential's saved login.",
      "default": false
    },
    "max_screenshot_scrolls": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Max Screenshot Scrolls",
      "description": "The maximum number of scrolls for the post action screenshot. When it's None or 0, it takes the current viewpoint screenshot."
    },
    "max_elapsed_time_minutes": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 480.0,
          "minimum": 1.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Max Elapsed Time Minutes",
      "description": "Timeout this workflow run after the configured elapsed runtime in minutes. When omitted, the platform default is 240 minutes. The maximum configurable value is 480 minutes."
    },
    "extra_http_headers": {
      "anyOf": [
        {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Extra Http Headers",
      "description": "The extra HTTP headers for the requests in browser."
    },
    "cdp_connect_headers": {
      "anyOf": [
        {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Cdp Connect Headers",
      "description": "HTTP headers attached ONLY to the CDP WebSocket handshake when connecting to a remote browser via browser_address. Use this for browser-provider auth (e.g., x-api-key for Skyvern Cloud, Browserless, or similar). These headers are NEVER forwarded to target websites."
    },
    "browser_address": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Browser Address",
      "description": "The CDP address for the workflow run."
    },
    "ai_fallback": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Ai Fallback",
      "description": "Whether to fallback to AI if the workflow run fails."
    },
    "run_with": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Run With",
      "description": "Whether to run the workflow with agent or code. Null inherits from the workflow setting."
    },
    "browser_type": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Browser Type",
      "description": "Browser engine for this run, one of the supported browser types (e.g. msedge, chrome, stealth-chromium). Overrides the workflow-level setting. Null inherits from the workflow."
    },
    "run_metadata": {
      "anyOf": [
        {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Run Metadata",
      "description": "String key/value metadata to attach to this workflow run for analytics tag filtering."
    },
    "file_ids": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array",
          "maxItems": 50
        },
        {
          "type": "null"
        }
      ],
      "title": "File Ids",
      "description": "\nIds of files uploaded through `POST /v1/upload_file` to attach to this run. Skyvern deletes an attached file as soon as the run finishes, so there is nothing to clean up afterwards. Reference an attached file by its id anywhere a file URL is accepted (for example in `parameters` or in the prompt) and no presigned URL is ever created for it. A file can be attached to one run at a time, and must not already be deleted.\n"
    }
  },
  "type": "object",
  "required": [
    "agent_id"
  ],
  "$defs": {
    "GeoTarget": {
      "properties": {
        "country": {
          "type": "string",
          "maxLength": 2,
          "minLength": 2,
          "title": "Country",
          "description": "ISO 3166-1 alpha-2 country code (e.g., 'US', 'GB', 'DE')"
        },
        "subdivision": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 10
            },
            {
              "type": "null"
            }
          ],
          "title": "Subdivision",
          "description": "ISO 3166-2 subdivision code without country prefix (e.g., 'CA' for California, 'NY' for New York)"
        },
        "city": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 100
            },
            {
              "type": "null"
            }
          ],
          "title": "City",
          "description": "City name in English from GeoNames (e.g., 'New York', 'Los Angeles', 'London')"
        },
        "isISP": {
          "type": "boolean",
          "title": "Isisp",
          "description": "Whether this geo target is marked as an ISP proxy location.",
          "default": false
        }
      },
      "type": "object",
      "required": [
        "country"
      ],
      "title": "GeoTarget",
      "description": "Granular proxy geo-targeting request with country, optional subdivision, and optional city."
    },
    "ProxyLocation": {
      "type": "string",
      "enum": [
        "RESIDENTIAL",
        "US-CA",
        "US-NY",
        "US-TX",
        "US-FL",
        "US-WA",
        "RESIDENTIAL_ES",
        "RESIDENTIAL_IE",
        "RESIDENTIAL_GB",
        "RESIDENTIAL_IN",
        "RESIDENTIAL_JP",
        "RESIDENTIAL_FR",
        "RESIDENTIAL_DE",
        "RESIDENTIAL_NZ",
        "RESIDENTIAL_ZA",
        "RESIDENTIAL_AR",
        "RESIDENTIAL_AU",
        "RESIDENTIAL_BR",
        "RESIDENTIAL_TR",
        "RESIDENTIAL_CA",
        "RESIDENTIAL_MX",
        "RESIDENTIAL_IT",
        "RESIDENTIAL_NL",
        "RESIDENTIAL_PH",
        "RESIDENTIAL_KR",
        "RESIDENTIAL_SA",
        "RESIDENTIAL_ISP",
        "NONE"
      ],
      "title": "ProxyLocation"
    }
  }
}