Skip to content

List Clients

This endpoint returns a page of clients for the authenticated account.

GET /v1/clients/clients

Include your API key in the x-api-key header. See Authentication.

clients:read
ParameterTypeRequiredDescription
archivedstringNo"true" returns only archived clients. Any other value, or no value, returns only clients that are not archived.
allstringNo"true" returns archived and non-archived clients. When set, archived is ignored.
pagestringNo0-based page index. Defaults to 0. A non-numeric value is treated as 0.
pageSizestringNoNumber of clients per page. Defaults to 25. There is no maximum.
sortColstringNoOne of clientName, clientDescription, createdAt, updatedAt. Requires sortDir. Invalid values are ignored.
sortDirstringNoasc or desc (not case-sensitive). Requires sortCol. Invalid values are ignored.

See Pagination for paging and sorting rules.

This endpoint does not accept a request body.

Terminal window
curl "https://api.crewsum.com/v1/clients/clients?page=0&pageSize=25&sortCol=clientName&sortDir=asc" \
-H "x-api-key: $CREWSUM_API_KEY"

On success, the API returns HTTP 200 OK.

{
"message": "Successfully fetched clients",
"data": {
"clients": [
{
"id": "client-ghi123jkl4567890",
"name": "Client Name",
"description": "A brief description of the client",
"isArchived": false,
"createdAt": "2026-01-05T15:30:00.000Z",
"updatedAt": "2026-02-10T09:12:00.000Z",
"isDeleted": false,
"customFields": {
"region": "west"
}
}
],
"count": 1
}
}
  • data.clients holds the current page. data.count is the total number of clients that match the filters, across all pages.
  • Deleted clients are never returned.
  • Without a valid sortCol and sortDir pair, clients are sorted by updatedAt descending, then createdAt descending. Clients that were never updated (updatedAt: null) sort last.
  • updatedAt is null for clients that were never updated.
  • customFields is always present. It is {} when the client has no custom fields.
StatusMeaning
500{"message": "Error fetching clients"}. Crewsum could not fetch clients.

Authentication and scope failures are described in Errors.

This endpoint does not trigger a webhook.