# Count the client roster's tabs

Counts the caller's visible clients for each roster tab (all, active, at risk, sync issues, onboarding) under the same search, search terms and filters the roster applies. Search matches client name, contact, email, website, industry and city, plus clients whose owner or compliance framework matches. Search terms is a JSON array of up to 10 strings, applied together with search: a client must match search and every term, and each term may match in a different field. Filters are comma-separated lists. Use statusesJson, a JSON array, for status values containing commas.

**GET** /v1/clients/roster-counts



## Parameters
- search (query): string
- searchTerms (query): string
- accountTypeIds (query): string
- ownerIds (query): string
- frameworkIds (query): string
- statuses (query): string
- statusesJson (query): string

## Request body
No request body.

## Responses
- **200** Count the client roster's tabs — all (required): integer; active (required): integer; atRisk (required): integer; syncIssues (required): integer; onboarding (required): integer
- **400** Error envelope. `error.code` carries the typed outcome and `error.type` resolves to its description. — ValidationFailedError:; allOf: ErrorEnvelope
- **401** Error envelope. `error.code` carries the typed outcome and `error.type` resolves to its description. — UnauthorizedError:; allOf: ErrorEnvelope
- **403** Error envelope. `error.code` carries the typed outcome and `error.type` resolves to its description. — ForbiddenError:; allOf: ErrorEnvelope
- **429** Error envelope. `error.code` carries the typed outcome and `error.type` resolves to its description. — RateLimitedError:; allOf: ErrorEnvelope
- **503** Error envelope. `error.code` carries the typed outcome and `error.type` resolves to its description. — UnavailableError:; allOf: ErrorEnvelope

## Example
```bash
curl --request GET \
  --url 'https://api.scopable.io/v1/clients/roster-counts' \
  --header 'Authorization: Bearer $SCOPABLE_API_KEY'
```

OpenAPI source: https://api.scopable.io/v1/openapi.json