# Leave a teamspace

`POST /v1/teamspaces/{teamspaceId}/leave`

Scope: `docs:write`.

## Request

```bash
curl -X POST "https://api.lydie.co/v1/teamspaces/01JCQ3V5MZ8G4ZK2X7T9R6N1PB/leave" \
  -H "Authorization: Bearer $LYDIE_TOKEN"
```

## Path parameters

- `teamspaceId` (string, required): Teamspace id. (1–64 chars)

## Response

- `ok` (true, required)

```json
{
  "ok": true
}
```

Errors use the envelope described at https://developers.lydie.co/errors.md.
