Pennykite

projects.list

List projects in a workspace

Returns one page of active or archived projects for a workspace you belong to. `search` matches project names case-insensitively, `sort` is limited to `newest` and `name`, and `pageSize` is capped at 50.

Transport: POST /api/rpc/projects/list using the oRPC RPC protocol. Call it through the typed client in app/sdk/client.ts; the request must be same-origin and carry a verified session cookie.

Input

projects.list input fields
FieldTypeRequiredNotes
workspaceIdstringyesmin length 1
searchstringnodefault ""; max length 120
pageintegernodefault 1; min 1; max 10000
pageSizeintegernodefault 25; min 1; max 50
sort"name" | "newest"nodefault "newest"
archivedbooleannodefault false

Output

projects.list output fields
FieldTypeRequiredNotes
itemsobject[]yes
items[].namestringyesmin length 1; max length 120
items[].descriptionstringyesdefault ""; max length 4000
items[].idstringyes
items[].workspaceIdstringyes
items[].archivedbooleanyes
items[].versionintegeryesmin -9007199254740991; max 9007199254740991
items[].createdAtstring (ISO 8601 date-time, UTC)yes
items[].updatedAtstring (ISO 8601 date-time, UTC)yes
totalnumberyes
pagenumberyes
pageSizenumberyes

Errors

CodeStatusWhen
UNAUTHENTICATED401No verified session was sent with the request.
FORBIDDEN403You are not an active member of this workspace, or your role does not allow the action.
NOT_FOUND404No project with this ID exists in the workspace.
CONFLICT409The record changed since you loaded it; reload and try again.
QUOTA_EXCEEDED403The workspace already holds its maximum number of projects (archived projects count).

Was this page helpful?

On this page