---
title: "List workspaces of the current user"
method: GET
path: "/api/v1/workspaces"
tags: ["Workspaces"]
---

# List workspaces of the current user

`GET /api/v1/workspaces`

## Request

- Base URL: `https://otprun.com`
- URL: `https://otprun.com/api/v1/workspaces`
- Auth: HTTP bearer

## Query parameters

- `cursor` string
- `limit` integer

## Response `200`

OK

- PageOutputBody
  - `items` WorkspaceBody[], nullable, required
    - `created_at` string, date-time, required
    - `id` integer, required
    - `members_count` integer, required
    - `name` string, required
    - `plan` 'free' | 'starter' | 'growth' | 'scale', required
    - `role` 'owner' | 'admin' | 'developer' | 'viewer', required
    - `slug` string, required
    - `trial_ends_at` string, date-time, nullable, required
    - `updated_at` string, date-time, required
  - `next_cursor` string

## Other responses

- `422`: Unprocessable Entity
- `500`: Internal Server Error

---

[API](https://skmtc.dev/otprun/apis/otp-run-api.md) · [All operations](https://skmtc.dev/otprun/apis/otp-run-api/llms.txt) · [OpenAPI document](https://skmtc.dev/otprun/apis/otp-run-api/revisions/43d40d5f4050?raw)
