---
title: "Cancel a profile setup session"
method: POST
path: "/v1/profiles/{profileId}/setup-session/cancel"
tags: ["Browser Context Profiles"]
---

# Cancel a profile setup session

`POST /v1/profiles/{profileId}/setup-session/cancel`

Cancels a running Browser Context Profile setup session and discards unsaved setup state. Requires the session_id returned by setup-session.

## Path parameters

- `profileId` string, required — Browser Context Profile ID

## Request body

- object
  - `session_id` string, required

## Response `200`

Cancel a profile setup session succeeded.

- object
  - `cancelled` boolean, required

## Other responses

- `401` — Unauthorized - Invalid or missing API key
- `404` — Browser session not found.
- `409` — Setup session cleanup failed; retry shortly.
- `500` — Internal server error

---

[API](https://skmtc.dev/tinyfish/apis/tinyfish-web-agent-automation-api.md) · [All operations](https://skmtc.dev/tinyfish/apis/tinyfish-web-agent-automation-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/tinyfish/tinyfish-web-agent-automation-api/revisions/bea716bc627d/schema)
