---
title: "List workspaces"
description: "The workspaces you belong to, with your role in each and their live domains."
canonical_url: https://docs.markdrop.in/api/workspaces/list-workspaces
last_updated: 2026-10-30
site: "Markdrop Docs"
index: https://docs.markdrop.in/llms.txt
---

# List workspaces

`GET https://api.markdrop.in/api/v1/workspaces`

The workspaces you belong to, with your role in each and their live domains.

- **Authentication:** API token required: `Authorization: Bearer mdk_…`.
- **Rate limit:** 60 per minute per IP address.
- **CLI:** `markdrop workspaces`
- **MCP tool:** `list_workspaces` ([tools](https://docs.markdrop.in/ai/tools))

## Responses

- `200`: OK.
  - `workspaces` (array of object)
    - `id` (string)
    - `name` (string)
    - `owner_id` (string)
    - `created_at` (string (date-time)): ISO 8601, for example `2026-11-30T12:00:00Z`.
    - `updated_at` (string (date-time)): ISO 8601, for example `2026-11-30T12:00:00Z`.
    - `branding` (object): Every field optional — an unset workspace looks exactly like Markdrop.
    - `settings` (object)
    - `role` ("owner" | "admin" | "member" | "viewer")
    - `primary_host` (string | null)
    - `domains` (array of object)
    - `default_access` (string): Default `"workspace"`.
    - `privacy` (string): Default `"custom"`.
    - `member_count` (integer): Default `0`.
    - `pending_invite_count` (integer): Default `0`.
    - `domain_count` (integer): Default `0`.
- `401`: No token, or the token is revoked or mistyped.
- `429`: Too many requests from your IP address. Wait the seconds in `Retry-After`.

## Examples

**curl**

```bash
curl https://api.markdrop.in/api/v1/workspaces \
  -H "Authorization: Bearer $MARKDROP_TOKEN"
```

**JavaScript**

```javascript
const res = await fetch("https://api.markdrop.in/api/v1/workspaces", {
  headers: {
    Authorization: `Bearer ${process.env.MARKDROP_TOKEN}`,
  },
});
const data = await res.json();
```

**Python**

```python
import os

import requests

r = requests.get(
    "https://api.markdrop.in/api/v1/workspaces",
    headers={"Authorization": f"Bearer {os.environ['MARKDROP_TOKEN']}"},
)
r.raise_for_status()
print(r.json())
```

**CLI**

```bash
markdrop workspaces
```
