---
title: "POST /api/rep/dashboard/workspaces"
method: POST
path: "/api/rep/dashboard/workspaces"
tags: ["Rep Dashboard"]
---

# POST /api/rep/dashboard/workspaces

`POST /api/rep/dashboard/workspaces`

## Request

- Base URL: `https://idkrx.com`
- URL: `https://idkrx.com/api/rep/dashboard/workspaces`
- Auth: API key in cookie `authjs.session-token`

Switch active workspace

## Request body

- object
  - `workspaceId` string, required

## Response `200`

Workspace switched

## Other responses

- `400`: Invalid request
- `401`: Unauthorized

---

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