{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/skyvern-com/json-schema/skyvern-com-browser-session-response-schema.json",
  "title": "BrowserSessionResponse",
  "description": "Response model for browser session information.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/skyvern-com-openapi.json#/components/schemas/BrowserSessionResponse",
  "properties": {
    "browser_session_id": {
      "type": "string",
      "title": "Browser Session Id",
      "description": "Unique identifier for the browser session. browser_session_id starts with `pbs_`."
    },
    "organization_id": {
      "type": "string",
      "title": "Organization Id",
      "description": "ID of the organization that owns this session"
    },
    "status": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Status",
      "description": "Current status of the browser session"
    },
    "runnable_type": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Runnable Type",
      "description": "Type of the current runnable associated with this session (workflow, task etc)"
    },
    "runnable_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Runnable Id",
      "description": "ID of the current runnable"
    },
    "timeout": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Timeout",
      "description": "Timeout in minutes for the session. Timeout is applied after the session is started. Defaults to 60 minutes."
    },
    "browser_address": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Browser Address",
      "description": "Url for connecting to the browser"
    },
    "browser_address_redacted": {
      "type": "boolean",
      "title": "Browser Address Redacted",
      "description": "Whether the browser address was withheld because this caller cannot connect",
      "default": false
    },
    "app_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "App Url",
      "description": "Url for the browser session page"
    },
    "extensions": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/Extensions"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Extensions",
      "description": "A list of extensions installed in the browser session."
    },
    "browser_type": {
      "anyOf": [
        {
          "$ref": "#/$defs/PersistentBrowserType"
        },
        {
          "type": "null"
        }
      ],
      "description": "The type of browser used for the session."
    },
    "browser_profile_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Browser Profile Id",
      "description": "ID of the browser profile loaded into this session, if any. browser_profile_id starts with `bp_`."
    },
    "generate_browser_profile": {
      "type": "boolean",
      "title": "Generate Browser Profile",
      "description": "Whether this session's browser profile will be saved when it ends so it can become a reusable browser profile.",
      "default": false
    },
    "browser_settings": {
      "anyOf": [
        {
          "$ref": "#/$defs/BrowserSettings"
        },
        {
          "type": "null"
        }
      ],
      "description": "Browser settings requested when the session was created."
    },
    "browser_settings_receipt": {
      "anyOf": [
        {
          "$ref": "#/$defs/BrowserSettingsReceipt"
        },
        {
          "type": "null"
        }
      ],
      "description": "What the browser reported after launch for the requested settings. Null until it is measured, and always null when no settings were requested."
    },
    "vnc_streaming_supported": {
      "type": "boolean",
      "title": "Vnc Streaming Supported",
      "description": "Whether the browser session supports VNC streaming",
      "default": false
    },
    "stream_transport": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Stream Transport",
      "description": "Live-view transport for this session: \"vnc\" or \"cdp\". Resolved on the single-session fetch only; null elsewhere."
    },
    "download_path": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Download Path",
      "description": "The path where the browser session downloads files"
    },
    "downloaded_files": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/FileInfo"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Downloaded Files",
      "description": "The list of files downloaded by the browser session"
    },
    "recordings": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/FileInfo"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Recordings",
      "description": "The list of video recordings from the browser session"
    },
    "started_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Started At",
      "description": "Timestamp when the session was started"
    },
    "completed_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Completed At",
      "description": "Timestamp when the session was completed"
    },
    "created_by": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Created By",
      "description": "ID of the user who created the session"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At",
      "description": "Timestamp when the session was created (the timestamp for the initial request)"
    },
    "modified_at": {
      "type": "string",
      "format": "date-time",
      "title": "Modified At",
      "description": "Timestamp when the session was last modified"
    },
    "deleted_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Deleted At",
      "description": "Timestamp when the session was deleted, if applicable"
    },
    "warning": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Warning",
      "description": "Advisory message about how the request was adjusted, if it was. Set when a requested timeout above the maximum was capped at creation, when an extension was granted less than it asked for, or when an extension was accepted but not yet confirmed; null otherwise."
    },
    "source": {
      "type": "string",
      "enum": [
        "managed",
        "external"
      ],
      "title": "Source",
      "description": "\"external\" for a browser the caller registered and runs itself; \"managed\" for one Skyvern runs.",
      "default": "managed"
    },
    "remaining_lifetime_seconds": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Remaining Lifetime Seconds",
      "description": "Seconds left before a registered external browser's fixed deadline. Null for managed sessions and once the session has ended."
    }
  },
  "type": "object",
  "required": [
    "browser_session_id",
    "organization_id",
    "created_at",
    "modified_at"
  ],
  "$defs": {
    "BrowserSettings": {
      "properties": {
        "timezone_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Timezone Id",
          "description": "IANA timezone the browser reports to pages, for example `America/New_York`. Applied when a browser is created and takes precedence over any timezone implied by the proxy location. Offsets such as `+03:00` are rejected. Omit or set to null to keep the default behavior."
        }
      },
      "type": "object",
      "title": "BrowserSettings"
    },
    "BrowserSettingsReceipt": {
      "properties": {
        "requested_timezone_id": {
          "type": "string",
          "title": "Requested Timezone Id",
          "description": "The timezone that was requested."
        },
        "actual_timezone_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Actual Timezone Id",
          "description": "The timezone the browser reported when measured, or null when it could not be measured."
        },
        "source": {
          "$ref": "#/$defs/BrowserSettingsSource",
          "description": "Where the requested setting came from."
        },
        "status": {
          "$ref": "#/$defs/BrowserSettingsStatus",
          "description": "`verified` when the browser reported the requested timezone or an IANA alias of it (Chromium reports `Asia/Calcutta` for `Asia/Kolkata`), `mismatch` when it reported another zone, `unapplied` when the browser already existed and was left unchanged, `unknown` when it could not be measured."
        },
        "warning": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Warning"
        }
      },
      "type": "object",
      "required": [
        "requested_timezone_id",
        "source",
        "status"
      ],
      "title": "BrowserSettingsReceipt"
    },
    "BrowserSettingsSource": {
      "type": "string",
      "enum": [
        "workflow_version",
        "session_request",
        "existing_session"
      ],
      "title": "BrowserSettingsSource"
    },
    "BrowserSettingsStatus": {
      "type": "string",
      "enum": [
        "verified",
        "mismatch",
        "unapplied",
        "unknown"
      ],
      "title": "BrowserSettingsStatus"
    },
    "Extensions": {
      "type": "string",
      "enum": [
        "ad-blocker",
        "captcha-solver"
      ],
      "title": "Extensions"
    },
    "FileInfo": {
      "properties": {
        "url": {
          "type": "string",
          "title": "Url",
          "description": "URL to access the file"
        },
        "checksum": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Checksum",
          "description": "SHA-256 checksum of the file"
        },
        "filename": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Filename",
          "description": "Original filename"
        },
        "file_size": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "File Size",
          "description": "Size of the file in bytes"
        },
        "modified_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Modified At",
          "description": "Modified time of the file"
        },
        "artifact_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Artifact Id",
          "description": "Artifact row id for refresh-on-read"
        }
      },
      "type": "object",
      "required": [
        "url"
      ],
      "title": "FileInfo",
      "description": "Information about a downloaded file, including URL and checksum."
    },
    "PersistentBrowserType": {
      "type": "string",
      "enum": [
        "msedge",
        "chrome",
        "stealth-chromium"
      ],
      "title": "PersistentBrowserType"
    }
  }
}