---
title: "Close window"
method: DELETE
path: "/v1/sessions/{sessionId}/windows/{windowId}"
tags: ["windows"]
---

# Close window

`DELETE /v1/sessions/{sessionId}/windows/{windowId}`

Closes a browser window in a session

## Path parameters

- `sessionId` string, required
- `windowId` string, required

## Headers

- `Authorization` string, required

## Response `200`

OK

- TypeWindowIdResponse
  - `data` TypeWindowId, required
    - `targetId` string, required — CDP Window target ID
    - `title` string — Current title of the browser window
    - `url` string — Current URL of the browser window
    - `windowId` string, required — Airtop window ID of the browser window
  - `errors` TypeIssue[]
    - `code` string — Issue code.
    - `details` object — Any associated details.
    - `message` string, required — Message describing the issue.
    - `reason` string — Underlying reason for the issue.
  - `meta` TypeEnvelopeDefaultMeta, required
    - `requestId` string
  - `warnings` TypeIssue[]
    - `code` string — Issue code.
    - `details` object — Any associated details.
    - `message` string, required — Message describing the issue.
    - `reason` string — Underlying reason for the issue.

---

[API](https://skmtc.net/airtop/apis/airtop-api.md) · [All operations](https://skmtc.net/airtop/apis/airtop-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/airtop/airtop-api/revisions/77d6e0f03453/schema)
