---
title: "nextmail.workspaces"
description: "Every method in this namespace: its signature, its parameters, what it returns and an example."
url: "https://nextmail.sh/docs/python/reference/workspaces"
area: "Python"
category: "Reference"
---

# nextmail.workspaces

Every method in this namespace: its signature, its parameters, what it returns and an example.

## Methods

The workspaces the person behind the key or the app can open: list them, create one, choose the one the app opens, offer the workspace the app belongs to to one of its members, and delete it. An API key acts for the workspace owner, and an app for the person who connected it.

### `workspaces.list()`

List your workspaces

```python
def list(
    *,
    api_key: str | None = None,
    timeout: float | None = None,
) -> WorkspaceListResource
```

Returns every workspace the person behind the client can open, the ones they own first, as the workspace switcher of the app lists them. It is about the person, not the workspace the key belongs to. An API key answers for the workspace owner, and an app for the person who connected it.

`activeWorkspaceId` is the workspace the app opens for them, and `primaryWorkspaceId` the first one they made, which can never be deleted. It is one response rather than a page, so there is no cursor to follow.

Scopes: `account:read`.

**Parameters**

- `api_key` (`str`): Overrides the client's API key for this call only.
- `timeout` (`float`): Seconds this call may take, the response included, before it raises `NextmailNetworkError` with `is_timeout`. It overrides the client's `timeout` for this call, and `0` turns the limit off.

**Returns**

`WorkspaceListResource` with `data`, a list of `WorkspaceResource`, and `activeWorkspaceId` and `primaryWorkspaceId`. Each workspace has `id`, `name`, `slug`, `email`, `ownerId`, `plan`, `markUrl`, `wordmarkUrl` and `createdAt`, and `workspace['isOwner']` is `True` for the ones the person owns rather than joined.

**Example**

```python
from nextmail import nextmail

workspaces = nextmail.workspaces.list()

for workspace in workspaces['data']:
    opened = workspace['id'] == workspaces['activeWorkspaceId']
    print(workspace['name'], workspace['plan'], '(open in the app)' if opened else '')
```

**Notes**

- The key or the app still acts for its own workspace in every other call.

