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}/leaveAuthorization
__Host-better-auth.session_tokenAPI key · cookierequiredSigned-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
teamIdstringrequiredmin length 1
Responses
204
You left the team.