> ## 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.

# Get trail attestation by ID

> The attestation with this ID in the trail, as published, whichever
artifact it was reported for.

A custom attestation whose type defines a summary also carries `summary`,
or `summary_unavailable: true` when it cannot be built.



## OpenAPI

````yaml https://app.kosli.com/api/v2/openapi.json get /attestations/{org}/{flow_name}/trail/{trail_name}/attestation/{attestation_id}
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/{attestation_id}:
    get:
      tags:
        - Attestation
      summary: Get trail attestation by ID
      description: >-
        The attestation with this ID in the trail, as published, whichever

        artifact it was reported for.


        A custom attestation whose type defines a summary also carries
        `summary`,

        or `summary_unavailable: true` when it cannot be built.
      operationId: get_attestation
      parameters:
        - name: flow_name
          in: path
          required: true
          schema:
            type: string
            pattern: ^[a-zA-Z0-9][a-zA-Z0-9\.\-_~]*$
            title: Flow Name
        - name: trail_name
          in: path
          required: true
          schema:
            type: string
            pattern: ^[a-zA-Z0-9][a-zA-Z0-9\.\-_~]*$
            title: Trail Name
        - name: attestation_id
          in: path
          required: true
          schema:
            type: string
            title: Attestation Id
        - name: org
          in: path
          required: true
          schema:
            type: string
            title: Org
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AttestationRecordResponse'
        '404':
          description: Attestation with id '<id>' not found.
          content:
            application/json:
              example:
                message: Attestation with id '<id>' not found.
              schema:
                $ref: '#/components/schemas/NotFoundResponseModel'
      security:
        - HTTPBearer: []
        - HTTPBasic: []
components:
  schemas:
    AttestationRecordResponse:
      additionalProperties: true
      type: object
      title: AttestationRecordResponse
      description: One attestation as published, shaped as an item of AttestationResponse.
    NotFoundResponseModel:
      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
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````

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