Skip to content
Esc
↑↓navigate↵open⌘Jpreview

Leave a team

Removes your own membership from the team. The last owner of a team must transfer ownership before leaving.

POST/v1/teams/{teamId}/leave
Authorization
__Host-better-auth.session_tokenAPI key · cookierequired

Signed-in browser session, set by the dashboard sign-in flow. An operation that declares only this one needs a person behind the request: an API key or machine credential is refused. The same session token is also accepted as Authorization: Bearer.

Path parameters
teamIdstringrequired
min length 1
Responses
204

You left the team.

Try it
Server
Authorization
Parameters
Request
curl -X POST 'https://api.spacefast.com/v1/teams/string/leave' \
  -H 'Cookie: __Host-better-auth.session_token=YOUR_API_KEY'
Response
You left the team.

Was this page helpful?