---
title: "Close a session"
method: POST
path: "/v1/browser_sessions/{browser_session_id}/close"
tags: ["Browser Sessions"]
---

# Close a session

`POST /v1/browser_sessions/{browser_session_id}/close`

Close a session. Once closed, the session cannot be used again.

## Path parameters

- `browser_session_id` string, required — The ID of the browser session to close. completed_at will be set when the browser session is closed. browser_session_id starts with `pbs_`

## Headers

- `x-api-key` string, nullable — Skyvern API key for authentication. API key can be found at https://app.skyvern.com/settings.

## Response `200`

Successfully closed browser session

- unknown

## Other responses

- `403` — Unauthorized - Invalid or missing authentication
- `404` — Browser session not found
- `422` — Validation Error

---

[API](https://skmtc.net/skyvern-ai/apis/skyvern-api-2.md) · [All operations](https://skmtc.net/skyvern-ai/apis/skyvern-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/skyvern-ai/skyvern-api-2/versions/29562c6e0364/schema)
