---
title: "The workspaces the caller can see, with their role in each"
method: GET
path: "/workspaces"
tags: ["workspaces"]
---

# The workspaces the caller can see, with their role in each

`GET /workspaces`

## Request

- Base URL: `https://api.swingfactor.ai/v1`
- URL: `https://api.swingfactor.ai/v1/workspaces`
- Auth: HTTP bearer

## Response `200`

Them.

- WorkspaceList
  - `items` Workspace[], required
    - `id` string, uuid, required
    - `name` string, required
    - `ownerId` string, uuid, required
    - `myRole` 'owner' | 'editor' | 'viewer', required
    - `createdAt` string, required
    - `updatedAt` string, required
    - `links` WorkspaceLinks, required: Relative /v1 URLs to follow.
      - `self` string, required
      - `members` string, required
      - `invitations` string, required
      - `entitlements` string, required
      - `export` string, required
      - `questions` string, required
      - `content` string, required
  - `total` integer, required
  - `offset` integer, required
  - `limit` integer, required

## Other responses

- `401`: No token, or not a valid one: `unauthorized`.

---

[API](https://skmtc.dev/swingfactor/apis/swingfactor-api.md) · [All operations](https://skmtc.dev/swingfactor/apis/swingfactor-api/llms.txt) · [OpenAPI document](https://skmtc.dev/swingfactor/apis/swingfactor-api/revisions/c2fe881a39c3?raw)
