Skip to content

Manage cookies in the browser context. Use these endpoints to read existing cookies, inject new ones, or clear the entire cookie store.

Returns all cookies for the browser context, optionally filtered by URL.

NameInTypeRequiredDescription
browser_idquerystringYesUnique identifier for the browser instance (0-based index)
startquerybooleanNoControls instance creation behavior. Default mode: instances are created automatically. Set to false to prevent creation. When auto-start is disabled globally: set to true to create an instance.
urlquerystringNoFilter cookies by URL
Terminal window
curl -G "https://api.hoody.com/api/browser/control/cookies" \
-H "Authorization: Bearer <token>" \
--data-urlencode "browser_id=0" \
--data-urlencode "url=https://example.com"

Adds cookies to the browser context.

NameInTypeRequiredDescription
browser_idquerystringYesUnique identifier for the browser instance (0-based index)
startquerybooleanNoControls instance creation behavior. Default mode: instances are created automatically. Set to false to prevent creation. When auto-start is disabled globally: set to true to create an instance.
FieldTypeRequiredDescription
cookiesarrayYesList of cookies to add. Each cookie requires name, value, and url. Optional fields: domain, path, httpOnly, secure.
Terminal window
curl -X POST "https://api.hoody.com/api/browser/control/cookies?browser_id=0" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"cookies": [
{
"name": "auth_token",
"value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"url": "https://app.example.com",
"httpOnly": true,
"secure": true
},
{
"name": "tracking_id",
"value": "usr-9f8e7d6c5b4a",
"url": "https://analytics.example.com"
}
]
}'

Removes all cookies from the browser context.

NameInTypeRequiredDescription
browser_idquerystringYesUnique identifier for the browser instance (0-based index)
startquerybooleanNoControls instance creation behavior. Default mode: instances are created automatically. Set to false to prevent creation. When auto-start is disabled globally: set to true to create an instance.
Terminal window
curl -X DELETE "https://api.hoody.com/api/browser/control/cookies?browser_id=0" \
-H "Authorization: Bearer <token>"

Retrieve runtime metadata and DevTools connection details for an existing browser instance.

Retrieves detailed metadata for an existing browser instance, including session information, browser details, operating system information, viewport and geolocation settings, open tabs list, and the Chrome DevTools WebSocket URL when available.

The webSocketDebuggerUrl field provides the WebSocket endpoint for remote debugging. Use this URL to connect Chrome DevTools, Puppeteer, or Playwright to the browser instance.

NameInTypeRequiredDescription
browser_idquerystringYesUnique identifier for the browser instance (0-based index)
startquerybooleanNoControls instance creation behavior. - Default mode: instances are created automatically. Set to false to prevent creation. - When auto-start is disabled globally: set to true to create an instance.
Terminal window
curl -G "https://api.hoody.com/api/browser/control/metadata" \
-H "Authorization: Bearer <token>" \
--data-urlencode "browser_id=0"

Returns the Chrome DevTools WebSocket URL and HTTP discovery URL for the specified browser instance. The HTTP URL (/json/version) can be used to resolve the WebSocket endpoint automatically.

NameInTypeRequiredDescription
browser_idquerystringYesUnique identifier for the browser instance (0-based index)
startquerybooleanNoControls instance creation behavior. Default mode: instances are created automatically. Set to false to prevent creation. When auto-start is disabled globally: set to true to create an instance.
Terminal window
curl -G "https://api.hoody.com/api/browser/control/devtools-url" \
-H "Authorization: Bearer <token>" \
--data-urlencode "browser_id=0"

Lists all open tabs in a browser instance.

NameInTypeRequiredDescription
browser_idquerystringYesUnique identifier for the browser instance (0-based index)
startquerybooleanNoControls instance creation behavior. Default mode: instances are created automatically. Set to false to prevent creation. When auto-start is disabled globally: set to true to create an instance.
Terminal window
curl -G "https://api.hoody.com/api/browser/control/tabs" \
-H "Authorization: Bearer <token>" \
--data-urlencode "browser_id=0"

Shut down a browser instance or close individual tabs within it.

Shuts down a specific browser instance.

NameInTypeRequiredDescription
browser_idquerystringYesUnique identifier for the browser instance (0-based index)
Terminal window
curl -G "https://api.hoody.com/api/browser/control/shutdown" \
-H "Authorization: Bearer <token>" \
--data-urlencode "browser_id=0"

Closes a specific browser tab by its tab ID. If no tabId is provided, closes the active tab (unless it is the last remaining tab).

NameInTypeRequiredDescription
browser_idquerystringYesUnique identifier for the browser instance (0-based index)
startquerybooleanNoControls instance creation behavior. Default mode: instances are created automatically. Set to false to prevent creation. When auto-start is disabled globally: set to true to create an instance.
FieldTypeRequiredDescription
tabIdintegerNoThe ID of the tab to close
Terminal window
curl -X POST "https://api.hoody.com/api/browser/control/tab/close?browser_id=0" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{ "tabId": 2 }'