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

<AgentInstructions>

## Submitting Feedback

If you encounter incorrect, outdated, or confusing documentation on this page, submit feedback:

POST https://docs.kosli.com/feedback

```json
{
  "path": "/api-reference/attestation/list-attestations",
  "feedback": "Description of the issue"
}
```

Only submit feedback when you have something specific and actionable to report.

</AgentInstructions>

# List attestations

> Get a paginated list attestations for an organization based on filters provided as query parameters.



## OpenAPI

````yaml https://app.kosli.com/api/v2/openapi.json get /attestations/{org}
openapi: 3.1.0
info:
  title: Kosli API
  summary: The API for communicating with Kosli
  description: >

    # Authentication 


    When making requests against Kosli API, you can authenticate your requests
    using a bearer token. 

    Set the bearer token in the request Authorization header to a valid API
    key. 

    API Keys can be personal or for service accounts. Check the [service
    accounts
    documentation](https://docs.kosli.com/getting_started/service-accounts/) for
    details. 


    ## Curl example


    ```shell

    curl -H "Authorization: Bearer <<your-api-key>>"
    https://app.kosli.com/api/v2/environments/<<your-org-name>>

    ```
  version: '2.0'
servers:
  - url: https://app.kosli.com/api/v2
    description: EU
  - url: https://app.us.kosli.com/api/v2
    description: US
security:
  - HTTPBearer: []
paths:
  /attestations/{org}:
    get:
      tags:
        - Attestation
      summary: List attestations
      description: >-
        Get a paginated list attestations for an organization based on filters
        provided as query parameters.
      operationId: get_attestations_attestations__org__get
      parameters:
        - name: org
          in: path
          required: true
          schema:
            type: string
            title: Org
        - name: attestation_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: The attestation ID to search for
            title: Attestation Id
          description: The attestation ID to search for
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AttestationsPaginatedResponse'
      security:
        - HTTPBearer: []
        - HTTPBasic: []
components:
  schemas:
    AttestationsPaginatedResponse:
      properties:
        data:
          $ref: '#/components/schemas/AttestationResponse'
        pagination:
          anyOf:
            - $ref: '#/components/schemas/PaginationInfo'
            - type: 'null'
      type: object
      required:
        - data
      title: AttestationsPaginatedResponse
    AttestationResponse:
      items:
        additionalProperties: true
        type: object
      type: array
      title: AttestationResponse
      examples:
        - - attestation_id: '1234567890'
            attestation_name: generic-evidence
            attestation_type: generic
            created_at: 1754551048.2005377
            description: generic attestation
            has_audit_package: false
            html_url: >-
              http://localhost/b2cebc00v2-shared/flows/flow.b2cebc00-template/trails/trail-b2cebc00?attestation_id=cd5b2c7f-8e4d-45a4-949c-8a71cbdb
            is_compliant: true
            origin_url: >-
              https://github.com/merkely-development/merkely/actions/runs/1049309666
            reported_by: b2cebc00v2
            schema_version: 1
            user_data:
              foo.bar: this should work
    PaginationInfo:
      properties:
        total:
          type: integer
          title: Total
        page:
          type: integer
          title: Page
        per_page:
          type: integer
          title: Per Page
        page_count:
          type: integer
          title: Page Count
      type: object
      required:
        - total
        - page
        - per_page
        - page_count
      title: PaginationInfo
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````