---
title: "Pin a workspace"
method: POST
path: "/api/workspaces/{slug}/pin"
tags: ["Workspaces"]
---

# Pin a workspace

`POST /api/workspaces/{slug}/pin`

## Request

- Base URL: `https://trydock.ai`
- URL: `https://trydock.ai/api/workspaces/{slug}/pin`
- Auth: HTTP bearer

Personal pin. Writes `WorkspaceMember.pinnedAt = now`. The sidebar Pinned section orders by pinnedAt desc. Pin is per-user; one user pinning doesn't pin for the whole org. Requires an actual membership row (org-visibility virtual viewers can't pin).

## Path parameters

- `slug` string, required

## Response `200`

Pinned.

- object
  - `workspaceId` string, required
  - `slug` string, required
  - `pinnedAt` string, date-time, required

---

[API](https://skmtc.dev/trydock/apis/dock-rest-api.md) - [All operations](https://skmtc.dev/trydock/apis/dock-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/trydock/apis/dock-rest-api/revisions/dd96ae96a412?raw)
