---
title: "Browser Close Login"
method: POST
path: "/api/agents/internal/browser/close-login"
tags: ["agent-internal"]
---

# Browser Close Login

`POST /api/agents/internal/browser/close-login`

## Request

- Base URL: `https://api.maritime.sh` (the document declares no server; this is the origin it was published from)
- URL: `https://api.maritime.sh/api/agents/internal/browser/close-login`
- Auth: none declared

End a Live View session early once the agent confirms login worked.

Body: `{"session_id": "..."}`. Idempotent: already-closed/expired
sessions return 200. Cookies set during the session are persisted to
the agent's Context regardless of whether we explicitly close it
(Browserbase's 600s timeout takes care of orphans).

## Headers

- `X-Maritime-Agent-Id` string, nullable
- `authorization` string, nullable

## Request body

- object

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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