Analytics

获取 AI 助手调用方统计

Changed on

获取在指定日期范围内发起的助手会话按调用方类型(网页端、API 和其他)划分的数量明细。

使用管理员 API 密钥进行身份验证。

get/v1/analytics/{projectId}/assistant/caller-stats

Request

  • Base URL
    https://api.mintlify.com
  • Auth
    HTTP bearer

Path parameters

projectIdstring required

你的项目 ID,可在控制台的 API keys 页面中复制。

Query parameters

dateFromstring

ISO 8601 或 YYYY-MM-DD 格式的日期

Example:2024-01-01
dateTostring

ISO 8601 或 YYYY-MM-DD 格式的日期。dateTo 为不包含在内的上限。结果将包含早于该日期的记录,但不包含该日期当天的记录。

Example:2024-01-01

Response

按调用方类型划分的助手会话数

webnumber required

从网页端(文档站点)发起的助手会话数。

apinumber required

从 API 调用发起的助手会话数。

othernumber required

从其他来源(例如集成、SDK)发起的助手会话数。

totalnumber required

所有调用方类型的助手会话总数。

Changes

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    1 more change in this revision