---
title: "Launch a cloud browser and reserve its lease allowance"
method: POST
path: "/v1/sessions"
---

# Launch a cloud browser and reserve its lease allowance

`POST /v1/sessions`

## Request

- Base URL: `https://api.tabfleet.com`
- URL: `https://api.tabfleet.com/v1/sessions`
- Auth: HTTP bearer

Launch a cloud browser and reserve its lease allowance. Authenticate with a workspace API key. See the linked API documentation for permissions and error recovery.

## Headers

- `Idempotency-Key` string, required

## Request body

- object
  - `durationSeconds` integer
  - `idleTimeoutSeconds` integer

## Response `200`

Idempotent replay

- SessionConnection: Public session state plus a temporary connection only while the session is active.
  - `id` string, uuid, required
  - `status` 'creating' | 'active' | 'closing' | 'closed' | 'failed', required
  - `createdAt` string, date-time, required
  - `expiresAt` string, date-time, required
  - `endedAt` string, date-time, nullable, required
  - `idleTimeoutSeconds` integer, required
  - `closeReason` string, nullable, required
  - `allocatedSeconds` integer, required
  - `cdpUrl` string, uri: Temporary signed WSS endpoint, present only while active. At most 300 seconds validity.
  - `connectionTokenTtlSeconds` integer: Remaining signed connection lifetime in seconds.

## Other responses

- `201`: Created
- `429`: Throttled or temporarily capacity constrained. Honor Retry-After and inspect the JSON error code.
- `default`: Error. Respect Retry-After when supplied; do not blindly retry mutations.

---

[API](https://skmtc.dev/tabfleet/apis/tabfleet-browser-api.md) · [All operations](https://skmtc.dev/tabfleet/apis/tabfleet-browser-api/llms.txt) · [OpenAPI document](https://skmtc.dev/tabfleet/apis/tabfleet-browser-api/revisions/6a3346e552a8?raw)
