---
title: "Create a durable browser session"
method: POST
path: "/api/control/sessions"
tags: ["Durable control"]
---

# Create a durable browser session

`POST /api/control/sessions`

## Request

- Base URL: `https://oyabrowser.com`
- URL: `https://oyabrowser.com/api/control/sessions`
- Auth: HTTP bearer

## Headers

- `Idempotency-Key` string

## Request body

- object
  - `provider` string
  - `persona` string
  - `governed` boolean
  - `queueMs` integer
  - `priority` 'low' | 'normal' | 'high'
  - `budgetUsd` number
  - `policy` object

## Response `200`

Success

- object

## Other responses

- `201`: Provisioning accepted
- `202`: Queued or existing operation; poll by returned ID
- `401`: Invalid or revoked credential
- `403`: Insufficient role
- `409`: Lifecycle, idempotency, or control lease conflict
- `429`: Capacity or budget exhausted
- `503`: Storage or session owner unavailable

---

[API](https://skmtc.dev/oyabrowser/apis/oya-browser-api.md) · [All operations](https://skmtc.dev/oyabrowser/apis/oya-browser-api/llms.txt) · [OpenAPI document](https://skmtc.dev/oyabrowser/apis/oya-browser-api/revisions/748c4b34f8e4?raw)
