Skip to content

client

Count the client roster's tabs

GET/v1/clients/roster-counts

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.

Parameters

NameInRequiredTypeDescription
searchqueryNostring—
searchTermsqueryNostring—
accountTypeIdsqueryNostring—
ownerIdsqueryNostring—
frameworkIdsqueryNostring—
statusesqueryNostring—
statusesJsonqueryNostring—

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.

View the OpenAPI 3.1 source

Need help with the API? …