---
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`

## Request

- Base URL: `https://agent.tinyfish.ai`
- URL: `https://agent.tinyfish.ai/v1/profiles/{profileId}/setup-session/cancel`
- Auth: API key in header `X-API-Key`

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-2.md) · [All operations](https://skmtc.dev/tinyfish/apis/tinyfish-web-agent-automation-api-2/llms.txt) · [OpenAPI document](https://skmtc.dev/tinyfish/apis/tinyfish-web-agent-automation-api-2/revisions/6c73a54df35c?raw)
