projects
List projects
Retrieve a paginated list of projects in your workspace.
Use this to build project management dashboards or to enumerate projects for administrative purposes. Results are ordered by project id and returned in pages. When hasMore is true, pass the returned cursor to fetch the next page.
Required Permissions
Your root key must have the following permission:
- project.*.read_project (to read projects in your workspace)
post/v2/projects.listProjects
Request body
Example request
{
"cursor": "proj_1234abcd",
"search": "billing-service"
}Response
Successfully retrieved a paginated list of projects. Use the pagination cursor for additional results when hasMore: true.
Example response
{
"meta": {
"requestId": "req_123"
},
"data": [
{
"id": "proj_1234abcd",
"name": "Payments Service",
"slug": "payments-service",
"createdAt": 1704067200000,
"updatedAt": 1704153600000
}
],
"pagination": {
"cursor": "eyJrZXkiOiJrZXlfMTIzNCIsInRzIjoxNjk5Mzc4ODAwfQ==",
"hasMore": true
}
}