AI アプリのイベントを取得する
AI アプリが記録したイベントを新しい順に返します。在/不在の判定ルールの切り替わり(presenceStart・presenceEnd)と、ナンバープレートの読み取り(plateRead)です。instanceId か aiAppId のどちらかが要ります。イベントは 30 日間残ります。
photo の URL は短時間で切れます。画像を残すときは、受け取ってすぐに取得してください。スコープは data か data:write が要ります。
GET
/eventsAuthorization
AuthorizationBearer token · headerrequired組織設定の「API・MCP」タブで発行した API トークン(tcn_ で始まる)。
Query parameters
instanceIdstringAI アプリのインスタンス ID
aiAppIdstringAI アプリの ID(license-plate、object-detection など)。そのアプリの全インスタンスのイベントを返す
eventTypestringイベントの種類で絞る
Allowed:
presenceStartpresenceEndplateReadplatestringナンバーの部分一致(plateRead だけ)。1〜40 文字
min length 1 · max length 40
sincestring<date-time>この時刻以降のイベントだけを返す(ISO 8601)
limitinteger件数(1〜200。既定 50)
min 1 · max 200 · default: 50
offsetinteger先頭から飛ばす件数(既定 0)
min 0 · default: 0
Responses
200
イベントの一覧
eventsEvent[]requiredShow propertiesHide properties
Array of
Eventidstringrequiredtsstring<date-time>requiredinstanceIdstringrequiredイベントを記録した AI アプリのインスタンス
instanceNamestring | nullrequiredそのインスタンスの名前
edgePcNamestring | nullrequiredeventTypestringrequiredAllowed:
presenceStartpresenceEndplateReadruleIdstring | nullrequired在/不在を判定したルール(plateRead は null)
detailobjectrequiredイベントの中身。plateRead なら plate(読み取ったナンバー)と confidence など
photoEventPhoto | nullrequired根拠の画像。URL は短時間で切れる
Show propertiesHide properties
Any of:
EventPhoto
urlstring | nullrequiredthumbUrlstring | nullrequirednull
nulltotalintegerrequired条件に合う総件数
400
入力の検証エラー、または対象の種類が合わない
errorstringrequired人が読めるエラーメッセージ
401
トークンが無い、または無効
errorstringrequired人が読めるエラーメッセージ
403
スコープが足りない、または操作が許可されていない
errorstringrequired人が読めるエラーメッセージ