Count the members of a spot

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://help-api.meltingspot.io/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "API MCP server": {
    "url": "https://help-api.meltingspot.io/mcp"
  }
}

Close
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.

Query parameters

  • email object

    Filters on emails of Spot member to include in the result

    Hide email attribute Show email attribute object
    • email[in] array[string]

      The emails of spot member to include in the result

  • firstname object

    Filters on firstnames of Spot member to include in the result

    Hide firstname attribute Show firstname attribute object
    • firstname[in] array[string]

      The firstnames of spot member to include in the result

  • lastname object

    Filters on lastname of Spot member to include in the result

    Hide lastname attribute Show lastname attribute object
    • lastname[in] array[string]

      The lastnames of spot member to include in the result

  • role object

    Filters on role of Spot member to include in the result

    Hide role attribute Show role attribute object
    • role[in] array[string]

      The roles of spot member to include in the result

      Values are Member or Admin.

  • customRoleId object

    Filters on custom role ID of Spot member to include in the result

    Hide customRoleId attribute Show customRoleId attribute object
    • customRoleId[eq] string

      The custom role ID of Spot member

  • status object

    Filters on status of Spot member to include in the result

    Hide status attribute Show status attribute object
    • status[in] array[string]

      The status of spot member to include in the result

      Values are Accepted, Deactivated, DeclinedInvitation, Invited, Left, Pending, or Rejected.

  • invitationDate object

    Filters on invitation date of Spot member

    Hide invitationDate attributes Show invitationDate attributes object
    • invitationDate[before] integer

      Spot members where invitation date is before a specific date (Unix timestamp format)

    • invitationDate[after] integer

      Spot members where invitation date is after a specific date (Unix timestamp format)

  • registrationDate object

    Filters on registration date of Spot member

    Hide registrationDate attributes Show registrationDate attributes object
    • registrationDate[before] integer

      Spot members where registration date is before a specific date (Unix timestamp format)

    • registrationDate[after] integer

      Spot members where registration date is after a specific date (Unix timestamp format)

  • updatedAt object

    Filters on updated date of Spot member

    Hide updatedAt attributes Show updatedAt attributes object
    • updatedAt[before] integer

      Spot members where updated date is before a specific date (Unix timestamp format)

    • updatedAt[after] integer

      Spot members where updated date is after a specific date (Unix timestamp format)

  • groupId object

    Filter on a group of the spot member

    Hide groupId attribute Show groupId attribute object
    • groupId[eq] string(uuid)

      Only the members of this group. A group of another spot gives an empty list.

  • 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

    Hide lastActivityDate attributes Show lastActivityDate attributes object
    • lastActivityDate[before] integer

      Spot members whose last activity date is before a specific date (Unix timestamp format). A member without activity never matches.

    • lastActivityDate[after] integer

      Spot members whose last activity date is after a specific date (Unix timestamp format). A member without activity never matches.

  • 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.

    Values are role, status, customRole, registeredMonth, invitedMonth, or group.

Responses

  • 200 application/json

    Spot members counted successfully

    Hide response attributes Show response attributes object
    • total number Required

      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] Required

      Counts by value of the groupBy dimension. Empty without it.

      Hide items attributes Show items attributes object
      • key string | null Required

        Value of the dimension: status, role, custom role id, month (YYYY-MM, UTC) or group id. Null for the members without custom role, without date or in no group.

      • label string | null Required

        Readable value: the key itself, the label of the custom role or the name of the group. Null along with the key.

      • count number Required

        Number of members of this value.

  • 400

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

  • 401

    Unauthorized

  • 403

    Forbidden

GET /v1/spotMembers~count
curl \
 --request GET 'https://openapi.meltingspot.io/v1/spotMembers~count'
Response examples (200)
{
  "total": 42.0,
  "items": [
    {
      "key": "string",
      "label": "string",
      "count": 42.0
    }
  ]
}