For the complete documentation index, see llms.txt. This page is also available as Markdown.

Content Library

Your site's Content Library — content items, spaces, and member activity such as views.

List content views

get

Returns records of members successfully viewing your Content Library content, ordered by id and paginated with an opaque cursor. Filter by member, content item, and view date.

Authorizations
AuthorizationstringRequired

Opaque Admin API key, prefixed with ms_admin_. Pass it as Authorization: Bearer ms_admin_....

Query parameters
memberIdintegerOptional

Only return views by this member.

nodeIdintegerOptional

Only return views of this content item.

viewedAfterstring · date-timeOptional

Only return views on or after this ISO 8601 date-time (inclusive).

viewedBeforestring · date-timeOptional

Only return views before this ISO 8601 date-time (exclusive).

Header parameters
X-CursorstringOptional

First item to return, usually equals the previous page response's X-Next-Cursor response header. Omit to fetch the first page. Cursors are opaque tokens — do not parse or construct them.

X-Items-Afterinteger · min: 1 · max: 100Optional

Maximum number of results to return beginning with the cursor, or if not sent the first item in the list (1-100, default 25).

Default: 25
Responses
200

Successful operation

application/json
get/contentLibrary/views
GET /admin/v1/contentLibrary/views HTTP/1.1
Host: api.memberspace.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
  {
    "id": 1,
    "memberId": 1,
    "node": {
      "id": 1,
      "name": "text",
      "type": "file"
    },
    "spaceNode": {
      "id": 1,
      "name": "text"
    },
    "viewedAt": "2026-01-01T00:00:00.000Z"
  }
]

Last updated

Was this helpful?