> ## Documentation Index
> Fetch the complete documentation index at: https://docs.scanova.io/llms.txt
> Use this file to discover all available pages before exploring further.

# 列出精选活动动态事件

> GET /user-logs/activity-feed/

在**管理 API** 主机 (`api.scanova.io`) 上列出账户经过筛选整理的活动事件，使用您的原始管理 API 密钥进行身份验证。

```
GET https://api.scanova.io/user-logs/activity-feed/
Authorization: 401f7ac837da42b97f613d789819ff93537bee6a
```

<ParamField query="event_type" type="string">
  以逗号分隔的要包含的事件类型：`qr_created`、`qr_updated`、`qr_deleted`、`login`、`shared_user_login`、`share_granted`、`share_revoked`。
</ParamField>

<ParamField query="actor_user" type="integer">
  筛选由指定 id 的共享用户执行的事件。省略则同时包含账户所有者自己的事件。
</ParamField>

<ParamField query="occurred_from" type="string">
  仅包含此日期（含）之后的事件（`YYYY-MM-DD`）。
</ParamField>

<ParamField query="occurred_till" type="string">
  仅包含此日期（含）之前的事件（`YYYY-MM-DD`）。
</ParamField>

<ParamField query="search" type="string">
  在 `target_repr`（事件发生时受影响对象的显示名称）中搜索。
</ParamField>

<ParamField query="ordering" type="string">
  按 `occurred_at` 排序 —— 前缀 `-` 表示降序。默认值为 `-occurred_at`。
</ParamField>

<ParamField query="page" type="integer">
  页码。
</ParamField>

<ParamField query="page_size" type="integer">
  每页结果数，最多 100。
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl "https://api.scanova.io/user-logs/activity-feed/?event_type=qr_created,login" \
    -H "Authorization: 401f7ac837da42b97f613d789819ff93537bee6a"
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "count": 1,
    "next": null,
    "previous": null,
    "results": [
      {
        "id": 91422,
        "event_type": "qr_created",
        "actor_user": 17,
        "actor_email": "member@scanova.io",
        "target_object_type": "qrcode",
        "target_object_id": "3390",
        "target_repr": "Summer Menu QR",
        "occurred_at": "2026-09-05T11:04:22Z"
      }
    ]
  }
  ```
</ResponseExample>

当账户所有者执行操作时，`actor_user` 为 `null`；`actor_email` 始终有值，此时会回退为所有者的邮箱。

<Note>
  对于角色带有标签限制权限的共享用户，QR 类别事件（`qr_created`、`qr_updated`、`qr_deleted`）仅限于打上该用户所分配标签的 QR 码（如果其角色包含未打标签的 QR 码，则也包含在内）。登录和共享事件从不进行标签限定。
</Note>

## 相关内容

* [获取每日活动统计](/zh/api-reference/management-api/user-logs/activity-summary) —— 用于图表展示的聚合计数，而非原始动态。
* [列出最近活动](/zh/api-reference/management-api/user-logs/recent-activity) —— 更简短、未筛选的摘要。
* [管理 API 概述](/zh/api-reference/management-api/overview) —— 适用于此端点的身份验证方案和配额规则。


## OpenAPI

````yaml api-reference/openapi/management-api.json GET /user-logs/activity-feed/
openapi: 3.1.0
info:
  title: Scanova Management API (v2)
  description: >-
    The complete Scanova Management API — every endpoint available at
    api.scanova.io (QR codes, folders, tags, leads, forms, analytics, plans,
    shared users & roles), plus the token-creation and usage-stats endpoints
    used to authenticate against it. Every path and request/response shape below
    was verified live against a real API key and the actual running backend
    (Phase 7, 2026-08-16) — not guessed from reading urls.py alone.
  version: 2.0.0
servers:
  - url: https://api.scanova.io
    description: Management API — QR/folder/tag/lead/form/analytics/plans endpoints
security:
  - apiKeyAuth: []
paths:
  /user-logs/activity-feed/:
    get:
      summary: List curated activity feed events
      description: >-
        A filterable, paginated feed of curated activity events (`qr_created`,
        `qr_updated`, `qr_deleted`, `login`, `shared_user_login`,
        `share_granted`, `share_revoked`). For a shared user with tag-scoped
        permissions, QR-category events are limited to QR codes tagged with that
        user's assigned tags.
      operationId: listActivityFeed
      parameters:
        - name: event_type
          in: query
          schema:
            type: string
          description: Comma-separated event types, e.g. `qr_created,login`.
        - name: actor_user
          in: query
          schema:
            type: integer
        - name: occurred_from
          in: query
          schema:
            type: string
            format: date
        - name: occurred_till
          in: query
          schema:
            type: string
            format: date
        - name: search
          in: query
          schema:
            type: string
        - name: ordering
          in: query
          schema:
            type: string
        - name: page
          in: query
          schema:
            type: integer
        - name: page_size
          in: query
          schema:
            type: integer
          description: Max 100.
      responses:
        '200':
          description: Paginated feed of activity events.
          content:
            application/json:
              example:
                count: 1
                next: null
                previous: null
                results:
                  - id: 91422
                    event_type: qr_created
                    actor_user: 17
                    actor_email: member@scanova.io
                    target_object_type: qrcode
                    target_object_id: '3390'
                    target_repr: Summer Menu QR
                    occurred_at: '2026-09-05T11:04:22Z'
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: >-
        Send your Management API key as the raw value of the Authorization
        header — no "Bearer " or "Token " prefix, and no other characters.
        Example: `Authorization: 401f7ac837da42b97f613d789819ff93537bee6a`. A
        header containing more than one space-separated part is rejected
        outright. Requests also require the request's Host header to be the
        management API host (e.g. api.scanova.io) — the same key sent to the
        regular API host will not authenticate.

````