# Leave the workspace

> Leave the workspace: reference page for this CustomDomain™ API operation in the members group. Covers parameters, request body, responses and error codes.

Source: https://docs.customdomain.ai/docs/api-reference/members/leaveWorkspace

## `POST https://api.customdomain.ai/v1/members:leave`

A person leaves the workspace themselves, with their own member key; the key names the member, so no one else can be removed this way. The last owner cannot leave: make someone else an owner first. Not for agent tokens or the workspace default key.

### Authentication

`apiKey`

### Responses

| Status | Description |
| --- | --- |
| `204` | Left |
| `400` | Error envelope: {code, title, details, request_id}. |
| `401` | Error envelope: {code, title, details, request_id}. |
| `403` | Error envelope: {code, title, details, request_id}. |
| `404` | Error envelope: {code, title, details, request_id}. |
| `409` | Error envelope: {code, title, details, request_id}. |

The full specification is served at `GET https://api.customdomain.ai/v1/openapi.json`.
