Skip to content
developers
Open TestCollab

Count builds

GET/builds/count

Get count of builds for a specific project

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

example.ts
import { createConfiguration, BuildsApi } from '@testcollab/sdk';
const config = createConfiguration(process.env.TESTCOLLAB_TOKEN!);
const api = new BuildsApi(config);
const result = await api.countBuilds({
"project": 123
});
console.log(result);
Name Location Type Required Description
project query number Yes Project ID
environment query string No Filter by exact environment name
_filter query string No Stringified filter object

200 — Count of builds

Field Type Required Description
count number Yes —
Illustrative response
{
"count": 123
}
Status Meaning
401 Unauthorized
403 Forbidden
500 Internal server error