> ## 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 an evaluation's input

> **Beta** — the Controls feature is in beta. Requests from organizations without it enabled receive `403 Forbidden`.



## OpenAPI

````yaml https://app.kosli.com/api/v2/openapi.json get /evaluations/{org}/{evaluation_id}/input
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:
  /evaluations/{org}/{evaluation_id}/input:
    get:
      tags:
        - Evaluations
      summary: Get an evaluation's input
      description: >-
        **Beta** — the Controls feature is in beta. Requests from organizations
        without it enabled receive `403 Forbidden`.
      operationId: get_evaluation_input
      parameters:
        - name: evaluation_id
          in: path
          required: true
          schema:
            type: string
            description: Id of the evaluation, as returned when it was created or listed
            title: Evaluation Id
          description: Id of the evaluation, as returned when it was created or listed
        - name: org
          in: path
          required: true
          schema:
            type: string
            title: Org
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EvaluationInputResponse'
        '404':
          description: Evaluation not found
          content:
            application/json:
              example:
                message: Evaluation not found
              schema:
                $ref: '#/components/schemas/NotFoundResponseModel'
        '409':
          description: Two slots share an attestation name, so no policy input can be built
          content:
            application/json:
              example:
                message: >-
                  Two slots share an attestation name, so no policy input can be
                  built
              schema:
                $ref: '#/components/schemas/ConflictResponseModel'
      security:
        - HTTPBearer: []
        - HTTPBasic: []
components:
  schemas:
    EvaluationInputResponse:
      properties:
        evaluation:
          $ref: '#/components/schemas/EvaluationTimeResponse'
          description: What the policy reads as `input.evaluation`
        trails:
          items:
            $ref: '#/components/schemas/TrailMomentResponse'
          type: array
          title: Trails
          description: Each trail's moment at the request time, in no meaningful order
        trail:
          anyOf:
            - $ref: '#/components/schemas/TrailMomentResponse'
            - type: 'null'
          description: >-
            The one trail's moment, present only when the evaluation named a
            single trail
      type: object
      required:
        - evaluation
        - trails
      title: EvaluationInputResponse
    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
    ConflictResponseModel:
      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: ConflictResponseModel
    EvaluationTimeResponse:
      properties:
        time:
          type: string
          title: Time
          description: >-
            The evaluation's request time, RFC 3339 UTC truncated to the
            microsecond: the only clock a policy has
      type: object
      required:
        - time
      title: EvaluationTimeResponse
    TrailMomentResponse:
      properties:
        flow_name:
          type: string
          pattern: ^[a-zA-Z0-9][a-zA-Z0-9\.\-_~]*$
          title: Flow Name
          description: Name of the flow the trail belongs to, as asked for
        trail_name:
          type: string
          pattern: ^[a-zA-Z0-9][a-zA-Z0-9\.\-_~]*$
          title: Trail Name
          description: Name of the trail
        moment_number:
          type: integer
          title: Moment Number
          description: Address of this moment within the trail's series
        created_at:
          type: number
          title: Created At
          description: Unix timestamp at which the moment was recorded
        template_id:
          type: string
          title: Template Id
          description: Id of the flow template the moment was evaluated against
        compliance_status:
          additionalProperties: true
          type: object
          title: Compliance Status
          description: >-
            Compliance slots as at the moment, keyed by attestation name so a
            policy can address one, each entry carrying the fields of its stored
            attestation. Untyped because a joined body carries whatever fields
            its attestation type defines.
      additionalProperties: false
      type: object
      required:
        - flow_name
        - trail_name
        - moment_number
        - created_at
        - template_id
        - compliance_status
      title: TrailMomentResponse
      description: A moment with each attestation's stored body joined onto its slot entry.
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````

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