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

# Download Agent Runs Templated Output

> Download all Runs of an Agent into a [Multiple-Run Excel Template](/templated-outputs/excel-templates#multiple-run-templates)

> [!NOTE]
>
> **Rate Limit:** This endpoint is limited to **{limit_0.toLocaleString()} requests per minute** per user.

> [!NOTE]
>
> The output always includes every Run on the Agent. Filtering to a subset of Runs is not currently supported.


## OpenAPI

````yaml openapi.json POST /api/v1/client/agents/{agent_id}/runs/templated-output
openapi: 3.1.0
info:
  title: kolena
  version: 0.1.0
servers: []
security: []
paths:
  /api/v1/client/agents/{agent_id}/runs/templated-output:
    post:
      tags:
        - client
        - agents
      summary: Client Get Runs Templated Output
      operationId: >-
        client_get_runs_templated_output_api_v1_client_agents__agent_id__runs_templated_output_post
      parameters:
        - name: agent_id
          in: path
          required: true
          schema:
            type: integer
            title: Agent Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RunsTemplatedOutputRequest'
      responses:
        '200':
          description: Returns the templated output file containing all runs for download
          content:
            application/vnd.openxmlformats-officedocument.spreadsheetml.sheet:
              schema:
                type: string
                format: binary
            application/vnd.ms-excel.sheet.macroEnabled.12:
              schema:
                type: string
                format: binary
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    RunsTemplatedOutputRequest:
      properties:
        output_template_id:
          type: integer
          title: Output Template Id
          description: >-
            The ID of the multi-run Excel output template to use. The output
            format (`xlsx` or `xlsm`) matches the template file.
      type: object
      required:
        - output_template_id
      title: RunsTemplatedOutputRequest
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer
      description: >-
        Bearer authentication header of the form `Bearer <token>`. The `<token>`
        represents your API key, which must be acquired from the Kolena
        platform.

````

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