---
search:
  tags:
    - browser
    - POST
seo:
  description: >-
    The URL carries a token that is valid for connecting to this sandbox…
    Reference for the POST /v1/sandboxes/{sandbox}/browser/cdp endpoint in the
    pols.so API.
sidebar:
  label: >-
    Get a short-lived WebSocket URL for the sandbox's Chrome DevTools Protocol
    endpoint
  badge: POST
title: >-
  Get a short-lived WebSocket URL for the sandbox's Chrome DevTools Protocol
  endpoint
type: openapi-operation
---
The URL carries a token that is valid for connecting to this sandbox
only, for 5 minutes, and only while the API key that created it is
not revoked; an open connection is not cut when the token expires.
Pass it to Playwright (`chromium.connectOverCDP(url)`), Puppeteer
(`puppeteer.connect({ browserWSEndpoint: url })`) or any other CDP
client. Treat it like a password until it expires.

`POST /v1/sandboxes/{sandbox}/browser/cdp`
