---
title: "Get a workspace"
method: GET
path: "/api/v1/workspaces/{workspaceId}"
tags: ["Workspaces"]
---

# Get a workspace

`GET /api/v1/workspaces/{workspaceId}`

## Request

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

## Path parameters

- `workspaceId` integer, required

## Response `200`

OK

- WorkspaceBody
  - `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

## Other responses

- `404`: Not Found
- `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)
