client
Count the client roster's tabs
/v1/clients/roster-countsCounts 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.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| search | query | No | string | — |
| searchTerms | query | No | string | — |
| accountTypeIds | query | No | string | — |
| ownerIds | query | No | string | — |
| frameworkIds | query | No | string | — |
| statuses | query | No | string | — |
| statusesJson | query | No | string | — |
Request body
No request body.
Responses and errors
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
curl --request GET \
--url 'https://api.scopable.io/v1/clients/roster-counts' \
--header 'Authorization: Bearer $SCOPABLE_API_KEY'Replace $SCOPABLE_API_KEY with a key created in Settings, API.
Need help with the API? …