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

# List a rule result's evidence

> List the evidence attached to a rule result.



## OpenAPI

````yaml get /rule-results/{ruleResultId}/evidence
openapi: 3.0.3
info:
  contact:
    email: support@openlayer.com
    name: Openlayer
    url: https://openlayer.com/
  description: API for interacting with the Openlayer server.
  title: Openlayer API
  version: '1.0'
  x-logo:
    url: https://logo.clearbit.com/openlayer.com
servers:
  - url: https://api.openlayer.com/v1
    description: Our prod backend
security:
  - bearerAuth: []
paths:
  /rule-results/{ruleResultId}/evidence:
    get:
      tags:
        - Governance
      summary: List a rule result's evidence
      description: List the evidence attached to a rule result.
      operationId: listRuleResultEvidence
      parameters:
        - $ref: '#/components/parameters/ruleResultId'
        - $ref: '#/components/parameters/page'
        - $ref: '#/components/parameters/perPage'
      responses:
        '200':
          description: Status OK.
          content:
            application/json:
              schema:
                type: object
                required:
                  - items
                properties:
                  items:
                    type: array
                    items:
                      $ref: '#/components/schemas/Evidence'
        default:
          $ref: '#/components/responses/UnexpectedError'
      x-codeSamples:
        - lang: python
          source: >
            from openlayer import Openlayer


            client = Openlayer()


            evidence =
            client.governance.rule_results.list_evidence("6f7a8b9c-0d1e-4f2a-8b3c-4d5e6f7a8b9c")

            for item in evidence.items:
                print(item.id, item.name)
        - lang: typescript
          source: >
            import Openlayer from 'openlayer';


            const client = new Openlayer();


            const evidence = await
            client.governance.ruleResults.listEvidence('6f7a8b9c-0d1e-4f2a-8b3c-4d5e6f7a8b9c');


            console.log(evidence.items);
        - lang: go
          source: "package main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\n\t\"github.com/openlayer-ai/openlayer-go\"\n)\n\nclient := openlayer.NewClient()\nevidence, err := client.Governance.RuleResults.ListEvidence(\n\tcontext.TODO(),\n\t\"6f7a8b9c-0d1e-4f2a-8b3c-4d5e6f7a8b9c\",\n\topenlayer.GovernanceRuleResultListEvidenceParams{},\n)\nif err != nil {\n\tpanic(err.Error())\n}\nfmt.Printf(\"%+v\\n\", evidence.Items)\n"
        - lang: java
          source: >
            import com.openlayer.api.client.OpenlayerClient;

            import com.openlayer.api.client.okhttp.OpenlayerOkHttpClient;

            import
            com.openlayer.api.models.governance.ruleresults.RuleResultListEvidenceResponse;


            OpenlayerClient client = OpenlayerOkHttpClient.fromEnv();


            RuleResultListEvidenceResponse evidence =
            client.governance().ruleResults().listEvidence("6f7a8b9c-0d1e-4f2a-8b3c-4d5e6f7a8b9c");
        - lang: ruby
          source: >
            require "openlayer"


            openlayer = Openlayer::Client.new(api_key: ENV["OPENLAYER_API_KEY"])


            evidence =
            openlayer.governance.rule_results.list_evidence("6f7a8b9c-0d1e-4f2a-8b3c-4d5e6f7a8b9c")


            puts(evidence)
        - lang: curl
          source: |
            curl --request GET \
              --url https://api.openlayer.com/v1/rule-results/5b7d9f1a-2c3e-4d5f-8a6b-9c0d1e2f3a4b/evidence \
              --header 'Authorization: Bearer <token>'
components:
  parameters:
    ruleResultId:
      name: ruleResultId
      in: path
      description: The rule result id.
      required: true
      schema:
        type: string
        format: uuid
    page:
      name: page
      in: query
      description: The page to return in a paginated query.
      schema:
        type: integer
        minimum: 1
        default: 1
    perPage:
      name: perPage
      in: query
      description: Maximum number of items to return per page.
      schema:
        type: integer
        minimum: 1
        maximum: 100
        default: 25
  schemas:
    Evidence:
      type: object
      description: >
        Evidence attached to a rule result to satisfy an evidence rule. Which
        field holds it depends on the rule's `evidenceType`: `storageUri` for a
        document, `text` for a written statement, or `url` for a link.
      properties:
        id:
          type: string
          format: uuid
          readOnly: true
          description: The evidence id.
        name:
          type: string
          nullable: true
          maxLength: 120
          description: The evidence name.
          example: Model risk assessment 2026
        description:
          type: string
          nullable: true
          description: A description of what the evidence shows.
        storageUri:
          type: string
          nullable: true
          description: >
            Where the uploaded file is stored. Set when the rule's
            `evidenceType` is `document`. Upload the file first with `POST
            /storage/presigned-url` and send the storage URI it returns.
          example: s3://openlayer-evidence/evidence.pdf
        text:
          type: string
          nullable: true
          description: The evidence text. Set when the rule's `evidenceType` is `text`.
        url:
          type: string
          format: uri
          nullable: true
          description: A link to the evidence. Set when the rule's `evidenceType` is `url`.
          example: https://openlayer.com/evidence
        creatorId:
          type: string
          format: uuid
          nullable: true
          readOnly: true
          description: The user who attached the evidence.
        dateCreated:
          type: string
          format: date-time
          readOnly: true
          description: The creation date.
          example: '2026-03-22T11:31:01.185Z'
        dateUpdated:
          type: string
          format: date-time
          readOnly: true
          description: The last update date.
          example: '2026-03-22T11:31:01.185Z'
      required:
        - id
        - creatorId
        - dateCreated
        - dateUpdated
  responses:
    UnexpectedError:
      description: Unexpected error.
      content:
        application/json:
          schema:
            type: object
            required:
              - code
              - error
            properties:
              code:
                type: integer
                format: int32
              error:
                type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >
        Bearer authentication header of the form `Bearer <token>`, where
        `<token>` is your workspace API key. See [Find your API
        key](https://www.openlayer.com/docs/workspace-and-projects/find-your-api-key)
        for more information.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.