---
raw: true
search:
  tags:
    - Teams
    - POST
seo:
  description: >-
    Removes your own membership from the team. The last owner of a team must…
    Reference for the POST /v1/teams/{teamId}/leave endpoint in the Spacefast
    API.
sidebar:
  label: Leave a team
  badge: POST
title: Leave a team
type: openapi-operation
---
Removes your own membership from the team. The last owner of a team must transfer ownership before leaving.

`POST /v1/teams/{teamId}/leave`

**Responses**

- `204` — You left the team.
