Skip to main content
POST
/
api
/
v1
/
hub
/
{hub_id}
/
activity
Record Activity
curl --request POST \
  --url https://api.member.dev/api/v1/hub/{hub_id}/activity \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/vnd.api+json' \
  --data '
{
  "data": {
    "attributes": {
      "extras": {}
    },
    "type": "<string>"
  }
}
'
{
  "data": {
    "attributes": {
      "contact_id": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "extras": {},
      "hub_id": "<string>",
      "last_login_at": "2023-11-07T05:31:56Z",
      "last_search_at": "2023-11-07T05:31:56Z",
      "login_count": 123,
      "search_count": 123,
      "updated_at": "2023-11-07T05:31:56Z"
    },
    "id": "<string>",
    "type": "contact_hub_stats"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

hub_id
string
required

Body

application/vnd.api+json
data
ActivityEventResource · object
required

Response

Successful Response

data
ContactHubStatsResource · object
required