Also available in: API [`GET /workspaces`](https://nextmail.sh/docs/api/reference/workspaces#get-workspaces); TypeScript [`workspaces.list()`](https://nextmail.sh/docs/sdk/reference/workspaces#list); Ruby [`workspaces.list`](https://nextmail.sh/docs/ruby/reference/workspaces#list); PHP [`workspaces->list`](https://nextmail.sh/docs/php/reference/workspaces#list); Go [`Workspaces.List`](https://nextmail.sh/docs/go/reference/workspaces#list); Java [`workspaces().list`](https://nextmail.sh/docs/java/reference/workspaces#list); C# [`Workspaces.ListAsync`](https://nextmail.sh/docs/csharp/reference/workspaces#list); CLI [`nextmail workspaces list`](https://nextmail.sh/docs/cli/reference/workspaces#workspaces-list).

### `workspaces.create()`

Create a workspace

```python
def create(
    body: WorkspaceCreate,
    *,
    idempotency_key: str | None = None,
    api_key: str | None = None,
    timeout: float | None = None,
) -> CreatedWorkspaceResource
```

Makes a new workspace owned by the person, on the Starter plan, and makes it the workspace the app opens for them, as creating one in the app does. The key or the app making the call keeps acting for its own workspace.

An account can own one workspace on the Starter plan. While it owns one, the call is refused with 403 `workspace_allowance_reached` and the message names that workspace: upgrade it first.

Pass `idempotency_key=` to make a retry safe. A retry with the same key and the same body returns the workspace the first call made, with `replayed` set to `True`, and makes nothing new. The same key with a different body is a 422 `idempotency_key_reuse`. `keys.create` with `workspaceId` in its body then gives the new workspace a key of its own.

Scopes: `account:write`.

**Parameters**

- `body['name']` (`str`, required): Up to 64 characters. Leading and trailing spaces are trimmed.
- `idempotency_key` (`str`): Makes a retry safe: the same key with the same body returns the workspace the first call made, with `replayed` set to `True`. 1 to 255 letters, digits, `_`, `.`, `:` or `-`, and the same key with a different body is a 422 `idempotency_key_reuse`.
- `api_key` (`str`): Overrides the client's API key for this call only.
- `timeout` (`float`): Seconds this call may take, the response included, before it raises `NextmailNetworkError` with `is_timeout`. It overrides the client's `timeout` for this call, and `0` turns the limit off.

**Returns**

`CreatedWorkspaceResource` with `id`, `name`, `slug`, `active`, `True` for a new workspace and on a replay while the app still opens it, and `replayed`.

**Example**

```python
from nextmail import nextmail

workspace = nextmail.workspaces.create({'name': 'Acme Support'})

print(workspace['id'], workspace['slug'])
```

**Notes**

- Retried on network failure and retryable statuses only when `idempotency_key=` is given, because a retry can then only replay the first workspace. Without one it is not retried, and the same name sent twice within ten seconds still returns the workspace the first call made.

Also available in: API [`POST /workspaces`](https://nextmail.sh/docs/api/reference/workspaces#post-workspaces); TypeScript [`workspaces.create()`](https://nextmail.sh/docs/sdk/reference/workspaces#create); Ruby [`workspaces.create`](https://nextmail.sh/docs/ruby/reference/workspaces#create); PHP [`workspaces->create`](https://nextmail.sh/docs/php/reference/workspaces#create); Go [`Workspaces.Create`](https://nextmail.sh/docs/go/reference/workspaces#create); Java [`workspaces().create`](https://nextmail.sh/docs/java/reference/workspaces#create); C# [`Workspaces.CreateAsync`](https://nextmail.sh/docs/csharp/reference/workspaces#create); CLI [`nextmail workspaces create`](https://nextmail.sh/docs/cli/reference/workspaces#workspaces-create).

### `workspaces.get_active()`

Read the workspace the app opens

```python
def get_active(
    *,
    api_key: str | None = None,
    timeout: float | None = None,
) -> ActiveWorkspaceResource
```

Returns the workspace the app opens for the person when they sign in, or the one it falls back to when they never chose one. It is not the workspace the key or the app acts on, which never changes.

Scopes: `account:read`.

**Parameters**

- `api_key` (`str`): Overrides the client's API key for this call only.
- `timeout` (`float`): Seconds this call may take, the response included, before it raises `NextmailNetworkError` with `is_timeout`. It overrides the client's `timeout` for this call, and `0` turns the limit off.

**Returns**

`ActiveWorkspaceResource` with `id`, `name`, `slug`, `email` and `createdAt`. `workspace['isOwner']` is `True` when the person owns it.

**Example**

```python
from nextmail import nextmail

opened = nextmail.workspaces.get_active()

print(opened['name'], 'owner' if opened['isOwner'] else 'member')
```

Also available in: API [`GET /workspaces/active`](https://nextmail.sh/docs/api/reference/workspaces#get-workspaces-active); TypeScript [`workspaces.getActive()`](https://nextmail.sh/docs/sdk/reference/workspaces#getActive); Ruby [`workspaces.get_active`](https://nextmail.sh/docs/ruby/reference/workspaces#getActive); PHP [`workspaces->getActive`](https://nextmail.sh/docs/php/reference/workspaces#getActive); Go [`Workspaces.GetActive`](https://nextmail.sh/docs/go/reference/workspaces#getActive); Java [`workspaces().getActive`](https://nextmail.sh/docs/java/reference/workspaces#getActive); C# [`Workspaces.GetActiveAsync`](https://nextmail.sh/docs/csharp/reference/workspaces#getActive); CLI [`nextmail workspaces get-active`](https://nextmail.sh/docs/cli/reference/workspaces#workspaces-get-active).

### `workspaces.set_active()`

Choose the workspace the app opens

```python
def set_active(
    workspace_id: str,
    *,
    api_key: str | None = None,
    timeout: float | None = None,
) -> ActiveWorkspaceResource
```

Switches the workspace the app opens for the person, as the workspace switcher does, to any workspace they can open. It changes nothing for the key or the app making the call, which keeps acting for its own workspace.

Scopes: `account:write`.

**Parameters**

- `workspace_id` (`str`, required): A workspace id from `list`.
- `api_key` (`str`): Overrides the client's API key for this call only.
- `timeout` (`float`): Seconds this call may take, the response included, before it raises `NextmailNetworkError` with `is_timeout`. It overrides the client's `timeout` for this call, and `0` turns the limit off.

**Returns**

`ActiveWorkspaceResource` for the workspace the app opens now.

**Example**

```python
from nextmail import nextmail

opened = nextmail.workspaces.set_active('10417196-e324-4283-af98-66ec62167c47')

print('The app now opens', opened['name'])
```

**Notes**

- A workspace the person cannot open is a 404 `resource_not_found`.
- Retried automatically on network failure, since choosing the same workspace twice changes nothing.

Also available in: API [`PUT /workspaces/active`](https://nextmail.sh/docs/api/reference/workspaces#put-workspaces-active); TypeScript [`workspaces.setActive()`](https://nextmail.sh/docs/sdk/reference/workspaces#setActive); Ruby [`workspaces.set_active`](https://nextmail.sh/docs/ruby/reference/workspaces#setActive); PHP [`workspaces->setActive`](https://nextmail.sh/docs/php/reference/workspaces#setActive); Go [`Workspaces.SetActive`](https://nextmail.sh/docs/go/reference/workspaces#setActive); Java [`workspaces().setActive`](https://nextmail.sh/docs/java/reference/workspaces#setActive); C# [`Workspaces.SetActiveAsync`](https://nextmail.sh/docs/csharp/reference/workspaces#setActive); CLI [`nextmail workspaces set-active`](https://nextmail.sh/docs/cli/reference/workspaces#workspaces-set-active).

### `workspaces.delete()`

Delete a workspace

```python
def delete(
    id: str,
    *,
    confirm: str,
    api_key: str | None = None,
    timeout: float | None = None,
) -> DeletedWorkspaceResource
```

Deletes a workspace the account owns, with its domains, addresses, mail and members, and cancels its plan. It cannot be undone. `id` is the workspace the key or the app belongs to, or another one the account owns, such as one `create` made. `confirm=` has to be the name of the workspace, as `list` shows it, the same way the app asks the person to type it.

Only the owner may do it. An access token acting for a member is refused with 403 `owner_only`, and a key or an app limited to particular addresses or domains with 422 `capability_unsupported`. Another workspace takes a key with no role and no address or domain limit, made by the owner it acts for, or an app the owner connected with every address, or the call is 403 `beyond_caller_authority` on `id`. That workspace keeps its own rules: one that requires two-factor sign-in while the owner has neither an authenticator app nor a passkey is 403 `two_factor_required`, a suspended one 403 `workspace_suspended`, and a workspace the account does not own a 404. The first workspace an account made is refused with 409 `first_workspace`, and one with a domain being moved in or out with 409 `domain_moving`.

Scopes: `account:write`.

**Parameters**

- `id` (`str`, required): The workspace to delete: the one the key or the app belongs to, which `me.get` reports as `workspaceId`, or another one the account owns, by the id `list` or `create` returns.
- `confirm` (`str`, required): The name of the workspace. Letter case and the spaces around it do not matter. Sent as a query parameter.
- `api_key` (`str`): Overrides the client's API key for this call only.
- `timeout` (`float`): Seconds this call may take, the response included, before it raises `NextmailNetworkError` with `is_timeout`. It overrides the client's `timeout` for this call, and `0` turns the limit off.

**Returns**

`DeletedWorkspaceResource` with `id`, `deleted`, which is always `True`, and `activeWorkspaceId`, the workspace the app opens from now on.

**Example**

```python
from nextmail import nextmail

deleted = nextmail.workspaces.delete(
    '10417196-e324-4283-af98-66ec62167c47', confirm='Acme Support'
)

print(deleted['id'], deleted['deleted'], 'The app now opens', deleted['activeWorkspaceId'])
```

**Notes**

- An OAuth access token needs a verification code for this call, and is refused with 403 `step_up_required` until the app has verified one in the last 60 minutes. `is_step_up_required` on the error says so. An API key is never asked for a code.
- The key or the app that deletes its own workspace loses it, so every later call with it is refused. Deleting another workspace leaves the calling key as it was, and the keys of the deleted workspace stop working.
- Not retried automatically. A retry after a lost response is a 404, since the workspace is already gone.

Also available in: API [`DELETE /workspaces/{id}`](https://nextmail.sh/docs/api/reference/workspaces#delete-workspaces-id); TypeScript [`workspaces.delete()`](https://nextmail.sh/docs/sdk/reference/workspaces#delete); Ruby [`workspaces.delete`](https://nextmail.sh/docs/ruby/reference/workspaces#delete); PHP [`workspaces->delete`](https://nextmail.sh/docs/php/reference/workspaces#delete); Go [`Workspaces.Delete`](https://nextmail.sh/docs/go/reference/workspaces#delete); Java [`workspaces().delete`](https://nextmail.sh/docs/java/reference/workspaces#delete); C# [`Workspaces.DeleteAsync`](https://nextmail.sh/docs/csharp/reference/workspaces#delete); CLI [`nextmail workspaces delete`](https://nextmail.sh/docs/cli/reference/workspaces#workspaces-delete).

### `workspaces.get_ownership_offer()`

Read the offer to hand the workspace over

```python
def get_ownership_offer(
    id: str,
    *,
    api_key: str | None = None,
    timeout: float | None = None,
) -> OwnershipOfferResource
```

Returns the offer the owner made to hand the workspace to one of its members, while it waits: who it went to, when it was made, and when it ends unanswered, 7 days after it was made.

The app shows the offer to the owner alone, so it is a 404 `ownership_offer_not_found` when no offer is waiting and for anybody but the owner.

Scopes: `account:read`.

**Parameters**

- `id` (`str`, required): The id of the workspace the key or the app belongs to, which `me.get` reports as `workspaceId`. Any other id is a 404.
- `api_key` (`str`): Overrides the client's API key for this call only.
- `timeout` (`float`): Seconds this call may take, the response included, before it raises `NextmailNetworkError` with `is_timeout`. It overrides the client's `timeout` for this call, and `0` turns the limit off.

**Returns**

`OwnershipOfferResource`, a dict with `object` set to `ownership_offer`, `workspaceId`, `to` (`userId`, `name` and `email` of the member it went to), `offeredAt` and `expiresAt`.

**Example**

```python
from nextmail import nextmail

key = nextmail.me.get()
offer = nextmail.workspaces.get_ownership_offer(key['workspaceId'])

print('Offered to', offer['to']['email'], 'until', offer['expiresAt'])
```

**Notes**

- An API key acts for the workspace owner, so it reads the offer the owner made.

Also available in: API [`GET /workspaces/{id}/ownership-offer`](https://nextmail.sh/docs/api/reference/workspaces#get-workspaces-id-ownership-offer); TypeScript [`workspaces.getOwnershipOffer()`](https://nextmail.sh/docs/sdk/reference/workspaces#getOwnershipOffer); Ruby [`workspaces.get_ownership_offer`](https://nextmail.sh/docs/ruby/reference/workspaces#getOwnershipOffer); PHP [`workspaces->getOwnershipOffer`](https://nextmail.sh/docs/php/reference/workspaces#getOwnershipOffer); Go [`Workspaces.GetOwnershipOffer`](https://nextmail.sh/docs/go/reference/workspaces#getOwnershipOffer); Java [`workspaces().getOwnershipOffer`](https://nextmail.sh/docs/java/reference/workspaces#getOwnershipOffer); C# [`Workspaces.GetOwnershipOfferAsync`](https://nextmail.sh/docs/csharp/reference/workspaces#getOwnershipOffer); CLI [`nextmail workspaces get-ownership-offer`](https://nextmail.sh/docs/cli/reference/workspaces#workspaces-get-ownership-offer).

### `workspaces.offer_ownership()`

Offer the workspace to a member

```python
def offer_ownership(
    id: str,
    user_id: str,
    *,
    api_key: str | None = None,
    timeout: float | None = None,
) -> OwnershipOfferResource
```

Offers the workspace to one of its members, so they can become its owner and take over its plan and billing, as the owner can in the app. They are told by email and have 7 days to accept with `account.accept_ownership_offer`. Nothing changes until they do, and the owner then stays in the workspace as an admin.

A new offer replaces one that is waiting, and the person that one went to is told. The member has to have confirmed their email address and may not be a password sign-in for one address.

Only the workspace owner may make it, through an app they connected: an API key is refused with 403 `console_only`, an access token acting for a member with 403 `owner_only`, and an app limited to particular addresses or domains with 422 `capability_unsupported`, because the owner holds every address.

Scopes: `account:write`.

**Parameters**

- `id` (`str`, required): The id of the workspace the key or the app belongs to, which `me.get` reports as `workspaceId`. Any other id is a 404.
- `user_id` (`str`, required): The account id of the member who would become the owner, as `members.list` names it, not the email address.
- `api_key` (`str`): Overrides the client's API key for this call only.
- `timeout` (`float`): Seconds this call may take, the response included, before it raises `NextmailNetworkError` with `is_timeout`. It overrides the client's `timeout` for this call, and `0` turns the limit off.

**Returns**

`OwnershipOfferResource` with `to`, `offeredAt` and `expiresAt`.

**Example**

```python
from nextmail import nextmail

key = nextmail.me.get()
offer = nextmail.workspaces.offer_ownership(
    key['workspaceId'], 'q7Vd3kX9mT2pLw8RzN4bYc6HfJ1sGa5E'
)

print(offer['to']['email'], 'has until', offer['expiresAt'], 'to accept')
```

**Notes**

- Somebody who is not a member is 422 `member_not_found` on `userId`, and the owner themselves 422 `invalid_parameter`. A member who has not confirmed their email address, or whose account is suspended, is 409 `ownership_not_eligible`, and a password sign-in for one address is 403 `mailbox_login`. While a domain is being moved into or out of the workspace the call is 409 `domain_moving`.
- An OAuth access token needs a verification code for this call, and is refused with 403 `step_up_required` until the app has verified one in the last 60 minutes. `is_step_up_required` on the error says so. A key cannot give a code, which is why an API key is refused with 403 `console_only` and the change is made in the console.
- Not retried automatically, since every attempt emails the member. The success status is 201.

Also available in: API [`POST /workspaces/{id}/ownership-offer`](https://nextmail.sh/docs/api/reference/workspaces#post-workspaces-id-ownership-offer); TypeScript [`workspaces.offerOwnership()`](https://nextmail.sh/docs/sdk/reference/workspaces#offerOwnership); Ruby [`workspaces.offer_ownership`](https://nextmail.sh/docs/ruby/reference/workspaces#offerOwnership); PHP [`workspaces->offerOwnership`](https://nextmail.sh/docs/php/reference/workspaces#offerOwnership); Go [`Workspaces.OfferOwnership`](https://nextmail.sh/docs/go/reference/workspaces#offerOwnership); Java [`workspaces().offerOwnership`](https://nextmail.sh/docs/java/reference/workspaces#offerOwnership); C# [`Workspaces.OfferOwnershipAsync`](https://nextmail.sh/docs/csharp/reference/workspaces#offerOwnership); CLI [`nextmail workspaces offer-ownership`](https://nextmail.sh/docs/cli/reference/workspaces#workspaces-offer-ownership).

### `workspaces.withdraw_ownership_offer()`

Withdraw the offer to hand the workspace over

```python
def withdraw_ownership_offer(
    id: str,
    *,
    api_key: str | None = None,
    timeout: float | None = None,
) -> WithdrawnOwnershipOfferResource
```

Withdraws the offer before it is answered, and the person it went to is told. `withdrawn` is `False` when no offer was waiting, and then nothing changes.

Only the workspace owner may withdraw it, through an app they connected: an API key is refused with 403 `console_only`, an access token acting for a member with 403 `owner_only`, and an app limited to particular addresses or domains with 422 `capability_unsupported`, because the owner holds every address.

Scopes: `account:write`.

**Parameters**

- `id` (`str`, required): The id of the workspace the key or the app belongs to, which `me.get` reports as `workspaceId`. Any other id is a 404.
- `api_key` (`str`): Overrides the client's API key for this call only.
- `timeout` (`float`): Seconds this call may take, the response included, before it raises `NextmailNetworkError` with `is_timeout`. It overrides the client's `timeout` for this call, and `0` turns the limit off.

**Returns**

`WithdrawnOwnershipOfferResource`, a dict with `object` set to `ownership_offer`, `workspaceId` and `withdrawn`.

**Example**

```python
from nextmail import nextmail

key = nextmail.me.get()
result = nextmail.workspaces.withdraw_ownership_offer(key['workspaceId'])

print('Offer withdrawn' if result['withdrawn'] else 'No offer was waiting')
```

**Notes**

- An access token is asked for no verification code here, since withdrawing an offer only keeps the workspace with its owner. An API key is refused with 403 `console_only` all the same, as it is for offering, accepting and declining.
- Not retried automatically. A second call after a lost response answers `withdrawn` set to `False` and changes nothing.

Also available in: API [`DELETE /workspaces/{id}/ownership-offer`](https://nextmail.sh/docs/api/reference/workspaces#delete-workspaces-id-ownership-offer); TypeScript [`workspaces.withdrawOwnershipOffer()`](https://nextmail.sh/docs/sdk/reference/workspaces#withdrawOwnershipOffer); Ruby [`workspaces.withdraw_ownership_offer`](https://nextmail.sh/docs/ruby/reference/workspaces#withdrawOwnershipOffer); PHP [`workspaces->withdrawOwnershipOffer`](https://nextmail.sh/docs/php/reference/workspaces#withdrawOwnershipOffer); Go [`Workspaces.WithdrawOwnershipOffer`](https://nextmail.sh/docs/go/reference/workspaces#withdrawOwnershipOffer); Java [`workspaces().withdrawOwnershipOffer`](https://nextmail.sh/docs/java/reference/workspaces#withdrawOwnershipOffer); C# [`Workspaces.WithdrawOwnershipOfferAsync`](https://nextmail.sh/docs/csharp/reference/workspaces#withdrawOwnershipOffer); CLI [`nextmail workspaces withdraw-ownership-offer`](https://nextmail.sh/docs/cli/reference/workspaces#workspaces-withdraw-ownership-offer).
