Skip to content
developers
Open TestCollab

Get tasks' count

GET/tasks/count

Get tasks’ count for a specific company

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

example.ts
import { createConfiguration, TasksApi } from '@testcollab/sdk';
const config = createConfiguration(process.env.TESTCOLLAB_TOKEN!);
const api = new TasksApi(config);
const result = await api.getTaskCount({
"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 tasks

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