> For the complete documentation index, see [llms.txt](https://help-api.meltingspot.io/llms.txt)

# Count the members of a spot

> GET /v1/spotMembers~count
> 
> Count the members of a spot, with the same filters as GET /spotMembers. With groupBy, the count is also split by a single dimension: status, role, customRole, registeredMonth, invitedMonth or group.



## Servers
- https://openapi.meltingspot.io: https://openapi.meltingspot.io



## Parameters


### Query parameters

- **email** (object)
  Filters on emails of Spot member to include in the result

- **firstname** (object)
  Filters on firstnames of Spot member to include in the result

- **lastname** (object)
  Filters on lastname of Spot member to include in the result

- **role** (object)
  Filters on role of Spot member to include in the result

- **customRoleId** (object)
  Filters on custom role ID of Spot member to include in the result

- **status** (object)
  Filters on status of Spot member to include in the result

- **invitationDate** (object)
  Filters on invitation date of Spot member

- **registrationDate** (object)
  Filters on registration date of Spot member

- **updatedAt** (object)
  Filters on updated date of Spot member

- **groupId** (object)
  Filter on a group of the spot member

- **withoutGroup** (boolean)
  Only the members in no group (deleted groups do not count). Cannot be given with groupId[eq].

- **lastActivityDate** (object)
  Filters on the last activity date of Spot member

- **groupBy** (string)
  Single dimension to split the count by: status, role (base role, whatever the custom role), customRole, registeredMonth or invitedMonth (UTC month, YYYY-MM), group (deleted groups left out; a member of several groups counts in each, so the counts may sum up to more than total). By month: every non empty month ascending, then the members without date (null key). By any other dimension: the 100 biggest values first, ties broken by key; null key for the members without custom role or in no group. Totals only when omitted.



## Responses
### 200
Spot members counted successfully

#### Body: application/json (object)
- **total** (number)
  Number of members matching the filters. By group, the counts may sum up to more: a member of several groups counts in each.

- **items** (array[object])
  Counts by value of the groupBy dimension. Empty without it.


### 400
Malformed payload, unknown groupBy, groupId[eq] along with withoutGroup

### 401
Unauthorized

### 403
Forbidden


[Powered by Bump.sh](https://bump.sh)
