---
title: "Generate CDP url"
method: POST
path: "/boxes/{boxId}/browser/connect-url/cdp"
tags: ["Browser"]
---

# Generate CDP url

`POST /boxes/{boxId}/browser/connect-url/cdp`

This endpoint allows you to generate a pre-signed URL for accessing the Chrome DevTools Protocol (CDP) of a running box. The URL is valid for a limited time and can be used to interact with the box's browser environment

## Path parameters

- `boxId` string, required

## Request body

- GenerateCdpUrl — Generate cdp url
  - `expiresIn` string — The CDP url will be alive for the given duration Supported time units: ms (milliseconds), s (seconds), m (minutes), h (hours) Example formats: "500ms", "30s", "5m", "1h" Default: 120m

## Response `200`

Generate pre-signed CDP url

- string

---

[API](https://skmtc.dev/babelcloud/apis/gbox-open-api.md) · [All operations](https://skmtc.dev/babelcloud/apis/gbox-open-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/babelcloud/gbox-open-api/revisions/d655577fa915/schema)
