---
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

---

[API](https://skmtc.net/timescale/apis/ghost-api.md) · [All operations](https://skmtc.net/timescale/apis/ghost-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/timescale/ghost-api/versions/808022f897be/schema)
