---
title: "Stop an X402 session"
method: PUT
path: "/x402/session/{id}/stop"
---

# Stop an X402 session

`PUT /x402/session/{id}/stop`

## Request

- Base URL: `https://api.hyperbrowser.ai`
- URL: `https://api.hyperbrowser.ai/x402/session/{id}/stop`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/hyperbrowser/apis/hyperbrowser-api/docs/x402/session/:id/stop/put.ts> (a function with typed inputs; its response is checked against the schema)

Stop the purchased browser without another payment. Authenticate with managementToken, not the browser token. An already closed or errored session also succeeds.

## Path parameters

- `id` string, uuid, required

## Response `200`

Success. No payment is required.

- object
  - `success` true, required

## Other responses

- `400`: Invalid session ID.
- `401`: Missing, invalid, expired, or incorrectly scoped management token.
- `403`: The token authorizes a different session.
- `404`: Session not found for the token's session and team.
- `500`: Session lookup or stop failed.

## Changes

- **2026-10-07** `71c0e245abdf`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/hyperbrowser/apis/hyperbrowser-api/changes/x402/session/:id/stop/put.md)

---

[API](https://skmtc.dev/hyperbrowser/apis/hyperbrowser-api.md) - [All operations](https://skmtc.dev/hyperbrowser/apis/hyperbrowser-api/llms.txt) - [OpenAPI document](https://skmtc.dev/hyperbrowser/apis/hyperbrowser-api/revisions/ef089024c533?raw)
