Skip to main content
POST
Leave an organization

Authorizations

Authorization
string
header
required

Personal Access Token (PAT) passed in the Authorization header (e.g., Bearer <pat>) for authenticated API requests. PATs are generated via /auth/generate-pat after authenticating through the magic link flow.

Body

application/json
org_id
string
required
Example:

"60c72b2f5f1b2c001c8e4b1a"

Response

Left organization successfully

message
string
Example:

"You have successfully left the organization"

orgs
object[]

The caller's remaining organizations. If this was their only organization, a new default organization is created and returned here.