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

# Get a workspace

`GET /v1/workspaces/{workspace_id}`

## Request

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

The workspace's name, the caller's role in it and its default region (where new resources go).

## Path parameters

- `workspace_id` integer, required

## Response `200`

OK

- Workspace: A workspace the caller can act in
  - `workspace_id` integer, required
  - `workspace_name` string, required
  - `role` 'viewer' | 'editor' | 'owner', required
  - `default_region` 'besg' | 'usnv', required

## Other responses

- `400`: Bad Request
- `403`: Forbidden

---

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