---
title: "End the browser session"
method: POST
path: "/v1/auth/logout"
tags: ["Account"]
---

# End the browser session

`POST /v1/auth/logout`

## Request

- Base URL: `https://api.placementapi.com`
- URL: `https://api.placementapi.com/v1/auth/logout`
- Auth: none required

Public and idempotent: deletes the browser session row and expires its cookie in one call, so a stale or already-ended cookie is cleared rather than left live. A Bearer API key without a session cookie has nothing to end. A present `Origin` header that is not the request's own is refused (403 `forbidden`) before anything is deleted.

## Response `200`

OK

- object
  - `ok` true

## Other responses

- `403`: `forbidden`: cross-origin request.
- `503`: `server_misconfigured` when the store is not configured; `upstream_unfunded` when the measurement provider's prepaid balance is exhausted (fresh profiles, gap maps and SERPs pause; cached results and catalogue are unaffected); `upstream_unavailable` on a provider error; `payments_unavailable` when card payments are not configured.

---

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