{
  "openapi": "3.1.0",
  "info": {
    "title": "Surfsky API",
    "version": "0.1.0",
    "description": "Start cloud browsers, control them through CDP, and manage the profiles, proxies, and fingerprints they run with."
  },
  "servers": [
    {
      "url": "{baseUrl}",
      "variables": {
        "baseUrl": {
          "default": "https://YOUR_API_HOST",
          "description": "API base URL from your Surfsky dashboard, including https://."
        }
      }
    }
  ],
  "security": [
    {
      "ApiToken": []
    }
  ],
  "tags": [
    {
      "name": "scrape",
      "description": "Fetch one page through a browser that is already running: a residential proxy and a desktop fingerprint, nothing kept between requests."
    },
    {
      "name": "profiles",
      "description": "Start, stop, and manage browsers. A one-time profile is discarded when it stops; a persistent profile keeps its cookies, storage, and fingerprint according to its storage settings."
    },
    {
      "name": "proxies",
      "description": "Look up available proxy locations and check traffic quotas for the premium and shared pools."
    },
    {
      "name": "fingerprints",
      "description": "Look up accepted renderer, screen, and device model values before configuring a fingerprint."
    },
    {
      "name": "extensions",
      "description": "Upload Chrome extensions once and load them into any browser you start."
    },
    {
      "name": "billing",
      "description": "Read the balance, the receipt of every session and scrape, usage over time windows and the ledger of charges and top-ups."
    },
    {
      "name": "site-reports",
      "description": "Tell the Surfsky team about a website that keeps blocking your browsers."
    }
  ],
  "paths": {
    "/profiles": {
      "get": {
        "tags": [
          "profiles"
        ],
        "summary": "List profiles",
        "operationId": "profiles_list_profiles_get",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 0,
              "title": "Page"
            }
          },
          {
            "name": "page_len",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 100,
              "title": "Page Len"
            }
          },
          {
            "name": "ordering",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "created",
                "-created",
                "active",
                "-active",
                "title",
                "-title"
              ],
              "type": "string",
              "default": "active",
              "title": "Ordering"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ProfileOut"
                  },
                  "title": "Response Profiles List Profiles Get"
                }
              }
            }
          },
          "422": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Account or feature access denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "429": {
            "description": "Request, browser, session, or traffic limit reached; inspect code",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "description": "List saved profiles. This endpoint returns a JSON array at the top level. One-time sessions are listed through active sessions instead.",
        "x-mint": {
          "href": "/api-reference/profiles/list-profiles"
        }
      },
      "post": {
        "tags": [
          "profiles"
        ],
        "summary": "Create profile",
        "operationId": "create_profile_profiles_post",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePersistentProfileIn"
              },
              "example": {
                "title": "my profile",
                "fingerprint": {
                  "os": "win"
                }
              }
            }
          }
        },
        "responses": {
          "422": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProfileCreated"
                },
                "example": {
                  "success": true,
                  "msg": "Profile was created",
                  "data": {
                    "uuid": "a8fb62f90611456aa75422b01c385a62"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Account or feature access denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "429": {
            "description": "Request, browser, session, or traffic limit reached; inspect code",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "description": "Create a saved profile without starting a browser. A title and fingerprint with os are required. The HTTP 201 response contains data.uuid; use it to start the profile. See [persistent profiles](/sessions#persistent-profiles).",
        "x-mint": {
          "href": "/api-reference/profiles/create-profile"
        }
      },
      "delete": {
        "tags": [
          "profiles"
        ],
        "summary": "Delete profiles",
        "operationId": "batch_delete_profile_route_profiles_delete",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BatchDeletePersistentProfilesIn"
              }
            }
          }
        },
        "responses": {
          "422": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProfilesDeleted"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Account or feature access denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "429": {
            "description": "Request, browser, session, or traffic limit reached; inspect code",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "400": {
            "description": "Partial deletion or request error; inspect data before retrying",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ProfilesDeleted"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "description": "Delete several saved profiles. HTTP 400 can report partial completion: inspect deleted_uuids, active_uuids, and not_found_uuids before deciding what to retry. Deleted profile state cannot be recovered through this API.",
        "x-mint": {
          "href": "/api-reference/profiles/delete-profiles"
        }
      }
    },
    "/profiles/active": {
      "get": {
        "tags": [
          "profiles"
        ],
        "summary": "List active sessions",
        "operationId": "active_profiles_route_profiles_active_get",
        "responses": {
          "422": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActiveSessions"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Account or feature access denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "description": "List the browsers running in this host's region, one-time and persistent. Use one_time to distinguish them and internal_uuid for stop or scrape calls. Session age alone does not prove that a worker has abandoned it.",
        "x-mint": {
          "href": "/api-reference/profiles/list-active-sessions"
        }
      }
    },
    "/profiles/stop": {
      "post": {
        "tags": [
          "profiles"
        ],
        "summary": "Stop all sessions",
        "operationId": "batch_stop_profiles_profiles_stop_post",
        "responses": {
          "422": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionsStopped"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Account or feature access denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "description": "Stop every browser of the account in this host's region, including sessions used by other workers. Check the stopped and failed lists even when the top-level success flag is true.",
        "x-mint": {
          "href": "/api-reference/profiles/stop-all-sessions"
        }
      }
    },
    "/profiles/{profile_uuid}": {
      "get": {
        "tags": [
          "profiles"
        ],
        "summary": "Get profile",
        "operationId": "get_profile_route_profiles__profile_uuid__get",
        "parameters": [
          {
            "name": "profile_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Profile Uuid"
            }
          }
        ],
        "responses": {
          "422": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProfileResult"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Account or feature access denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "429": {
            "description": "Request, browser, session, or traffic limit reached; inspect code",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "description": "Read a saved profile's settings from the data object.",
        "x-mint": {
          "href": "/api-reference/profiles/get-profile"
        }
      },
      "patch": {
        "tags": [
          "profiles"
        ],
        "summary": "Update profile",
        "operationId": "update_profile_route_profiles__profile_uuid__patch",
        "parameters": [
          {
            "name": "profile_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Profile Uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePersistentProfileIn"
              }
            }
          }
        },
        "responses": {
          "422": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProfileResult"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Account or feature access denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "429": {
            "description": "Request, browser, session, or traffic limit reached; inspect code",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "description": "Update a stopped saved profile. Omitted fields retain their values. The profile's OS identity fields cannot be changed through this request.",
        "x-mint": {
          "href": "/api-reference/profiles/update-profile"
        }
      },
      "delete": {
        "tags": [
          "profiles"
        ],
        "summary": "Delete profile",
        "operationId": "delete_profile_route_profiles__profile_uuid__delete",
        "parameters": [
          {
            "name": "profile_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Profile Uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Account or feature access denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "429": {
            "description": "Request, browser, session, or traffic limit reached; inspect code",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "description": "Delete a stopped saved profile and its stored state. A running profile must be stopped first.",
        "x-mint": {
          "href": "/api-reference/profiles/delete-profile"
        }
      }
    },
    "/profiles/{profile_uuid}/cookies": {
      "get": {
        "tags": [
          "profiles"
        ],
        "summary": "Export cookies",
        "operationId": "export_cookies_route_profiles__profile_uuid__cookies_get",
        "parameters": [
          {
            "name": "profile_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Profile Uuid"
            }
          },
          {
            "name": "export_format",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "json",
                "netscape"
              ],
              "type": "string",
              "default": "json",
              "title": "Export Format"
            }
          }
        ],
        "responses": {
          "422": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CookiesExported"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Account or feature access denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "429": {
            "description": "Request, browser, session, or traffic limit reached; inspect code",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "description": "Export a stopped saved profile's cookies as JSON or Netscape text. Cookies must be enabled in its storage settings. The response contains data.cookies.",
        "x-mint": {
          "href": "/api-reference/profiles/export-cookies"
        }
      },
      "post": {
        "tags": [
          "profiles"
        ],
        "summary": "Import cookies",
        "operationId": "import_cookies_route_profiles__profile_uuid__cookies_post",
        "parameters": [
          {
            "name": "profile_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Profile Uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CookiesImport"
              },
              "example": {
                "cookies": "[{\"domain\":\".example.com\",\"name\":\"session\",\"value\":\"REPLACE_WITH_COOKIE_VALUE\",\"path\":\"/\",\"secure\":true}]"
              }
            }
          }
        },
        "responses": {
          "422": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CookiesImported"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Account or feature access denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "429": {
            "description": "Request, browser, session, or traffic limit reached; inspect code",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "description": "Import cookies into a stopped saved profile. Send JSON cookies serialized as a string, or Netscape text, in the cookies field. Browser storage other than cookies is not imported. See [cookies](/cookies).",
        "x-mint": {
          "href": "/api-reference/profiles/import-cookies"
        }
      }
    },
    "/profiles/{profile_uuid}/start": {
      "post": {
        "tags": [
          "profiles"
        ],
        "summary": "Start profile",
        "operationId": "start_profile_profiles__profile_uuid__start_post",
        "parameters": [
          {
            "name": "profile_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 32,
              "maxLength": 32,
              "title": "Profile Uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StartStatefulProfileIn"
              },
              "example": {}
            }
          }
        },
        "responses": {
          "422": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionStarted"
                },
                "example": {
                  "success": true,
                  "internal_uuid": "a8fb62f90611456aa75422b01c385a62",
                  "ws_url": "wss://YOUR_API_HOST/proxy/a8fb62f90611456aa75422b01c385a62",
                  "inspector": {
                    "list": "https://YOUR_API_HOST/proxy/a8fb62f90611456aa75422b01c385a62/inspector",
                    "pages": [],
                    "screencast": "wss://YOUR_API_HOST/screencast/a8fb62f90611456aa75422b01c385a62/devtools/page/PAGE_ID"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Account or feature access denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "429": {
            "description": "Request, browser, session, or traffic limit reached; inspect code",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "description": "Start a saved profile and restore its enabled storage types. Omitted proxy settings retain the stored proxy; explicit overrides apply to this run. Starting an already running profile can return its existing session. Use the returned connection fields as-is.",
        "x-mint": {
          "href": "/api-reference/profiles/start-profile"
        }
      }
    },
    "/profiles/{internal_uuid}/scrape": {
      "post": {
        "tags": [
          "profiles"
        ],
        "summary": "Scrape page",
        "operationId": "profile_scrape_profiles__internal_uuid__scrape_post",
        "parameters": [
          {
            "name": "internal_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Internal Uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ScrapeRequest"
              },
              "examples": {
                "single": {
                  "summary": "One page",
                  "value": {
                    "url": "https://example.com",
                    "wait_for": "h1"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "422": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScrapeResult"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Account or feature access denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "429": {
            "description": "Request, browser, session, or traffic limit reached; inspect code",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "description": "Navigate a browser you started and return the page in the requested formats. Requests to one browser share its cookies. Check the target website's status. Avoid concurrent CDP work in this browser: the scraper takes over its first tab. The gateway waits up to 120 seconds. See [Scraping API](/quickstart/scraping_api).",
        "x-mint": {
          "href": "/api-reference/profiles/scrape-page"
        }
      }
    },
    "/profiles/{internal_uuid}/stop": {
      "post": {
        "tags": [
          "profiles"
        ],
        "summary": "Stop session",
        "operationId": "stop_profile_profiles__internal_uuid__stop_post",
        "parameters": [
          {
            "name": "internal_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Internal Uuid"
            }
          }
        ],
        "responses": {
          "422": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionStopped"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Account or feature access denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "description": "Stop a running browser. Use internal_uuid from the start response; it may equal the saved profile UUID. A persistent session saves its enabled storage on a normal stop. The response may include an optional cost receipt.",
        "x-mint": {
          "href": "/api-reference/profiles/stop-session"
        }
      }
    },
    "/profiles/one_time": {
      "post": {
        "tags": [
          "profiles"
        ],
        "summary": "Start one-time session",
        "operationId": "start_one_time_profile_profiles_one_time_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StartOneTimeProfileIn"
              },
              "example": {}
            }
          }
        },
        "responses": {
          "422": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionStarted"
                },
                "example": {
                  "success": true,
                  "internal_uuid": "a8fb62f90611456aa75422b01c385a62",
                  "ws_url": "wss://YOUR_API_HOST/proxy/a8fb62f90611456aa75422b01c385a62",
                  "inspector": {
                    "list": "https://YOUR_API_HOST/proxy/a8fb62f90611456aa75422b01c385a62/inspector",
                    "pages": [],
                    "screencast": "wss://YOUR_API_HOST/screencast/a8fb62f90611456aa75422b01c385a62/devtools/page/PAGE_ID"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Account or feature access denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "429": {
            "description": "Request, browser, session, or traffic limit reached; inspect code",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "description": "Start a browser without a saved profile. The response returns connection fields at the top level. Use the returned internal_uuid to stop the session. Supply a proxy or VPN, or use a pool available to your account. Shared HTTP cache can be enabled separately from profile storage. See [the session guide](/sessions).",
        "x-mint": {
          "href": "/api-reference/profiles/start-one-time-session"
        }
      }
    },
    "/scrape": {
      "post": {
        "tags": [
          "scrape"
        ],
        "summary": "Scrape a page",
        "operationId": "scrape_scrape_post",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ScrapeRequest"
              },
              "examples": {
                "markdown": {
                  "summary": "Markdown of the main content",
                  "value": {
                    "url": "https://example.com",
                    "formats": [
                      "markdown"
                    ]
                  }
                },
                "actions": {
                  "summary": "A search typed into the page",
                  "value": {
                    "url": "https://duckduckgo.com/",
                    "formats": [
                      "links"
                    ],
                    "actions": [
                      {
                        "type": "click",
                        "selector": "textarea[name=q]"
                      },
                      {
                        "type": "type",
                        "selector": "textarea[name=q]",
                        "text": "surfsky"
                      },
                      {
                        "type": "press",
                        "key": "Enter"
                      },
                      {
                        "type": "wait",
                        "selector": "article"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "422": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScrapeResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Account or feature access denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "400": {
            "description": "The page could not be fetched; code names the cause and data carries the page the browser was left on",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "402": {
            "description": "Empty balance (insufficient_balance)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "429": {
            "description": "Request rate or browser slots exhausted (rate_limits_reached, parallel_browsers_limit_reached)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "description": "Load one page in a browser that is already running and return it in the requested formats. The browser runs behind a residential proxy with a desktop fingerprint, solves the challenge pages and captchas it meets and keeps no cookies or storage between requests. One URL per request. A request is charged when its response carries the page: browser time in 10-second steps, plus the page's traffic and the captcha solves it uses. The amounts are in `receipt`. See [Scraping API](/quickstart/scraping_api).",
        "x-mint": {
          "href": "/api-reference/scrape/scrape-a-page"
        }
      }
    },
    "/fingerprint/renderers": {
      "get": {
        "tags": [
          "fingerprints"
        ],
        "summary": "List renderers",
        "operationId": "get_renderers_fingerprint_renderers_get",
        "parameters": [
          {
            "name": "page_len",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Page Len"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 0
                },
                {
                  "type": "null"
                }
              ],
              "title": "Page"
            }
          },
          {
            "name": "os",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "title": "Os"
            }
          },
          {
            "name": "os_arch",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Os Arch"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Account or feature access denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "429": {
            "description": "Request, browser, session, or traffic limit reached; inspect code",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "description": "Look up GPU renderer values for a fingerprint. Use a returned value in fingerprint.renderer.",
        "x-mint": {
          "href": "/api-reference/fingerprints/list-renderers"
        }
      }
    },
    "/fingerprint/screens": {
      "get": {
        "tags": [
          "fingerprints"
        ],
        "summary": "List screens",
        "operationId": "get_screens_fingerprint_screens_get",
        "parameters": [
          {
            "name": "os",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Os"
            }
          },
          {
            "name": "os_arch",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Os Arch"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Account or feature access denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "429": {
            "description": "Request, browser, session, or traffic limit reached; inspect code",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "description": "Look up screen values, optionally filtered by OS and architecture. Use the returned screen string in fingerprint.screen.",
        "x-mint": {
          "href": "/api-reference/fingerprints/list-screens"
        }
      }
    },
    "/fingerprint/device_models": {
      "get": {
        "tags": [
          "fingerprints"
        ],
        "summary": "List device models",
        "operationId": "get_device_models_fingerprint_device_models_get",
        "parameters": [
          {
            "name": "os",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Os"
            }
          },
          {
            "name": "os_arch",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Os Arch"
            }
          },
          {
            "name": "os_version",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Os Version"
            }
          },
          {
            "name": "device_type",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Device Type"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Account or feature access denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "429": {
            "description": "Request, browser, session, or traffic limit reached; inspect code",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "description": "Look up device models using the available OS, version, architecture, and device-type filters. Device models apply to Android fingerprints.",
        "x-mint": {
          "href": "/api-reference/fingerprints/list-device-models"
        }
      }
    },
    "/extensions": {
      "post": {
        "tags": [
          "extensions"
        ],
        "summary": "Upload extension",
        "operationId": "upload_extension_extensions_post",
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/Body_upload_extension_extensions_post"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExtensionUploadResponse"
                }
              }
            }
          },
          "422": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Account or feature access denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "description": "Upload an extension ZIP using multipart file and name fields. The response returns uuid at the top level. Load it through extensions on a browser start request. Limits are 100 uploads per account and 5 extensions per browser.",
        "x-mint": {
          "href": "/api-reference/extensions/upload-extension"
        }
      },
      "get": {
        "tags": [
          "extensions"
        ],
        "summary": "List extensions",
        "operationId": "list_extensions_extensions_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExtensionListResponse"
                }
              }
            }
          },
          "422": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Account or feature access denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "description": "List uploaded extensions. The response contains extensions and count at the top level.",
        "x-mint": {
          "href": "/api-reference/extensions/list-extensions"
        }
      }
    },
    "/extensions/{extension_uuid}": {
      "get": {
        "tags": [
          "extensions"
        ],
        "summary": "Get extension",
        "operationId": "get_extension_extensions__extension_uuid__get",
        "parameters": [
          {
            "name": "extension_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Extension Uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExtensionResponse"
                }
              }
            }
          },
          "422": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Account or feature access denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "description": "Read an extension's name and timestamps.",
        "x-mint": {
          "href": "/api-reference/extensions/get-extension"
        }
      },
      "patch": {
        "tags": [
          "extensions"
        ],
        "summary": "Update extension",
        "operationId": "update_extension_extensions__extension_uuid__patch",
        "parameters": [
          {
            "name": "extension_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Extension Uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExtensionUpdateRequest"
              },
              "example": {
                "name": "Reporting helper"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExtensionResponse"
                }
              }
            }
          },
          "422": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Account or feature access denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "description": "Rename an extension with a JSON name field. This does not replace its archive; upload a new ZIP to update extension code.",
        "x-mint": {
          "href": "/api-reference/extensions/update-extension"
        }
      },
      "delete": {
        "tags": [
          "extensions"
        ],
        "summary": "Delete extension",
        "operationId": "delete_extension_extensions__extension_uuid__delete",
        "parameters": [
          {
            "name": "extension_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Extension Uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Extension deleted",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Account or feature access denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "description": "Delete an uploaded extension. A copy already loaded in a running browser remains until that browser stops.",
        "x-mint": {
          "href": "/api-reference/extensions/delete-extension"
        }
      }
    },
    "/site-reports": {
      "post": {
        "tags": [
          "site-reports"
        ],
        "summary": "Report a blocked site",
        "operationId": "create_site_report_site_reports_post",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SiteReportIn"
              },
              "example": {
                "url": "https://example.com/login",
                "description": "Challenge loop on every start with a premium US proxy and a persistent profile."
              }
            }
          }
        },
        "responses": {
          "422": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SiteReportReceived"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Account or feature access denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "429": {
            "description": "1 report per minute or 20 per day reached (site_report_limit_reached)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "description": "Tell the Surfsky team that a website blocks your browsers, after the steps in [troubleshooting](/troubleshooting#the-site-is-blocking-you) did not help. Send the page URL and a description: the block or challenge you saw, the status code, and the proxy and profile settings you tried.",
        "x-mint": {
          "href": "/api-reference/site-reports/report-a-blocked-site"
        }
      }
    },
    "/billing/balance": {
      "get": {
        "tags": [
          "billing"
        ],
        "summary": "Get balance",
        "operationId": "billing_balance_billing_balance_get",
        "responses": {
          "422": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Balance"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Account or feature access denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "description": "Read what the account can spend. available is the plan, voucher and purchased balances less the cost of sessions still running; at zero or below, requests that cost money answer 402 insufficient_balance: every start and scrape on an on-demand plan, premium proxy starts, scrapes and captcha solving in a new session on a reserved plan. Money is in USD as decimal strings. See [statistics](/api-reference#statistics).",
        "x-mint": {
          "href": "/api-reference/billing/get-balance"
        }
      }
    },
    "/billing/sessions": {
      "get": {
        "tags": [
          "billing"
        ],
        "summary": "List session receipts",
        "operationId": "billing_sessions_list_billing_sessions_get",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 1000,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            },
            "description": "Page size."
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            },
            "description": "Entries to skip."
          },
          {
            "name": "since",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 2147483647,
                  "minimum": 0
                },
                {
                  "type": "null"
                }
              ],
              "title": "Since"
            },
            "description": "Unix timestamp in seconds; nothing older is returned."
          }
        ],
        "responses": {
          "422": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionReceipts"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Account or feature access denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "description": "List the receipts of browser sessions and scrape requests, newest first. A running session has finalized false and its amounts grow until it stops. since keeps sessions started at or after a Unix timestamp. Only the newest 1,000 receipts are listed: total stops at 1,000, has_more is true when more exist, and a page past them is empty.",
        "x-mint": {
          "href": "/api-reference/billing/list-session-receipts"
        }
      }
    },
    "/billing/ledger": {
      "get": {
        "tags": [
          "billing"
        ],
        "summary": "List ledger entries",
        "operationId": "billing_ledger_billing_ledger_get",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 25,
              "title": "Limit"
            },
            "description": "Page size."
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            },
            "description": "Entries to skip."
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Type"
            },
            "description": "Comma-separated entry types, such as session_charge,traffic_charge."
          },
          {
            "name": "direction",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^(in|out)$"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Direction"
            },
            "description": "in for money added, out for charges."
          },
          {
            "name": "since",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 2147483647,
                  "minimum": 0
                },
                {
                  "type": "null"
                }
              ],
              "title": "Since"
            },
            "description": "Unix timestamp in seconds; nothing older is returned."
          }
        ],
        "responses": {
          "422": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Ledger"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Account or feature access denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "description": "List every movement of the balance, newest first: charges for browser time, premium traffic and captcha solves, top-ups, refunds, vouchers, plan credit and manual adjustments. A charge is a negative amount. Filter by type, direction and since.",
        "x-mint": {
          "href": "/api-reference/billing/list-ledger-entries"
        }
      }
    },
    "/billing/usage": {
      "get": {
        "tags": [
          "billing"
        ],
        "summary": "Get usage",
        "operationId": "billing_usage_billing_usage_get",
        "responses": {
          "422": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Usage"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Account or feature access denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "description": "Sum sessions, billed browser time and spending over the last 24 hours, 7, 30 and 90 days, and count sessions per hour or day for a chart. Sessions count by start time, spending by when the ledger posted the charge.",
        "x-mint": {
          "href": "/api-reference/billing/get-usage"
        }
      }
    },
    "/billing/sessions/{session_uuid}": {
      "get": {
        "tags": [
          "billing"
        ],
        "summary": "Get session receipt",
        "operationId": "billing_session_get_billing_sessions__session_uuid__get",
        "parameters": [
          {
            "name": "session_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Session Uuid"
            },
            "description": "The internal_uuid a start returned."
          }
        ],
        "responses": {
          "422": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionReceipt"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Account or feature access denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "No receipt for that session on your account (billing_session_not_found)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "description": "Read one receipt by the internal_uuid a start returned. The stop response carries the same receipt as cost. A session that is not yours answers 404 billing_session_not_found.",
        "x-mint": {
          "href": "/api-reference/billing/get-session-receipt"
        }
      }
    },
    "/proxies/countries": {
      "get": {
        "tags": [
          "proxies"
        ],
        "summary": "List premium countries",
        "operationId": "get_proxy_countries_proxies_countries_get",
        "responses": {
          "422": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProxyLocations"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Account or feature access denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "description": "List premium proxy country codes and names. Use the returned code in proxy.country.",
        "x-mint": {
          "href": "/api-reference/proxies/list-premium-countries"
        }
      }
    },
    "/proxies/regions/{country}": {
      "get": {
        "tags": [
          "proxies"
        ],
        "summary": "List premium regions",
        "operationId": "get_proxy_regions_proxies_regions__country__get",
        "parameters": [
          {
            "name": "country",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Country"
            }
          }
        ],
        "responses": {
          "422": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProxyLocations"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Account or feature access denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "description": "List premium regions in a country. Use a returned code in proxy.region alongside proxy.country.",
        "x-mint": {
          "href": "/api-reference/proxies/list-premium-regions"
        }
      }
    },
    "/proxies/cities/{country}/{region}": {
      "get": {
        "tags": [
          "proxies"
        ],
        "summary": "List premium cities",
        "operationId": "get_proxy_cities_proxies_cities__country___region__get",
        "parameters": [
          {
            "name": "country",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Country"
            }
          },
          {
            "name": "region",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Region"
            }
          }
        ],
        "responses": {
          "422": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProxyLocations"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Account or feature access denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "description": "List premium cities in a region. Set country and region together with proxy.city.",
        "x-mint": {
          "href": "/api-reference/proxies/list-premium-cities"
        }
      }
    },
    "/proxies/asns/{country}": {
      "get": {
        "tags": [
          "proxies"
        ],
        "summary": "List premium ASNs",
        "operationId": "get_proxy_asns_proxies_asns__country__get",
        "parameters": [
          {
            "name": "country",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Country"
            }
          }
        ],
        "responses": {
          "422": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProxyLocations"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Account or feature access denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "description": "List ASNs available for premium targeting in a country. Use a numeric ASN in proxy.asn and include proxy.country.",
        "x-mint": {
          "href": "/api-reference/proxies/list-premium-asns"
        }
      }
    },
    "/proxies/pools": {
      "get": {
        "tags": [
          "proxies"
        ],
        "summary": "List proxy pools",
        "operationId": "get_proxy_pools_proxies_pools_get",
        "responses": {
          "422": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProxyPools"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Account or feature access denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "description": "List geographic pools and their countries. The pool code selects a geographic region; proxy.tier selects shared or premium access.",
        "x-mint": {
          "href": "/api-reference/proxies/list-proxy-pools"
        }
      }
    },
    "/proxies/quota": {
      "get": {
        "tags": [
          "proxies"
        ],
        "summary": "Get traffic quota",
        "operationId": "get_quota_proxies_quota_get",
        "responses": {
          "422": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PremiumQuota"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Account or feature access denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "description": "Legacy alias for the premium quota endpoint. This does not combine premium and shared traffic. Read shared quota separately.",
        "x-mint": {
          "href": "/api-reference/proxies/get-traffic-quota"
        }
      }
    },
    "/proxies/premium/quota": {
      "get": {
        "tags": [
          "proxies"
        ],
        "summary": "Get premium quota",
        "operationId": "get_quota_proxies_premium_quota_get",
        "responses": {
          "422": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PremiumQuota"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Account or feature access denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "description": "Read the remaining premium traffic allowance. Plans without an applicable quota return premium_quota_not_applicable. GB values use decimal gigabytes.",
        "x-mint": {
          "href": "/api-reference/proxies/get-premium-quota"
        }
      }
    },
    "/proxies/premium/stats": {
      "get": {
        "tags": [
          "proxies"
        ],
        "summary": "Get premium traffic stats",
        "operationId": "get_premium_stats_proxies_premium_stats_get",
        "responses": {
          "422": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrafficStats"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Account or feature access denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "description": "Read premium traffic totals for the last 24 hours, 7 days, and 30 days. These are time windows, not per-session records.",
        "x-mint": {
          "href": "/api-reference/proxies/get-premium-traffic-stats"
        }
      }
    },
    "/proxies/shared/countries": {
      "get": {
        "tags": [
          "proxies"
        ],
        "summary": "List shared countries",
        "operationId": "get_shared_proxy_countries_proxies_shared_countries_get",
        "responses": {
          "422": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SharedCountries"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Account or feature access denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "description": "List countries currently available in the shared proxy pool. Shared targeting supports country only.",
        "x-mint": {
          "href": "/api-reference/proxies/list-shared-countries"
        }
      }
    },
    "/proxies/shared/quota": {
      "get": {
        "tags": [
          "proxies"
        ],
        "summary": "Get shared quota",
        "operationId": "get_shared_quota_proxies_shared_quota_get",
        "responses": {
          "422": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SharedQuota"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Account or feature access denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "description": "Read shared traffic usage, remaining allowance, and reset timestamp. A value of -1 in limit and remaining fields means unlimited.",
        "x-mint": {
          "href": "/api-reference/proxies/get-shared-quota"
        }
      }
    },
    "/proxies/shared/stats": {
      "get": {
        "tags": [
          "proxies"
        ],
        "summary": "Get shared traffic stats",
        "operationId": "get_shared_stats_proxies_shared_stats_get",
        "responses": {
          "422": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrafficStats"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Account or feature access denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "description": "Read shared traffic totals for the last 24 hours, 7 days, and 30 days.",
        "x-mint": {
          "href": "/api-reference/proxies/get-shared-traffic-stats"
        }
      }
    }
  },
  "components": {
    "schemas": {
      "BatchDeletePersistentProfilesIn": {
        "properties": {
          "uuids": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Uuids"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "uuids"
        ],
        "title": "BatchDeletePersistentProfilesIn"
      },
      "Body_upload_extension_extensions_post": {
        "properties": {
          "file": {
            "type": "string",
            "contentMediaType": "application/octet-stream",
            "title": "File"
          },
          "name": {
            "type": "string",
            "title": "Name"
          }
        },
        "type": "object",
        "required": [
          "file",
          "name"
        ],
        "title": "Body_upload_extension_extensions_post"
      },
      "BrowserSettings": {
        "properties": {
          "inactive_kill_timeout": {
            "type": "integer",
            "maximum": 3600.0,
            "minimum": 1.0,
            "title": "Inactive Kill Timeout",
            "default": 30,
            "description": "Seconds without browser activity before automatic stop. An idle WebSocket alone does not keep the session active."
          },
          "cache_enabled": {
            "type": "boolean",
            "title": "Cache Enabled",
            "default": false
          },
          "cache_key": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 255,
                "pattern": "^[A-Za-z0-9_-][A-Za-z0-9._-]*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cache Key",
            "description": "Required when cache_enabled is true. See [shared cache](/shared-cache) for sharing behavior."
          }
        },
        "type": "object",
        "title": "BrowserSettings"
      },
      "ClickAction": {
        "properties": {
          "type": {
            "type": "string",
            "const": "click",
            "title": "Type"
          },
          "selector": {
            "type": "string",
            "title": "Selector"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "type",
          "selector"
        ],
        "title": "ClickAction",
        "description": "Move the mouse to the element and click it."
      },
      "CreatePersistentProfileFingerprintIn": {
        "properties": {
          "user_agent": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "User Agent"
          },
          "screen": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Screen"
          },
          "languages": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Languages"
          },
          "timezone": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Timezone"
          },
          "geolocation": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Geolocation"
              },
              {
                "type": "null"
              }
            ]
          },
          "cpu": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cpu"
          },
          "ram": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ram"
          },
          "renderer": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Renderer"
          },
          "noise": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Noise"
          },
          "dns": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Dns"
          },
          "media_devices": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Media Devices"
          },
          "webrtc": {
            "additionalProperties": true,
            "type": "object",
            "title": "Webrtc",
            "default": {
              "type": "real"
            }
          },
          "os": {
            "$ref": "#/components/schemas/OSTypeIn"
          },
          "os_arch": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Os Arch"
          },
          "os_version": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Os Version"
          },
          "device_model": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Device Model"
          },
          "device_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Device Type"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "os"
        ],
        "title": "CreatePersistentProfileFingerprintIn"
      },
      "CreatePersistentProfileIn": {
        "properties": {
          "title": {
            "type": "string",
            "maxLength": 90,
            "minLength": 1,
            "title": "Title"
          },
          "description": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 1024
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "start_pages": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Start Pages"
          },
          "proxy": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "format": "uri"
              },
              {
                "$ref": "#/components/schemas/ProxyConfig"
              },
              {
                "type": "null"
              }
            ],
            "title": "Proxy"
          },
          "storage_options": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PersistentProfileStorageOptions"
              },
              {
                "type": "null"
              }
            ]
          },
          "cookies": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/JsonCookie"
                },
                "type": "array",
                "minItems": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Cookies"
          },
          "fingerprint": {
            "$ref": "#/components/schemas/CreatePersistentProfileFingerprintIn"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "title",
          "fingerprint"
        ],
        "title": "CreatePersistentProfileIn"
      },
      "DomainRouteConfig": {
        "properties": {
          "proxy": {
            "type": "string",
            "minLength": 1,
            "format": "uri",
            "title": "Proxy"
          },
          "domain": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Domain"
          },
          "domain_suffix": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Domain Suffix"
          },
          "domain_keyword": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Domain Keyword"
          },
          "domain_regex": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Domain Regex"
          }
        },
        "type": "object",
        "required": [
          "proxy"
        ],
        "title": "DomainRouteConfig",
        "description": "Route specific domains through a different proxy.\n\n- domain: exact domain match (e.g., [\"google.com\"])\n- domain_suffix: suffix match (e.g., [\".google.com\"] matches *.google.com)\n- domain_keyword: keyword match (e.g., [\"google\"] matches any domain containing \"google\")\n- domain_regex: regex match (e.g., [\"^stun\\\\..+\"] matches stun.example.com)"
      },
      "ExtensionListResponse": {
        "properties": {
          "extensions": {
            "items": {
              "$ref": "#/components/schemas/ExtensionResponse"
            },
            "type": "array",
            "title": "Extensions"
          },
          "count": {
            "type": "integer",
            "title": "Count"
          }
        },
        "type": "object",
        "required": [
          "extensions",
          "count"
        ],
        "title": "ExtensionListResponse"
      },
      "ExtensionResponse": {
        "properties": {
          "uuid": {
            "type": "string",
            "title": "Uuid"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "created_at": {
            "type": "string",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "title": "Updated At"
          }
        },
        "type": "object",
        "required": [
          "uuid",
          "name",
          "created_at",
          "updated_at"
        ],
        "title": "ExtensionResponse"
      },
      "ExtensionUpdateRequest": {
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          }
        },
        "type": "object",
        "title": "ExtensionUpdateRequest"
      },
      "ExtensionUploadResponse": {
        "properties": {
          "uuid": {
            "type": "string",
            "title": "Uuid"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "message": {
            "type": "string",
            "title": "Message"
          }
        },
        "type": "object",
        "required": [
          "uuid",
          "name",
          "message"
        ],
        "title": "ExtensionUploadResponse"
      },
      "FingerprintWithoutOs": {
        "properties": {
          "user_agent": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "User Agent"
          },
          "screen": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Screen"
          },
          "languages": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Languages"
          },
          "timezone": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Timezone"
          },
          "geolocation": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Geolocation"
              },
              {
                "type": "null"
              }
            ]
          },
          "cpu": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cpu"
          },
          "ram": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ram"
          },
          "renderer": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Renderer"
          },
          "noise": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Noise"
          },
          "dns": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Dns"
          },
          "media_devices": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Media Devices"
          },
          "webrtc": {
            "additionalProperties": true,
            "type": "object",
            "title": "Webrtc",
            "default": {
              "type": "real"
            }
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "FingerprintWithoutOs"
      },
      "Geolocation": {
        "properties": {
          "latitude": {
            "type": "number",
            "maximum": 90.0,
            "minimum": -90.0,
            "title": "Latitude"
          },
          "longitude": {
            "type": "number",
            "maximum": 180.0,
            "minimum": -180.0,
            "title": "Longitude"
          },
          "accuracy": {
            "type": "integer",
            "maximum": 999.0,
            "minimum": 1.0,
            "title": "Accuracy"
          }
        },
        "type": "object",
        "required": [
          "latitude",
          "longitude",
          "accuracy"
        ],
        "title": "Geolocation"
      },
      "OSTypeIn": {
        "type": "string",
        "enum": [
          "win",
          "mac",
          "android"
        ],
        "title": "OSTypeIn"
      },
      "OneTimeProfileFingerprint": {
        "properties": {
          "user_agent": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "User Agent"
          },
          "screen": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Screen"
          },
          "languages": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Languages"
          },
          "timezone": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Timezone"
          },
          "geolocation": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Geolocation"
              },
              {
                "type": "null"
              }
            ]
          },
          "cpu": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cpu"
          },
          "ram": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ram"
          },
          "renderer": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Renderer"
          },
          "noise": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Noise"
          },
          "dns": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Dns"
          },
          "media_devices": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Media Devices"
          },
          "webrtc": {
            "additionalProperties": true,
            "type": "object",
            "title": "Webrtc",
            "default": {
              "type": "real"
            }
          },
          "os": {
            "$ref": "#/components/schemas/OSTypeIn",
            "default": "win"
          },
          "os_arch": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Os Arch"
          },
          "os_version": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Os Version"
          },
          "device_model": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Device Model"
          },
          "device_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Device Type"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "OneTimeProfileFingerprint"
      },
      "OpenVPNConfig": {
        "properties": {
          "config": {
            "type": "string",
            "title": "Config"
          },
          "username": {
            "type": "string",
            "title": "Username",
            "default": ""
          },
          "password": {
            "type": "string",
            "title": "Password",
            "default": ""
          }
        },
        "type": "object",
        "required": [
          "config"
        ],
        "title": "OpenVPNConfig"
      },
      "PersistentProfileStorageOptions": {
        "properties": {
          "cookies": {
            "type": "boolean",
            "title": "Cookies",
            "default": true
          },
          "passwords": {
            "type": "boolean",
            "title": "Passwords",
            "default": true
          },
          "extensions": {
            "type": "boolean",
            "title": "Extensions",
            "default": false
          },
          "localstorage": {
            "type": "boolean",
            "title": "Localstorage",
            "default": false
          },
          "history": {
            "type": "boolean",
            "title": "History",
            "default": false
          },
          "bookmarks": {
            "type": "boolean",
            "title": "Bookmarks",
            "default": true
          },
          "serviceworkers": {
            "type": "boolean",
            "title": "Serviceworkers",
            "default": false
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "PersistentProfileStorageOptions",
        "description": "Storage saved between persistent sessions. Local storage, extensions, history, and service workers are disabled by default."
      },
      "PressAction": {
        "properties": {
          "type": {
            "type": "string",
            "const": "press",
            "title": "Type"
          },
          "key": {
            "type": "string",
            "title": "Key"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "type",
          "key"
        ],
        "title": "PressAction",
        "description": "Press one key, such as Enter or Tab."
      },
      "ProfileOut": {
        "properties": {
          "uuid": {
            "type": "string",
            "title": "Uuid"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "description": {
            "type": "string",
            "title": "Description"
          },
          "proxy": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "format": "uri"
              },
              {
                "type": "null"
              }
            ],
            "title": "Proxy"
          },
          "status": {
            "type": "string",
            "enum": [
              "started",
              "stopped"
            ],
            "title": "Status"
          }
        },
        "type": "object",
        "required": [
          "uuid",
          "title",
          "description",
          "proxy",
          "status"
        ],
        "title": "ProfileOut"
      },
      "ProxyConfig": {
        "properties": {
          "tier": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ProxyTier"
              },
              {
                "type": "null"
              }
            ]
          },
          "type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ProxyType"
              },
              {
                "type": "null"
              }
            ]
          },
          "country": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[A-Za-z]{2}$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Country"
          },
          "region": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[\\w \\-]{1,64}$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Region"
          },
          "city": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[\\w \\-]{1,64}$"
              },
              {
                "type": "null"
              }
            ],
            "title": "City"
          },
          "pool": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RegionalPool"
              },
              {
                "type": "null"
              }
            ]
          },
          "asn": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 4294967295.0,
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Asn"
          },
          "lat": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 90.0,
                "minimum": -90.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Lat"
          },
          "lon": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 180.0,
                "minimum": -180.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Lon"
          },
          "session_minutes": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 10080.0,
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Session Minutes"
          },
          "unique_ip": {
            "type": "boolean",
            "title": "Unique Ip",
            "default": false
          },
          "keep_asn": {
            "type": "boolean",
            "title": "Keep Asn",
            "default": false
          },
          "keep_ip": {
            "type": "boolean",
            "title": "Keep Ip",
            "default": false
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "ProxyConfig"
      },
      "ProxyTier": {
        "type": "string",
        "enum": [
          "shared",
          "premium"
        ],
        "title": "ProxyTier"
      },
      "ProxyType": {
        "type": "string",
        "enum": [
          "residential",
          "mobile"
        ],
        "title": "ProxyType"
      },
      "RegionalPool": {
        "type": "string",
        "enum": [
          "western",
          "europe",
          "westeurope",
          "northamerica",
          "southamerica",
          "asia",
          "centralasia",
          "southasia",
          "eastasia",
          "sea",
          "oceania",
          "mena",
          "middleeast",
          "africa",
          "northafrica",
          "westafrica",
          "eastafrica",
          "centralafrica",
          "southernafrica"
        ],
        "title": "RegionalPool"
      },
      "ScreenshotOptions": {
        "properties": {
          "full_page": {
            "type": "boolean",
            "title": "Full Page",
            "default": true
          },
          "format": {
            "type": "string",
            "enum": [
              "png",
              "jpeg"
            ],
            "title": "Format",
            "default": "png"
          },
          "quality": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 100.0,
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Quality",
            "description": "jpeg only"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "ScreenshotOptions"
      },
      "ScrollAction": {
        "properties": {
          "type": {
            "type": "string",
            "const": "scroll",
            "title": "Type"
          },
          "selector": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Selector"
          },
          "direction": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "up",
                  "down"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Direction"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "type"
        ],
        "title": "ScrollAction",
        "description": "Scroll the element into view, or one screen up or down."
      },
      "SiteReportIn": {
        "properties": {
          "url": {
            "type": "string",
            "maxLength": 2083,
            "minLength": 1,
            "format": "uri",
            "title": "Url"
          },
          "description": {
            "type": "string",
            "maxLength": 5000,
            "minLength": 1,
            "title": "Description"
          }
        },
        "type": "object",
        "required": [
          "url",
          "description"
        ],
        "title": "SiteReportIn"
      },
      "SolveAction": {
        "properties": {
          "type": {
            "type": "string",
            "const": "solve",
            "title": "Type"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "type"
        ],
        "title": "SolveAction",
        "description": "Solve the captcha the page carries at this point, whatever auto_captcha_solve says."
      },
      "StartOneTimeProfileIn": {
        "properties": {
          "proxy_blacklist": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Proxy Blacklist"
          },
          "domain_routes": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/DomainRouteConfig"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Domain Routes"
          },
          "proxy": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "format": "uri"
              },
              {
                "$ref": "#/components/schemas/ProxyConfig"
              },
              {
                "type": "null"
              }
            ],
            "title": "Proxy",
            "description": "Proxy URL or pool selection. Choose tier explicitly to require shared or premium. See the [proxy guide](/proxies) for targeting rules."
          },
          "open_vpn": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OpenVPNConfig"
              },
              {
                "type": "null"
              }
            ]
          },
          "wireguard": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/WireGuardConfig"
              },
              {
                "type": "null"
              }
            ]
          },
          "enable_chromedriver": {
            "type": "boolean",
            "title": "Enable Chromedriver",
            "default": false
          },
          "extensions": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 5,
            "title": "Extensions"
          },
          "browser_settings": {
            "$ref": "#/components/schemas/BrowserSettings"
          },
          "fingerprint": {
            "$ref": "#/components/schemas/OneTimeProfileFingerprint"
          },
          "cookies": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/JsonCookie"
                },
                "type": "array",
                "minItems": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Cookies"
          },
          "show_config": {
            "type": "boolean",
            "title": "Show Config",
            "default": false
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "StartOneTimeProfileIn"
      },
      "StartStatefulProfileIn": {
        "properties": {
          "proxy_blacklist": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Proxy Blacklist"
          },
          "domain_routes": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/DomainRouteConfig"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Domain Routes"
          },
          "proxy": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "format": "uri"
              },
              {
                "$ref": "#/components/schemas/ProxyConfig"
              },
              {
                "type": "null"
              }
            ],
            "title": "Proxy",
            "description": "Proxy URL or pool selection. Choose tier explicitly to require shared or premium. See the [proxy guide](/proxies) for targeting rules."
          },
          "open_vpn": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OpenVPNConfig"
              },
              {
                "type": "null"
              }
            ]
          },
          "wireguard": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/WireGuardConfig"
              },
              {
                "type": "null"
              }
            ]
          },
          "enable_chromedriver": {
            "type": "boolean",
            "title": "Enable Chromedriver",
            "default": false
          },
          "extensions": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 5,
            "title": "Extensions"
          },
          "browser_settings": {
            "$ref": "#/components/schemas/BrowserSettings"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "StartStatefulProfileIn"
      },
      "TypeAction": {
        "properties": {
          "type": {
            "type": "string",
            "const": "type",
            "title": "Type"
          },
          "selector": {
            "type": "string",
            "title": "Selector"
          },
          "text": {
            "type": "string",
            "title": "Text"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "type",
          "selector",
          "text"
        ],
        "title": "TypeAction",
        "description": "Click the element and type the text key by key."
      },
      "UpdatePersistentProfileIn": {
        "properties": {
          "title": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 90,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Title"
          },
          "description": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 1024
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "start_pages": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Start Pages"
          },
          "proxy": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "format": "uri"
              },
              {
                "$ref": "#/components/schemas/ProxyConfig"
              },
              {
                "type": "null"
              }
            ],
            "title": "Proxy"
          },
          "storage_options": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PersistentProfileStorageOptions"
              },
              {
                "type": "null"
              }
            ]
          },
          "cookies": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/JsonCookie"
                },
                "type": "array",
                "minItems": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Cookies"
          },
          "fingerprint": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FingerprintWithoutOs"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "UpdatePersistentProfileIn"
      },
      "WaitAction": {
        "properties": {
          "type": {
            "type": "string",
            "const": "wait",
            "title": "Type"
          },
          "ms": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 60000.0,
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Ms"
          },
          "selector": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Selector"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "type"
        ],
        "title": "WaitAction",
        "description": "Wait for an element, or for a pause in milliseconds."
      },
      "WireGuardConfig": {
        "properties": {
          "private_key": {
            "type": "string",
            "title": "Private Key"
          },
          "address": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Address"
          },
          "peers": {
            "items": {
              "$ref": "#/components/schemas/WireGuardPeerConfig"
            },
            "type": "array",
            "title": "Peers"
          },
          "mtu": {
            "type": "integer",
            "title": "Mtu",
            "default": 1408
          }
        },
        "type": "object",
        "required": [
          "private_key",
          "address",
          "peers"
        ],
        "title": "WireGuardConfig"
      },
      "WireGuardPeerConfig": {
        "properties": {
          "public_key": {
            "type": "string",
            "title": "Public Key"
          },
          "endpoint": {
            "type": "string",
            "title": "Endpoint"
          },
          "allowed_ips": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Allowed Ips"
          },
          "pre_shared_key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Pre Shared Key"
          },
          "persistent_keepalive_interval": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Persistent Keepalive Interval"
          },
          "reserved": {
            "anyOf": [
              {
                "items": {
                  "type": "integer"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reserved"
          }
        },
        "type": "object",
        "required": [
          "public_key",
          "endpoint"
        ],
        "title": "WireGuardPeerConfig"
      },
      "ApiError": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "const": false
          },
          "msg": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "data": {},
          "detail": {},
          "error": {}
        },
        "description": "Error fields vary for forwarded responses. Check HTTP status and code when present."
      },
      "SessionStarted": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "const": true
          },
          "internal_uuid": {
            "type": "string",
            "description": "Identifier to use for stop, scrape, and live connections. May equal profile_uuid."
          },
          "ws_url": {
            "type": "string",
            "description": "Live CDP connection URL. Keep private."
          },
          "inspector": {
            "type": "object",
            "properties": {
              "list": {
                "type": "string"
              },
              "pages": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "page_url": {
                      "type": "string"
                    },
                    "devtools_url": {
                      "type": "string"
                    }
                  }
                }
              },
              "screencast": {
                "type": "string"
              }
            },
            "required": [
              "list",
              "pages",
              "screencast"
            ]
          }
        },
        "required": [
          "success",
          "internal_uuid",
          "ws_url",
          "inspector"
        ]
      },
      "ProfileCreated": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "msg": {
            "type": "string"
          },
          "data": {
            "type": "object",
            "properties": {
              "uuid": {
                "type": "string"
              }
            },
            "required": [
              "uuid"
            ]
          }
        },
        "required": [
          "success",
          "data"
        ]
      },
      "ProfileResult": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "msg": {
            "type": "string"
          },
          "data": {
            "type": "object",
            "additionalProperties": true
          }
        },
        "required": [
          "success",
          "data"
        ]
      },
      "SessionStopped": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "msg": {
            "type": "string"
          },
          "data": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "uuid": {
                    "type": "string"
                  }
                },
                "required": [
                  "uuid"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "cost": {
            "type": "object",
            "additionalProperties": true,
            "description": "Optional receipt. Check finalized before treating its amounts as final."
          }
        },
        "required": [
          "success",
          "data"
        ]
      },
      "ActiveSessions": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "msg": {
            "type": "string"
          },
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "profile_uuid": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "internal_uuid": {
                  "type": "string"
                },
                "one_time": {
                  "type": "boolean"
                },
                "started_at": {
                  "type": "string",
                  "format": "date-time"
                },
                "active_seconds": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "required": [
                "profile_uuid",
                "internal_uuid",
                "one_time",
                "started_at",
                "active_seconds"
              ]
            }
          }
        },
        "required": [
          "success",
          "data"
        ]
      },
      "SessionsStopped": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "msg": {
            "type": "string"
          },
          "data": {
            "type": "object",
            "properties": {
              "stopped": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "failed": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "internal_uuid": {
                      "type": "string"
                    },
                    "profile_uuid": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "one_time": {
                      "type": "boolean"
                    },
                    "success": {
                      "const": false,
                      "type": "boolean"
                    },
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            },
            "required": [
              "stopped",
              "failed"
            ]
          }
        },
        "required": [
          "success",
          "data"
        ]
      },
      "ProfilesDeleted": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "msg": {
            "type": "string"
          },
          "data": {
            "type": "object",
            "properties": {
              "deleted_uuids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "active_uuids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "not_found_uuids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "required": [
              "deleted_uuids",
              "active_uuids",
              "not_found_uuids"
            ]
          }
        },
        "required": [
          "success",
          "data"
        ]
      },
      "CookiesExported": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "msg": {
            "type": "string"
          },
          "data": {
            "type": "object",
            "properties": {
              "cookies": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/JsonCookie"
                    }
                  },
                  {
                    "type": "string"
                  }
                ]
              }
            },
            "required": [
              "cookies"
            ]
          }
        },
        "required": [
          "success",
          "data"
        ]
      },
      "CookiesImport": {
        "type": "object",
        "properties": {
          "cookies": {
            "type": "string",
            "description": "Serialized JSON cookie array or Netscape cookie text. This field is a string, unlike cookies on profile creation."
          }
        },
        "required": [
          "cookies"
        ]
      },
      "CookiesImported": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "msg": {
            "type": "string"
          }
        },
        "required": [
          "success",
          "msg"
        ]
      },
      "ScrapeRequest": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "format": "uri",
            "description": "Page URL to visit."
          },
          "formats": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "html",
                "raw_html",
                "markdown",
                "links",
                "screenshot",
                "cookies"
              ]
            },
            "default": [
              "html"
            ],
            "description": "What to return. html is cleaned, raw_html is the full rendered DOM, cookies is the jar after the scrape."
          },
          "only_main_content": {
            "type": "boolean",
            "default": true,
            "description": "Drop page chrome from html and markdown: header, nav, footer and aside elements, plus blocks whose class or id names a sidebar, menu, breadcrumb, cookie banner, modal, ad or share widget. A block that holds #main stays."
          },
          "screenshot": {
            "type": "boolean",
            "default": false,
            "description": "Shorthand for adding screenshot to formats."
          },
          "screenshot_options": {
            "$ref": "#/components/schemas/ScreenshotOptions"
          },
          "block_resources": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "image",
                "media",
                "font",
                "stylesheet",
                "iframe",
                "ads"
              ]
            },
            "description": "What the page does not download: image, media, font and stylesheet by resource type, media with the audio and video a player streams; iframe: frames from other sites; ads: ads, analytics and cookie banners. Captcha and anti-bot frames always load. Omitted: image, media, font, iframe and ads, or nothing when a screenshot is requested. An empty list blocks nothing."
          },
          "cookies": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            ],
            "description": "Cookies set before navigation: the JSON shape the cookies format returns, or Netscape text."
          },
          "wait": {
            "type": "number",
            "minimum": 0,
            "maximum": 60,
            "default": 0,
            "description": "Extra wait in seconds after navigation."
          },
          "wait_until": {
            "type": "string",
            "enum": [
              "domcontentloaded",
              "load",
              "networkidle",
              "commit"
            ],
            "default": "domcontentloaded"
          },
          "wait_for": {
            "type": "string",
            "description": "CSS or XPath selector to wait for after navigation. Passes when any element matching it is visible."
          },
          "timeout": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "default": 30000,
            "description": "Navigation and selector timeout in milliseconds."
          },
          "auto_captcha_solve": {
            "type": "boolean",
            "default": true,
            "description": "Pass every challenge page and solve every captcha the page shows, paid types included; each solve adds 10 to 60 seconds and is a captcha charge whatever its outcome. False solves nothing and reports what stood in the way in challenge."
          },
          "actions": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/ClickAction"
                },
                {
                  "$ref": "#/components/schemas/TypeAction"
                },
                {
                  "$ref": "#/components/schemas/PressAction"
                },
                {
                  "$ref": "#/components/schemas/ScrollAction"
                },
                {
                  "$ref": "#/components/schemas/WaitAction"
                },
                {
                  "$ref": "#/components/schemas/SolveAction"
                }
              ]
            },
            "maxItems": 10,
            "description": "Steps run on the loaded page with human emulation, in order. The first failure ends the request with action_failed."
          }
        },
        "required": [
          "url"
        ]
      },
      "ScrapedPage": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string"
          },
          "final_url": {
            "type": "string",
            "description": "URL after redirects and solves."
          },
          "status": {
            "type": "integer",
            "description": "Target website HTTP status after redirects and solves; 0 when navigation has no response."
          },
          "status_text": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "content_type": {
            "type": "string"
          },
          "challenge": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "kind": {
                "type": "string",
                "enum": [
                  "challenge_page",
                  "block_page",
                  "page_captcha"
                ]
              },
              "captcha": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The captcha's type; null on a challenge page without one."
              },
              "solved": {
                "type": "boolean",
                "description": "Whether the obstacle was passed: the page behind a challenge page was reached, or the page captcha was solved."
              },
              "cost": {
                "type": "string",
                "description": "Captcha charges of the whole request as a money string; \"0\" when nothing was charged."
              }
            },
            "required": [
              "kind",
              "captcha",
              "solved",
              "cost"
            ],
            "description": "The last obstacle the request met; null when nothing stood in the way."
          },
          "receipt": {
            "type": "object",
            "properties": {
              "session_uuid": {
                "type": "string",
                "description": "The request's session in the billing API."
              },
              "billed_seconds": {
                "type": "integer",
                "description": "Browser time in 10-second steps; 0 when the request is not billed."
              },
              "billed_minutes": {
                "type": "number",
                "description": "billed_seconds in minutes, to two decimals."
              },
              "traffic_bytes": {
                "type": "integer"
              },
              "browser_cost": {
                "type": "string"
              },
              "traffic_cost": {
                "type": "string"
              },
              "captcha_cost": {
                "type": "string",
                "description": "Captcha solves of the whole request, charged whatever became of the page."
              },
              "total_cost": {
                "type": "string",
                "description": "Browser time, traffic and captcha solves together, in USD."
              }
            },
            "description": "What the request cost, as the ledger records it. Absent when the request never reached a browser."
          },
          "metadata": {
            "type": "object",
            "properties": {
              "description": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "language": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "canonical_url": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "og_title": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "og_description": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "og_image": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          },
          "content": {
            "type": "string",
            "description": "Cleaned HTML, with the html format."
          },
          "raw_html": {
            "type": "string",
            "description": "The full rendered DOM, with the raw_html format."
          },
          "markdown": {
            "type": "string"
          },
          "links": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Absolute URLs, deduplicated, with the links format."
          },
          "screenshot": {
            "type": "string",
            "contentEncoding": "base64",
            "description": "Image data, with the screenshot format; omitted when capture fails."
          },
          "cookies": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": true
            },
            "description": "The jar after the scrape, with the cookies format."
          }
        },
        "required": [
          "url",
          "final_url",
          "status",
          "status_text",
          "title",
          "content_type",
          "challenge",
          "metadata"
        ]
      },
      "ScrapeItemError": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string"
          },
          "error": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "status_code": {
            "type": "integer"
          }
        },
        "required": [
          "url",
          "error",
          "code",
          "status_code"
        ]
      },
      "ScrapeResponse": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "msg": {
            "type": "string"
          },
          "data": {
            "$ref": "#/components/schemas/ScrapedPage"
          }
        },
        "required": [
          "success",
          "data"
        ]
      },
      "ScrapeResult": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "msg": {
            "type": "string"
          },
          "data": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ScrapedPage"
              },
              {
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ScrapedPage"
                    },
                    {
                      "$ref": "#/components/schemas/ScrapeItemError"
                    }
                  ]
                }
              }
            ]
          }
        },
        "required": [
          "success",
          "data"
        ]
      },
      "PremiumQuota": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "msg": {
            "type": "string"
          },
          "data": {
            "type": "object",
            "properties": {
              "remaining_bytes": {
                "type": "integer"
              },
              "remaining_gb": {
                "type": "number"
              }
            },
            "required": [
              "remaining_bytes",
              "remaining_gb"
            ]
          }
        },
        "required": [
          "success",
          "data"
        ]
      },
      "SharedQuota": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "msg": {
            "type": "string"
          },
          "data": {
            "type": "object",
            "properties": {
              "limit_gb": {
                "type": "integer"
              },
              "limit_bytes": {
                "type": "integer"
              },
              "used_bytes": {
                "type": "integer"
              },
              "remaining_bytes": {
                "type": "integer"
              },
              "remaining_gb": {
                "type": "number"
              },
              "reset_time": {
                "type": "integer",
                "description": "Unix timestamp in seconds."
              }
            }
          }
        },
        "required": [
          "success",
          "data"
        ]
      },
      "TrafficStats": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "msg": {
            "type": "string"
          },
          "data": {
            "type": "object",
            "properties": {
              "24h": {
                "type": "object",
                "properties": {
                  "bytes": {
                    "type": "integer"
                  },
                  "gb": {
                    "type": "number"
                  }
                },
                "required": [
                  "bytes",
                  "gb"
                ]
              },
              "7d": {
                "type": "object",
                "properties": {
                  "bytes": {
                    "type": "integer"
                  },
                  "gb": {
                    "type": "number"
                  }
                },
                "required": [
                  "bytes",
                  "gb"
                ]
              },
              "30d": {
                "type": "object",
                "properties": {
                  "bytes": {
                    "type": "integer"
                  },
                  "gb": {
                    "type": "number"
                  }
                },
                "required": [
                  "bytes",
                  "gb"
                ]
              }
            }
          }
        },
        "required": [
          "success",
          "data"
        ]
      },
      "ProxyPools": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "msg": {
            "type": "string"
          },
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "countries": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "code",
                "name",
                "countries"
              ]
            }
          }
        },
        "required": [
          "success",
          "data"
        ]
      },
      "SharedCountries": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "msg": {
            "type": "string"
          },
          "data": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "success",
          "data"
        ]
      },
      "SiteReportReceived": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "msg": {
            "type": "string"
          },
          "data": {
            "type": "null"
          }
        },
        "required": [
          "success",
          "data"
        ]
      },
      "ProxyLocations": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "msg": {
            "type": "string"
          },
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "country": {
                  "type": "string"
                },
                "country_code": {
                  "type": "string"
                },
                "region": {
                  "type": "string"
                },
                "region_code": {
                  "type": "string"
                }
              },
              "required": [
                "code",
                "name"
              ]
            }
          }
        },
        "required": [
          "success",
          "data"
        ]
      },
      "Balance": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "msg": {
            "type": "string"
          },
          "data": {
            "type": "object",
            "properties": {
              "on_demand": {
                "type": "boolean",
                "description": "True when browser time is paid from the balance. False on a reserved plan: the monthly fee covers browser time and the balance pays premium traffic and captcha solves."
              },
              "plan": {
                "type": "string",
                "description": "Plan name."
              },
              "plan_balance": {
                "type": "string",
                "description": "Credit granted with each paid period of an on-demand plan; spent first."
              },
              "voucher_balance": {
                "type": "string",
                "description": "Promotional credit, spent after plan credit; \"0\" once voucher_expires_at has passed."
              },
              "purchased_balance": {
                "type": "string",
                "description": "Money from top-ups and refunds, spent last."
              },
              "unbilled": {
                "type": "string",
                "description": "Browser time of running sessions not yet charged."
              },
              "available": {
                "type": "string",
                "description": "The three balances less unbilled. At zero or below, requests that cost money answer 402 insufficient_balance."
              },
              "monthly_credit": {
                "type": "string",
                "description": "The plan's monthly fee; on an on-demand plan each paid period grants it as plan_balance."
              },
              "voucher_expires_at": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "Unix timestamp in seconds; null without a voucher."
              },
              "subscription": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "status": {
                    "type": "string",
                    "description": "Status as Stripe reports it, such as active or past_due."
                  },
                  "cancel_at_period_end": {
                    "type": "boolean"
                  },
                  "current_period_end": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "description": "Unix timestamp in seconds."
                  },
                  "pending_plan": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Plan the subscription switches to at the period end; payg when cancelling."
                  }
                },
                "required": [
                  "status",
                  "cancel_at_period_end",
                  "current_period_end",
                  "pending_plan"
                ],
                "description": "The Stripe subscription as Surfsky last saw it; null without one."
              },
              "prices": {
                "type": "object",
                "properties": {
                  "browser_hour": {
                    "type": "string",
                    "description": "Price of a browser hour; \"0\" on a reserved plan."
                  },
                  "proxy_gb": {
                    "type": "string",
                    "description": "Price of a GB of premium proxy traffic."
                  }
                },
                "required": [
                  "browser_hour",
                  "proxy_gb"
                ]
              },
              "auto_recharge": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean"
                  },
                  "threshold": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "available below which the saved card is charged, in USD."
                  },
                  "amount": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "USD charged per recharge."
                  }
                },
                "required": [
                  "enabled",
                  "threshold",
                  "amount"
                ]
              }
            },
            "required": [
              "on_demand",
              "plan",
              "plan_balance",
              "voucher_balance",
              "purchased_balance",
              "unbilled",
              "available",
              "monthly_credit",
              "voucher_expires_at",
              "subscription",
              "prices",
              "auto_recharge"
            ]
          }
        },
        "required": [
          "success",
          "data"
        ]
      },
      "SessionReceipt": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "msg": {
            "type": "string"
          },
          "data": {
            "type": "object",
            "properties": {
              "session_uuid": {
                "type": "string",
                "description": "The internal_uuid the start returned."
              },
              "profile_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "null for a one-time session or a scrape."
              },
              "status": {
                "type": "string",
                "enum": [
                  "running",
                  "finalized"
                ]
              },
              "finalized": {
                "type": "boolean",
                "description": "False while the session runs; the amounts are then what it would cost if it stopped now."
              },
              "started_at": {
                "type": "integer",
                "description": "Unix timestamp in seconds."
              },
              "ended_at": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "Unix timestamp in seconds."
              },
              "billed_seconds": {
                "type": "integer",
                "description": "Browser time in whole steps: a minute for a session, 10 seconds for a scrape, one step at least."
              },
              "billed_minutes": {
                "type": "number",
                "description": "billed_seconds in minutes; a fraction for a scrape, 0.5 for 30 billed seconds."
              },
              "browser_cost": {
                "type": "string",
                "description": "billed_seconds at the plan's browser-hour price; \"0\" on a reserved plan."
              },
              "total_cost": {
                "type": "string",
                "description": "Equals browser_cost. Traffic and captcha charges are ledger entries, not part of the receipt."
              }
            },
            "required": [
              "session_uuid",
              "profile_uuid",
              "status",
              "finalized",
              "started_at",
              "ended_at",
              "billed_seconds",
              "billed_minutes",
              "browser_cost",
              "total_cost"
            ]
          }
        },
        "required": [
          "success",
          "data"
        ]
      },
      "SessionReceipts": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "msg": {
            "type": "string"
          },
          "data": {
            "type": "object",
            "properties": {
              "sessions": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "session_uuid": {
                      "type": "string",
                      "description": "The internal_uuid the start returned."
                    },
                    "profile_uuid": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "null for a one-time session or a scrape."
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "running",
                        "finalized"
                      ]
                    },
                    "finalized": {
                      "type": "boolean",
                      "description": "False while the session runs; the amounts are then what it would cost if it stopped now."
                    },
                    "started_at": {
                      "type": "integer",
                      "description": "Unix timestamp in seconds."
                    },
                    "ended_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Unix timestamp in seconds."
                    },
                    "billed_seconds": {
                      "type": "integer",
                      "description": "Browser time in whole steps: a minute for a session, 10 seconds for a scrape, one step at least."
                    },
                    "billed_minutes": {
                      "type": "number",
                      "description": "billed_seconds in minutes; a fraction for a scrape, 0.5 for 30 billed seconds."
                    },
                    "browser_cost": {
                      "type": "string",
                      "description": "billed_seconds at the plan's browser-hour price; \"0\" on a reserved plan."
                    },
                    "total_cost": {
                      "type": "string",
                      "description": "Equals browser_cost. Traffic and captcha charges are ledger entries, not part of the receipt."
                    }
                  },
                  "required": [
                    "session_uuid",
                    "profile_uuid",
                    "status",
                    "finalized",
                    "started_at",
                    "ended_at",
                    "billed_seconds",
                    "billed_minutes",
                    "browser_cost",
                    "total_cost"
                  ]
                },
                "description": "Newest first."
              },
              "total": {
                "type": "integer",
                "description": "Receipts matching since, at most 1,000, for paging."
              },
              "has_more": {
                "type": "boolean",
                "description": "True when more than 1,000 receipts match: only the newest 1,000 are listed."
              }
            },
            "required": [
              "sessions",
              "total",
              "has_more"
            ]
          }
        },
        "required": [
          "success",
          "data"
        ]
      },
      "Usage": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "msg": {
            "type": "string"
          },
          "data": {
            "type": "object",
            "properties": {
              "on_demand": {
                "type": "boolean",
                "description": "As on the balance."
              },
              "windows": {
                "type": "object",
                "properties": {
                  "24h": {
                    "type": "object",
                    "properties": {
                      "sessions": {
                        "type": "integer",
                        "description": "Sessions and scrapes started in the window."
                      },
                      "browser_seconds": {
                        "type": "integer",
                        "description": "Billed browser time."
                      },
                      "browser_minutes": {
                        "type": "integer",
                        "description": "browser_seconds in whole minutes."
                      },
                      "browser_cost": {
                        "type": "string",
                        "description": "USD as a decimal string, such as \"12.5\"."
                      },
                      "premium_cost": {
                        "type": "string",
                        "description": "Premium proxy traffic charges."
                      },
                      "captcha_cost": {
                        "type": "string",
                        "description": "Captcha solve charges."
                      },
                      "total_spent": {
                        "type": "string",
                        "description": "The three costs added up."
                      },
                      "premium_gb": {
                        "type": "number",
                        "description": "Premium proxy traffic in decimal GB, three decimals."
                      }
                    },
                    "required": [
                      "sessions",
                      "browser_seconds",
                      "browser_minutes",
                      "browser_cost",
                      "premium_cost",
                      "captcha_cost",
                      "total_spent",
                      "premium_gb"
                    ]
                  },
                  "7d": {
                    "type": "object",
                    "properties": {
                      "sessions": {
                        "type": "integer",
                        "description": "Sessions and scrapes started in the window."
                      },
                      "browser_seconds": {
                        "type": "integer",
                        "description": "Billed browser time."
                      },
                      "browser_minutes": {
                        "type": "integer",
                        "description": "browser_seconds in whole minutes."
                      },
                      "browser_cost": {
                        "type": "string",
                        "description": "USD as a decimal string, such as \"12.5\"."
                      },
                      "premium_cost": {
                        "type": "string",
                        "description": "Premium proxy traffic charges."
                      },
                      "captcha_cost": {
                        "type": "string",
                        "description": "Captcha solve charges."
                      },
                      "total_spent": {
                        "type": "string",
                        "description": "The three costs added up."
                      },
                      "premium_gb": {
                        "type": "number",
                        "description": "Premium proxy traffic in decimal GB, three decimals."
                      }
                    },
                    "required": [
                      "sessions",
                      "browser_seconds",
                      "browser_minutes",
                      "browser_cost",
                      "premium_cost",
                      "captcha_cost",
                      "total_spent",
                      "premium_gb"
                    ]
                  },
                  "30d": {
                    "type": "object",
                    "properties": {
                      "sessions": {
                        "type": "integer",
                        "description": "Sessions and scrapes started in the window."
                      },
                      "browser_seconds": {
                        "type": "integer",
                        "description": "Billed browser time."
                      },
                      "browser_minutes": {
                        "type": "integer",
                        "description": "browser_seconds in whole minutes."
                      },
                      "browser_cost": {
                        "type": "string",
                        "description": "USD as a decimal string, such as \"12.5\"."
                      },
                      "premium_cost": {
                        "type": "string",
                        "description": "Premium proxy traffic charges."
                      },
                      "captcha_cost": {
                        "type": "string",
                        "description": "Captcha solve charges."
                      },
                      "total_spent": {
                        "type": "string",
                        "description": "The three costs added up."
                      },
                      "premium_gb": {
                        "type": "number",
                        "description": "Premium proxy traffic in decimal GB, three decimals."
                      }
                    },
                    "required": [
                      "sessions",
                      "browser_seconds",
                      "browser_minutes",
                      "browser_cost",
                      "premium_cost",
                      "captcha_cost",
                      "total_spent",
                      "premium_gb"
                    ]
                  },
                  "90d": {
                    "type": "object",
                    "properties": {
                      "sessions": {
                        "type": "integer",
                        "description": "Sessions and scrapes started in the window."
                      },
                      "browser_seconds": {
                        "type": "integer",
                        "description": "Billed browser time."
                      },
                      "browser_minutes": {
                        "type": "integer",
                        "description": "browser_seconds in whole minutes."
                      },
                      "browser_cost": {
                        "type": "string",
                        "description": "USD as a decimal string, such as \"12.5\"."
                      },
                      "premium_cost": {
                        "type": "string",
                        "description": "Premium proxy traffic charges."
                      },
                      "captcha_cost": {
                        "type": "string",
                        "description": "Captcha solve charges."
                      },
                      "total_spent": {
                        "type": "string",
                        "description": "The three costs added up."
                      },
                      "premium_gb": {
                        "type": "number",
                        "description": "Premium proxy traffic in decimal GB, three decimals."
                      }
                    },
                    "required": [
                      "sessions",
                      "browser_seconds",
                      "browser_minutes",
                      "browser_cost",
                      "premium_cost",
                      "captcha_cost",
                      "total_spent",
                      "premium_gb"
                    ]
                  }
                },
                "required": [
                  "24h",
                  "7d",
                  "30d",
                  "90d"
                ],
                "description": "Totals over the trailing window."
              },
              "series": {
                "type": "object",
                "properties": {
                  "24h": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "at": {
                          "type": "integer",
                          "description": "Start of the hour or day in Unix seconds, UTC."
                        },
                        "sessions": {
                          "type": "integer"
                        }
                      },
                      "required": [
                        "at",
                        "sessions"
                      ]
                    }
                  },
                  "7d": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "at": {
                          "type": "integer",
                          "description": "Start of the hour or day in Unix seconds, UTC."
                        },
                        "sessions": {
                          "type": "integer"
                        }
                      },
                      "required": [
                        "at",
                        "sessions"
                      ]
                    }
                  },
                  "30d": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "at": {
                          "type": "integer",
                          "description": "Start of the hour or day in Unix seconds, UTC."
                        },
                        "sessions": {
                          "type": "integer"
                        }
                      },
                      "required": [
                        "at",
                        "sessions"
                      ]
                    }
                  }
                },
                "required": [
                  "24h",
                  "7d",
                  "30d"
                ],
                "description": "Sessions started per hour over 24 hours and per day over 7 and 30 days, oldest first."
              }
            },
            "required": [
              "on_demand",
              "windows",
              "series"
            ]
          }
        },
        "required": [
          "success",
          "data"
        ]
      },
      "Ledger": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "msg": {
            "type": "string"
          },
          "data": {
            "type": "object",
            "properties": {
              "entries": {
                "type": "array",
                "description": "Newest first.",
                "items": {
                  "type": "object",
                  "properties": {
                    "created_at": {
                      "type": "integer",
                      "description": "Unix timestamp in seconds."
                    },
                    "amount": {
                      "type": "string",
                      "description": "Negative for a charge."
                    },
                    "balance_type": {
                      "type": "string",
                      "enum": [
                        "plan",
                        "voucher",
                        "purchased"
                      ],
                      "description": "The balance the amount moved."
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "session_charge",
                        "traffic_charge",
                        "captcha_charge",
                        "topup",
                        "auto_topup",
                        "refund",
                        "voucher",
                        "voucher_expiry",
                        "plan_credit_grant",
                        "plan_credit_applied",
                        "plan_credit_expiry",
                        "adjustment"
                      ],
                      "description": "session_charge, traffic_charge and captcha_charge are what browser time, premium traffic and captcha solves cost; the rest are top-ups, refunds, vouchers, plan credit and manual adjustments."
                    },
                    "reason": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Note left with a manual adjustment or a voucher."
                    },
                    "session_uuid": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The session a charge belongs to."
                    },
                    "stripe_ref": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Stripe payment or invoice behind a top-up or refund."
                    }
                  },
                  "required": [
                    "created_at",
                    "amount",
                    "balance_type",
                    "type",
                    "reason",
                    "session_uuid",
                    "stripe_ref"
                  ]
                }
              },
              "total": {
                "type": "integer",
                "description": "Entries matching the filters, for paging."
              }
            },
            "required": [
              "entries",
              "total"
            ]
          }
        },
        "required": [
          "success",
          "data"
        ]
      }
    },
    "securitySchemes": {
      "ApiToken": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Cloud-Api-Token",
        "description": "API token from your dashboard."
      }
    }
  }
}
