List projects
Projects in an organization with status, billable default and client.
GET https://cotlet.dev/api/v1/hubstaff/organizations/{organization_id}/projects
read
Lists projects with their ID, name, status and whether new time is billable by default. Filter by status to leave out archived projects. Use the project IDs when you add time, create tasks or change members.
Parameters
| Name | Type | Description |
|---|---|---|
| organization_id integer required | integer | Organization ID from list_organizations. |
| status string | string | active, archived or all. Default: active. |
| limit integer | integer | 1 to 100. Default: 50. |
| cursor string | string | Next page cursor from the previous call. |
Request
curl https://cotlet.dev/api/v1/hubstaff/organizations/1/projects \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("hubstaff", "list_projects", {"organization_id":1}) const result = await cotlet.call('hubstaff', 'list_projects', {"organization_id":1}); cotlet call hubstaff list_projects --data '{"organization_id":1}' Example response
{
"projects": [
{
"project_id": 90311,
"name": "Support rota",
"status": "active",
"billable": true,
"client_id": null
},
{
"project_id": 90355,
"name": "Brand refresh",
"status": "active",
"billable": true,
"client_id": 7712
}
],
"next_cursor": null
}