---
title: "Leave a space"
method: POST
path: "/spaces/{space_id}/leave"
---

# Leave a space

`POST /spaces/{space_id}/leave`

Removes the authenticated user from the space. Requires user
authentication (JWT). API keys cannot leave a space. The space owner
cannot leave their own space.

## Path parameters

- `space_id` string, required

## Response `200`

Left the space

- LeaveSpaceResult — Result of leaving a space.
  - `space_id` string, required — ID of the space the user left.
  - `space_name` string, required — Name of the space the user left.

## Other responses

- `default` — Error response

## Changes

- **2026-08-11** `42816b90d8d6` — 1 warning
  - added the new `signups_disabled` enum value to the `code` response property for the response status `default`
- **2026-06-26** `808022f897be` — 1 info
  - endpoint added
- **2026-04-17** `a7becb6668ec` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/timescale/apis/ghost-api/changes/spaces/:space_id/leave/post.md)

---

[API](https://skmtc.dev/timescale/apis/ghost-api.md) · [All operations](https://skmtc.dev/timescale/apis/ghost-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/timescale/ghost-api/revisions/42816b90d8d6/schema)
