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

# List GRC Evidences

> List all GRC evidences for a given connection.



## OpenAPI

````yaml get /grc/evidences
openapi: 3.1.0
info:
  title: Leen Security API
  version: 0.0.1
servers:
  - description: Production API (US)
    url: https://api.leen.dev/v1
  - description: Production API (EU)
    url: https://api.eu-c1.leen.dev/v1
  - description: Production API (APAC)
    url: https://api.ap-se2.leen.dev/v1
security: []
paths:
  /grc/evidences:
    get:
      tags:
        - grc
        - evidences
      summary: List GRC Evidences
      description: List all GRC evidences for a given connection.
      operationId: list_grc_evidences
      parameters:
        - description: >-
            Sort by a field, written as `field`, `field:asc` or `field:desc`.
            Which fields can be sorted on differs per endpoint.
          in: query
          name: sort
          required: false
          schema:
            anyOf:
              - pattern: >-
                  ^name$|^name\:asc$|^name\:desc$|^type$|^type\:asc$|^type\:desc$|^status$|^status\:asc$|^status\:desc$|^collected_at$|^collected_at\:asc$|^collected_at\:desc$|^updated_at$|^updated_at\:asc$|^updated_at\:desc$|^created_at$|^created_at\:asc$|^created_at\:desc$
                type: string
              - type: 'null'
            description: >-
              Sort by a field, written as `field`, `field:asc` or `field:desc`.
              Which fields can be sorted on differs per endpoint.
            title: Sort
        - description: >-
            Only records whose `updated_at` is at or after this time. Leen bumps
            `updated_at` whenever any field on a record changes, so this is the
            filter for an incremental sync: it returns records that are new and
            records that changed, and nothing that has stood still. Example:
            `2021-01-01T00:00:00+00:00`.
          in: query
          name: updatedSince
          required: false
          schema:
            anyOf:
              - format: date-time
                type: string
              - type: 'null'
            description: >-
              Only records whose `updated_at` is at or after this time. Leen
              bumps `updated_at` whenever any field on a record changes, so this
              is the filter for an incremental sync: it returns records that are
              new and records that changed, and nothing that has stood still.
              Example: `2021-01-01T00:00:00+00:00`.
            examples:
              - '2021-01-01T00:00:00+00:00'
            title: Updatedsince
        - description: >-
            Opaque position of the next page, taken from the previous response.
            Ignore its contents; it encodes where the walk had reached.
          in: query
          name: cursor
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              Opaque position of the next page, taken from the previous
              response. Ignore its contents; it encodes where the walk had
              reached.
            title: Cursor
        - description: >-
            How many records to return per page. The walk is the same either
            way; a larger page means fewer round trips and more memory per
            response.
          in: query
          name: limit
          required: false
          schema:
            default: 100
            description: >-
              How many records to return per page. The walk is the same either
              way; a larger page means fewer round trips and more memory per
              response.
            maximum: 500
            minimum: 1
            title: Limit
            type: integer
        - description: Filter evidence by type (comma-separated values supported)
          in: query
          name: type
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filter evidence by type (comma-separated values supported)
            title: Type
        - description: Filter evidence by status (comma-separated values supported)
          in: query
          name: status
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filter evidence by status (comma-separated values supported)
            title: Status
        - description: Filter evidence collected after this timestamp (ISO 8601 format)
          in: query
          name: collected_after
          required: false
          schema:
            anyOf:
              - format: date-time
                type: string
              - type: 'null'
            description: Filter evidence collected after this timestamp (ISO 8601 format)
            title: Collected After
        - description: Filter evidence collected before this timestamp (ISO 8601 format)
          in: query
          name: collected_before
          required: false
          schema:
            anyOf:
              - format: date-time
                type: string
              - type: 'null'
            description: Filter evidence collected before this timestamp (ISO 8601 format)
            title: Collected Before
        - description: >-
            Filter evidence by associated control ID (comma-separated values
            supported)
          in: query
          name: control_ids
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              Filter evidence by associated control ID (comma-separated values
              supported)
            title: Control Ids
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/KeySetPaginatedResponse_GRCEvidenceResponse_
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorException'
          description: Unprocessable Content
      security:
        - API-Key: []
          Connection-ID: []
