Skip to content
developers
Open TestCollab

Get users' count

GET/users/count

Get users’ 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, UsersApi } from '@testcollab/sdk';
const config = createConfiguration(process.env.TESTCOLLAB_TOKEN!);
const api = new UsersApi(config);
const result = await api.getUsersCount({
"company": 123
});
console.log(result);
Name Location Type Required Description
company query number Yes Company ID
_filter query string No Stringified filter object (the filtering guide)

200 — Count of users

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