跳转到内容
EN

事件

按 seq 翻页:asc 配 after_seq,desc 配 before_seq;两个游标不可同用。

指南 →

基础地址与鉴权

读取事件

GET /media/v1/libraries/{library_id}/events

参数 位置 类型 说明
library_id path string 库 ID
after_seq query integer 升序游标;不可与 before_seq 同用
before_seq query integer 降序游标;不可与 after_seq 同用
order query asc / desc asc 默认升序或 desc 降序
limit query integer 每页 1–200 条,默认 50

返回: MediaEventPage.

响应

HTTP 200

Successful response.

application/json

名称 类型 说明
data array<object> Events in this page, ordered by sequence in the requested direction.
data[].seq number Increasing sequence number within this library; use it with after_seq or before_seq to page through events.
data[].id string Unique identifier of this recorded event.
data[].type string Type of lifecycle, asset, processing, search or batch change recorded.
data[].processed_at string Time this event was recorded, in UTC.
data[].library_id string Identifier of the library whose event was recorded.
data[].asset_id string Related asset identifier, when the event concerns an asset.
data[].job_id string Related batch job identifier, when present.
data[].kind string Related processing task: visual, frames, transcript or embedding.
data[].detail object Event-specific details, such as changed values, reprocessing kinds or failed-item counts.
next_cursor string | null Last returned sequence as a string when more events exist; convert to a number and pass as after_seq for asc or before_seq for desc. Null means no further page.
终端窗口
curl -X GET "https://api.deepraxis.com/media/v1/libraries/${LIBRARY_ID}/events?limit=1" \
-H "Authorization: Bearer $PRAXIS_API_KEY"

HTTP 200

{
"data": [
{
"seq": 1,
"id": "0b4d1216-1781-496f-93a1-0e82b0815da7",
"type": "library.status_provisioning",
"processed_at": "2026-11-13T06:17:20.940Z",
"library_id": "lib_25e6b6c99cd04f63bbe937314a795e14"
}
],
"next_cursor": "1"
}

MediaEventPage

字段 类型 必填 说明
data MediaEvent[] 是 本页结果
next_cursor string / null 是 下一页游标;没有时为 null 或省略

MediaEvent

字段 类型 必填 说明
seq number 是 库内递增的事件序号
id string 是 资源 ID
type MediaEventType 是 资源或事件类型
processed_at IsoTimestamp 是 事件时间
library_id LibraryId 是 库 ID
asset_id AssetId 否 素材 ID
job_id JobId 否 任务 ID
kind ProcessingKind 否 理解或处理种类;列出理解结果时按此筛选
detail object 否 事件详情