List your pinned projects
Your pinned projects in a workspace, in your order (position 0 first): the ones its sidebar keeps at the top for you.
GET
/user/pinned_projects/{workspace}Projects you can no longer see are left out. Your own: a personal access token or a session.
In your order: position 0 first. The sidebar shows these, then the projects you opened last. pushed_at is null until the project’s repository is pushed to.
- Authentication: Required. Send an access token as
Authorization: Bearer. - MCP tool:
workspacewithactionlist_pinned_projects, and the same inputs - Scope: An access token needs
account:read.
Path parameters
Section titled “Path parameters”| Name | Type | Required | Description |
|---|---|---|---|
workspace |
string | Yes | The workspace’s slug, e.g. “flagon-io”. |
Example request
Section titled “Example request”curl https://api.g1t.sh/user/pinned_projects/flagon-io \ -H "Authorization: Bearer $G1T_TOKEN"Example response
Section titled “Example response”A successful request answers 200 with:
[ { "position": 0, "id": "prj_01kkp3m8w2f6t9qh4c7d1r5n0x", "workspace": "flagon-io", "slug": "g1t", "name": "g1t", "description": null, "private": false, "archived": false, "kind": "app", "url": "https://g1t.sh/flagon-io/g1t", "pushed_at": "2026-10-07T10:00:00.000Z", "updated_at": "2026-10-01T09:12:00.000Z" }, { "position": 1, "id": "prj_01kkq0c4d9h2w7rn5f8t3k6p2z", "workspace": "flagon-io", "slug": "lab-api", "name": "lab-api", "description": null, "private": true, "archived": false, "kind": "app", "url": "https://g1t.sh/flagon-io/lab-api", "pushed_at": "2026-10-06T18:40:00.000Z", "updated_at": "2026-10-01T09:12:00.000Z" }, { "position": 2, "id": "prj_01kkp3n2a7e5v8sk3b6g9j4m1y", "workspace": "flagon-io", "slug": "hello", "name": "hello", "description": "Greets people from the command line.", "private": false, "archived": false, "kind": "library", "url": "https://g1t.sh/flagon-io/hello", "pushed_at": null, "updated_at": "2026-10-01T09:12:00.000Z" }]Errors
Section titled “Errors”A failed request answers with one of these statuses and a body like {"error": {"code": "not_found", "message": "Repository not found."}}. See errors.
| Status | Code | When |
|---|---|---|
| 401 | unauthenticated |
A token is required, or the one sent is not valid. |
| 403 | forbidden |
The token is valid but not allowed to do this, such as a member-only change or an agent token outside its repository. |
| 404 | not_found |
It does not exist, or you cannot see it. |
| 422 | invalid |
The input is not valid. message says which field and why. |