components:
  schemas:
    KeySetPaginatedResponse_GRCEvidenceResponse_:
      properties:
        items:
          description: The records on this page.
          items:
            $ref: '#/components/schemas/GRCEvidenceResponse'
          title: Items
          type: array
        next_cursor:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            Opaque position of the next page. Pass it back as `cursor` to
            continue; null when this is the last page.
          title: Next Cursor
        previous_cursor:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            Opaque position of the previous page, for walking backwards. Null on
            the first page.
          title: Previous Cursor
      required:
        - items
      title: KeySetPaginatedResponse[GRCEvidenceResponse]
      type: object
    ErrorException:
      properties:
        detail:
          description: Error message
          title: Detail
          type: string
      required:
        - detail
      title: ErrorException
      type: object
    GRCEvidenceResponse:
      description: Response model for returning GRC evidence details via an API endpoint.
      properties:
        collected_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          description: Timestamp when the evidence was collected
          title: Collected At
        control_id:
          anyOf:
            - format: uuid
              type: string
            - type: 'null'
          description: Associated GRC control id
          title: Control Id
        created_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          description: Timestamp when the evidence was created
          title: Created At
        description:
          anyOf:
            - type: string
            - type: 'null'
          description: Detailed description of the evidence
          title: Description
        id:
          description: Leen's UUID for the GRC evidence
          format: uuid
          title: Id
          type: string
        location:
          anyOf:
            - type: string
            - type: 'null'
          description: Location or path where the evidence is stored
          title: Location
        name:
          description: Evidence name
          title: Name
          type: string
        status:
          $ref: '#/components/schemas/EvidenceStatus'
          default: UNKNOWN
          description: Current status of the evidence
        type:
          $ref: '#/components/schemas/EvidenceType'
          default: OTHER
          description: Type or classification of the evidence
        updated_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          description: Timestamp when the evidence was last updated
          title: Updated At
        vendor_attributes:
          $ref: '#/components/schemas/ScopedGRCEvidenceVendorAttributes'
          description: Vendor-specific attributes and identifiers
      required:
        - id
        - name
        - vendor_attributes
      title: Evidence
      type: object
    EvidenceStatus:
      description: Enum for evidence status.
      enum:
        - COLLECTED
        - APPROVED
        - ARCHIVED
        - INVALID
        - UNKNOWN
      title: EvidenceStatus
      type: string
    EvidenceType:
      description: Enum for different types of evidence.
      enum:
        - FILE
        - URL
        - TEXT
        - IMAGE
        - DOCUMENT
        - OTHER
      title: EvidenceType
      type: string
    ScopedGRCEvidenceVendorAttributes:
      description: Vendor-specific attributes for evidence.
      properties:
        data:
          anyOf:
            - discriminator:
                mapping:
                  SERVICENOW: '#/components/schemas/ServiceNowGRCEvidenceVendorData'
                propertyName: vendor
              oneOf:
                - $ref: '#/components/schemas/ServiceNowGRCEvidenceVendorData'
            - type: 'null'
          description: Vendor-specific data
          title: Data
        id:
          title: Id
          type: string
        vendor:
          title: Vendor
          type: string
      required:
        - id
        - vendor
      title: ScopedGRCEvidenceVendorAttributes
      type: object
    ServiceNowGRCEvidenceVendorData:
      properties:
        content_type:
          title: Content Type
          type: string
        vendor:
          const: SERVICENOW
          default: SERVICENOW
          title: Vendor
          type: string
      required:
        - content_type
      title: ServiceNowGRCEvidenceVendorData
      type: object
  securitySchemes:
    API-Key:
      in: header
      name: X-API-KEY
      type: apiKey
    Connection-ID:
      in: header
      name: X-CONNECTION-ID
      type: apiKey

````

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