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

# 組織内のガードレール違反の一覧

> 特定の組織内のガードレール違反の一覧。

Guardrailsの仕組みや設定方法の概要については、[AI Guardrails](/ja/enterprise/features/ai-guardrails) の機能ガイドを参照してください。

<div id="permissions">
  ## 権限
</div>

この操作には、Enterprise レベルで `ManageEnterpriseSettings` 権限を持つサービスユーザーが必要です。

<div id="time-filters">
  ## 時間フィルター
</div>

このエンドポイントは、クエリパラメータ `time_after` と `time_before` を使った任意指定可能な時間フィルターをサポートしています。

* `time_after` と `time_before` はどちらも UTC として解釈される**秒単位の Unix タイムスタンプ**です。
* `time_before` を指定する場合は、必ず `time_after` も指定する必要があります。
* `time_after` と `time_before` の間の時間範囲は、**100 日以内**でなければなりません。
* 時間フィルターが指定されていない場合、API は利用可能な全履歴分のガードレール違反 (ページネーションの制約内) を返します。


## OpenAPI

````yaml ja/v3-openapi.yaml GET /v3beta1/enterprise/organizations/{org_id}/guardrail-violations
openapi: 3.1.0
info:
  description: Service User 認証および RBAC に対応した Devin v3 API
  title: Devin API v3
  version: 3.0.0
servers: []
security:
  - bearerAuth: []
paths:
  /v3beta1/enterprise/organizations/{org_id}/guardrail-violations:
    get:
      tags:
        - guardrail_violations
      summary: 組織内のガードレール違反の一覧
      description: 特定の組織内のガードレール違反の一覧。
      operationId: >-
        handle_get_org_guardrail_violations_v3beta1_enterprise_organizations__org_id__guardrail_violations_get
      parameters:
        - description: '組織ID（プレフィックス: org-）'
          in: path
          name: org_id
          required: true
          schema:
            example: org-abc123def456
            title: Org Id
            type: string
        - in: query
          name: order
          required: false
          schema:
            default: desc
            enum:
              - asc
              - desc
            title: Order
            type: string
        - in: query
          name: time_before
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
            title: Time Before
        - in: query
          name: time_after
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
            title: Time After
        - in: query
          name: after
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: After
        - in: query
          name: first
          required: false
          schema:
            default: 100
            maximum: 200
            minimum: 1
            title: First
            type: integer
        - in: query
          name: session_id
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Session Id
        - in: query
          name: guardrail_id
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Guardrail Id
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/PaginatedResponse_GuardrailViolationResponse_
          description: 成功レスポンス
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: 未認証
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: アクセス禁止
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: 見つかりません
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: 競合
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: 処理できない内容
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: リクエストが多すぎます
components:
  schemas:
    PaginatedResponse_GuardrailViolationResponse_:
      properties:
        end_cursor:
          anyOf:
            - type: string
            - type: 'null'
          description: 次ページを取得するためのカーソル。最終ページの場合は None。
          title: End Cursor
        has_next_page:
          default: false
          description: このページの後に、さらに項目が存在するかどうか。
          title: Has Next Page
          type: boolean
        items:
          items:
            $ref: '#/components/schemas/GuardrailViolationResponse'
          title: Items
          type: array
        total:
          anyOf:
            - type: integer
            - type: 'null'
          description: 任意の合計件数（パフォーマンス上の理由から省略される場合があります）。
          title: Total
      required:
        - items
      title: PaginatedResponse[GuardrailViolationResponse]
      type: object
    ProblemDetail:
      description: >-
        v3 API 用の RFC 9457 application/problem+json エラーボディ。


        detail は後方互換性のため、レガシーな {"detail": ...}
        ボディから引き継がれます。その他のメンバーは追加式です。errors にはフィールドレベルのバリデーションエラーが含まれます（422
        の場合のみ）。
      properties:
        detail:
          anyOf:
            - type: string
            - type: 'null'
          description: この事象に固有の、人が読める説明。
          title: Detail
        errors:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          description: フィールド単位のバリデーションエラー（422 レスポンスのみ）。
          title: Errors
        instance:
          anyOf:
            - type: string
            - type: 'null'
          description: この発生箇所の URI 参照（リクエストパス）。
          title: Instance
        status:
          description: HTTP ステータスコード。
          title: Status
          type: integer
        title:
          description: 問題タイプを人が読める短い要約。
          title: Title
          type: string
        type:
          default: about:blank
          description: 問題タイプを識別する URI 参照。
          title: Type
          type: string
      required:
        - title
        - status
      title: ProblemDetail
      type: object
    GuardrailViolationResponse:
      properties:
        action_taken:
          title: Action Taken
          type: string
        confidence_score:
          title: Confidence Score
          type: number
        created_at:
          title: Created At
          type: integer
        event_id:
          title: Event Id
          type: string
        guardrail_id:
          title: Guardrail Id
          type: string
        guardrail_name:
          title: Guardrail Name
          type: string
        org_id:
          title: Org Id
          type: string
        reasoning:
          title: Reasoning
          type: string
        session_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Session Id
        user_message:
          title: User Message
          type: string
        violation_id:
          title: Violation Id
          type: integer
      required:
        - violation_id
        - org_id
        - session_id
        - event_id
        - guardrail_id
        - guardrail_name
        - confidence_score
        - action_taken
        - reasoning
        - user_message
        - created_at
      title: GuardrailViolationResponse
      type: object
  securitySchemes:
    bearerAuth:
      description: 'サービスユーザーの認証情報（接頭辞: cog_）'
      scheme: bearer
      type: http

````