Skip to content
developers
Open TestCollab

Get projects' count

GET/projects/count

Get projects’ count

Use resource IDs from your own project. Keep the API token in your server or CI environment.

example.ts
import { createConfiguration, ProjectsApi } from '@testcollab/sdk';
const config = createConfiguration(process.env.TESTCOLLAB_TOKEN!);
const api = new ProjectsApi(config);
const result = await api.getProjectCount({
"company": 123
});
console.log(result);
Name Location Type Required Description
company query integer Yes Company ID
_filter query string No Stringified filter object (the filtering guide)

200 — Count of projects

Field Type Required Description
count number Yes —
Illustrative response
{
"count": 123
}
Status Meaning
403 Forbidden