> ## 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/get-trail-attestation",
  "feedback": "Description of the issue"
}
```

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

</AgentInstructions>

# Get trail attestation



## OpenAPI

````yaml https://app.kosli.com/api/v2/openapi.json get /attestations/{org}/{flow_name}/trail/{trail_name}/{attestation_name}
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}/{flow_name}/trail/{trail_name}/{attestation_name}:
    get:
      tags:
        - Attestation
      summary: Get trail attestation
      operationId: >-
        get_trail_attestation_attestations__org___flow_name__trail__trail_name___attestation_name__get
      parameters:
        - name: flow_name
          in: path
          required: true
          schema:
            type: string
            title: Flow Name
        - name: trail_name
          in: path
          required: true
          schema:
            type: string
            title: Trail Name
        - name: attestation_name
          in: path
          required: true
          schema:
            type: string
            title: Attestation Name
        - name: org
          in: path
          required: true
          schema:
            type: string
            title: Org
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AttestationResponse'
        '404':
          description: Flow Not Found
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/fastapi_app__errors__NotFoundResponse___locals___NotFoundResponseModel__1
      security:
        - HTTPBearer: []
        - HTTPBasic: []
components:
  schemas:
    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
    fastapi_app__errors__NotFoundResponse___locals___NotFoundResponseModel__1:
      properties:
        message:
          type: string
          title: Message
          description: Error message
        errors:
          anyOf:
            - additionalProperties:
                type: string
              type: object
            - type: 'null'
          title: Errors
          description: Validation errors by field
      type: object
      required:
        - message
      title: NotFoundResponseModel
      description: Flow not found
      examples:
        - message: Flow not found
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````