メインコンテンツへスキップ
GET
ガードレール違反の一覧
ガードレールの仕組みや設定方法については、AI Guardrails 機能ガイドを参照してください。

権限

Enterprise レベルで ManageEnterpriseSettings 権限を付与されたサービスユーザーが必要です。

時間フィルター

このエンドポイントは、クエリパラメータ time_aftertime_before を使用したオプションの時間フィルターをサポートします。
  • time_aftertime_before はどちらも 秒単位の Unix タイムスタンプ であり、UTC として解釈されます。
  • time_before を指定する場合は、time_after も必ず指定する必要があります。
  • time_aftertime_before の間の時間範囲は 100 日以内 でなければなりません。
  • 時間フィルターが指定されていない場合、API は利用可能な全履歴 (ページネーションの制約内) に対する guardrail 違反を返します。

承認

Authorization
string
header
必須

サービスユーザーの認証情報(接頭辞: cog_)

クエリパラメータ

order
enum<string>
デフォルト:desc
利用可能なオプション:
asc,
desc
time_before
integer | null
time_after
integer | null
after
string | null
first
integer
デフォルト:100
必須範囲: 1 <= x <= 200
session_id
string | null
guardrail_id
string | null

レスポンス

成功レスポンス

items
GuardrailViolationResponse · object[]
必須
end_cursor
string | null

次ページを取得するためのカーソル。最終ページの場合は None。

has_next_page
boolean
デフォルト:false

このページの後に、さらに項目が存在するかどうか。

total
integer | null

任意の合計件数(パフォーマンス上の理由から省略される場合があります)。