---
title: "Leave the current organization"
method: POST
path: "/api/organizations/leave"
tags: ["Organizations"]
---

# Leave the current organization

`POST /api/organizations/leave`

## Request

- Base URL: `https://demo.supercheck.dev`
- URL: `https://demo.supercheck.dev/api/organizations/leave`
- Auth: API key in cookie `better-auth.session_token`

Leave the active organization as a non-owner using an interactive browser session and a same-origin request. Removes the caller's membership and project assignments, clears this organization's selected context from all their sessions, and records member_left in the audit log. Owners must transfer ownership or delete the organization. Project-scoped CLI tokens receive 403. The supplied organization ID must match the active organization resolved from the session; stale confirmations receive 409.

## Request body

- object
  - `organizationId` string, uuid, required: The organization being confirmed; must match the active session organization.

## Response `200`

Organization left; reload to select a remaining membership or complete personal setup.

- object
  - `success` boolean
  - `data` object
    - `organizationId` string, uuid

## Other responses

- `400`: No active organization
- `401`: Authentication required
- `403`: Owner, CLI token, or cross-origin request
- `404`: Membership no longer exists
- `409`: The active organization changed; reload before confirming.
- `500`: Failed to leave organization

## Changes

- **2026-10-20** `a4dea22d4363`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/supercheck-io/apis/supercheck-api/changes/api/organizations/leave/post.md)

---

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