---
title: "List workspaces"
description: "The workspaces this credential can act on, the default first, with the scopes it has in each."
canonical: "https://lookio.app/docs/api/workspaces/list-workspaces"
updated: "2026-12-04"
---

# List workspaces

An OAuth connection approved for **All my workspaces** lists every active workspace you belong to. Send a workspace's `id` in the `x-lookio-workspace` header to act on it, or as `workspace_id` on an MCP tool. Without either, the request uses the default workspace, marked `default: true`.

An API key or a single-workspace connection lists its own workspace only. It refuses the header for any other workspace with `feature_not_available`.

Needs no particular scope. It changes nothing and costs no credits. `scopes` is what this credential may do in that workspace: the scopes granted at consent, narrowed by your role there.

```http
GET https://api.lookio.app/v1/workspaces
```

## Authorizations

- `Authorization` (bearer, in header, required)

## Response

**200**: List the workspaces this credential can act on

- `data` (`object`, required)
- `data.workspaces` (`object[]`, required)
- `data.workspaces.id` (`string`, required)
- `data.workspaces.name` (`string`, required)
- `data.workspaces.slug` (`string`, required)
- `data.workspaces.role` (`enum<string>`, required, one of: `admin, member, service`)
- `data.workspaces.default` (`boolean`, required)
- `data.workspaces.scopes` (`enum<string>[]`, required)
- `request_id` (`string`, required)

```json
{
  "data": {
    "workspaces": [
      {
        "id": "<string>",
        "name": "<string>",
        "slug": "<string>",
        "role": "admin",
        "default": true,
        "scopes": [
          "account:read"
        ]
      }
    ]
  },
  "request_id": "<string>"
}
```

**401**: Possible codes: authentication_required, invalid_api_key, api_key_expired, api_key_revoked, invalid_access_key

- `error` (`object`, required)
- `error.type` (`string`, required)
- `error.code` (`string`, required)
- `error.message` (`string`, required)
- `error.param` (`string`)
- `error.docs_url` (`string`, required)
- `error.action_url` (`string<uri>`)
- `request_id` (`string`, required)

```json
{
  "error": {
    "type": "<string>",
    "code": "<string>",
    "message": "<string>",
    "param": "<string>",
    "docs_url": "<string>",
    "action_url": "<string>"
  },
  "request_id": "<string>"
}
```

**429**: Possible codes: rate_limited

- `error` (`object`, required)
- `error.type` (`string`, required)
- `error.code` (`string`, required)
- `error.message` (`string`, required)
- `error.param` (`string`)
- `error.docs_url` (`string`, required)
- `error.action_url` (`string<uri>`)
- `request_id` (`string`, required)

```json
{
  "error": {
    "type": "<string>",
    "code": "<string>",
    "message": "<string>",
    "param": "<string>",
    "docs_url": "<string>",
    "action_url": "<string>"
  },
  "request_id": "<string>"
}
```

**500**: Possible codes: internal_error

- `error` (`object`, required)
- `error.type` (`string`, required)
- `error.code` (`string`, required)
- `error.message` (`string`, required)
- `error.param` (`string`)
- `error.docs_url` (`string`, required)
- `error.action_url` (`string<uri>`)
- `request_id` (`string`, required)

```json
{
  "error": {
    "type": "<string>",
    "code": "<string>",
    "message": "<string>",
    "param": "<string>",
    "docs_url": "<string>",
    "action_url": "<string>"
  },
  "request_id": "<string>"
}
```

**Example request**

```bash
curl --request GET \
  --url 'https://api.lookio.app/v1/workspaces' \
  --header 'Authorization: <api-key>'
```
