List the members of a spot with their number of activities over a period of 366 days at most

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/activities/members

List the members of a spot with their number of activities over a period of 366 days at most, the most active first by default. Every member of the spot (of the filtered groups and roles) is listed, whatever its status: the members without activity over the period have a count of 0. The list is sorted by number of activities or by last activity date of the member, ascending or descending.

Query parameters

  • occurredAt object

    Period of the activities. Both bounds are required (occurredAt[after] and occurredAt[before]) and included.

    Hide occurredAt attributes Show occurredAt attributes object
    • occurredAt[after] integer

      Start of the period, included: only the activities which occurred at or after this date (Unix timestamp format). Required.

    • occurredAt[before] integer

      End of the period, included: only the activities which occurred at or before this date (Unix timestamp format). Required.

  • eventType object

    Filter on the type of the events. Every type when omitted.

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

      Only the activities of one of these event types

      Values are ChannelJoined, ChannelLeft, ChannelMessageReacted, ChannelMessageSent, CourseStarted, CourseCompleted, CourseStepViewed, CourseStepCompleted, DiscussionMessageSent, DocumentLinkOpened, DocumentLinkReacted, DocumentPageReacted, DocumentPageViewed, LearningPathCompleted, LearningPathStarted, LiveAttended, LiveInvitationDeclined, LiveMessageReacted, LiveMessageSent, LiveParticipantRegistered, LiveReplayWatched, RoleplayCompleted, RoleplayStarted, SpotMemberLeft, SpotMemberRegistered, SpotMemberRegistrationRequested, TopicAnswerCreated, TopicAnswerVoted, TopicCreated, or TopicVoted.

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

      Only the activities on this live. A live of another Spot matches nothing.

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

      Only the activities on this course. A course of another Spot matches nothing.

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

      Only the activities on this channel. A channel of another Spot matches nothing.

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

      Only the activities on this collection. A collection of another Spot matches nothing.

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

      Only the activities on this topic. A topic of another Spot matches nothing.

  • groupId object

    Only the members of one of these groups, with or without activity

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

      Only the activities of the members of one of these groups

  • role object

    Only the members having one of these roles and no custom role, with or without activity

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

      Only the activities of the members having one of these roles and no custom role

      Values are Member or Admin.

  • sortBy string

    The sort of the members: by number of activities over the period, or by date of their last activity (the members never active come last)

    Values are activityCount or lastActivityAt. Default value is activityCount.

  • sortDirection string

    The direction of the sort

    Values are asc or desc. Default value is desc.

  • page integer

    The page number in a paginated set of results

    Minimum value is 1. Default value is 1.

  • limit integer

    The limit of results to be returned per page

    Minimum value is 1, maximum value is 250. Default value is 10.

Responses

  • 200 application/json
    Hide response attributes Show response attributes object
    • items array[object] Required

      The members of the page, in the order asked for (by decreasing number of activities by default), ties broken by id

      Hide items attributes Show items attributes object
      • member object Required

        The member, reduced to its id, name and role

        Hide member attributes Show member attributes object
        • id string Required

          The id of the member in the spot

        • firstname string Required

          The first name of the member

        • lastname string Required

          The last name of the member

        • role string | null Required

          The role of the member, null when the stored value is not a known role

          Values are Member or Admin.

        • customRoleId string | null Required

          The id of the custom role of the member, null without one

      • activityCount integer Required

        The number of activities of the member over the period, with the filters. 0 for a member without activity.

      • lastActivityAt integer | null Required

        The date of the last activity recorded on the member (timestamp in milliseconds), whatever the period and the filters. It only moves for part of the event types. Null when the member never had any.

    • total integer Required

      The number of members of the spot matching the group and role filters, with or without activity, all pages included

  • 400

    Malformed payload, missing or too long period

GET /v1/activities/members
curl \
 --request GET 'https://openapi.meltingspot.io/v1/activities/members'
Response examples (200)
{
  "items": [
    {
      "member": {
        "id": "string",
        "firstname": "string",
        "lastname": "string",
        "role": "Member",
        "customRoleId": "string"
      },
      "activityCount": 42,
      "lastActivityAt": 42
    }
  ],
  "total": 42
}