---
title: "Download Datatable Csv"
method: GET
path: "/v1/datatable_match_agents/{agent_id}/download_csv/"
tags: ["Public"]
---

# Download Datatable Csv

`GET /v1/datatable_match_agents/{agent_id}/download_csv/`

## Request

- Base URL: `https://api.koncile.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.koncile.ai/v1/datatable_match_agents/{agent_id}/download_csv/`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/koncile/apis/koncile-api/docs/v1/datatable_match_agents/:agent_id/download_csv/get.ts> (a function with typed inputs; its response is checked against the schema)

Download the reference CSV of a Datatable Match Agent.

Read counterpart of `upload_csv`, so a template's reference data can be
backed up and restored. The file is returned **exactly as uploaded** —
same delimiter, same header, same columns — so download then re-upload is
a lossless round trip.

Returns 404 if no CSV has been uploaded yet, or if the upload is still
being processed (the link to the stored file is written by the worker, a
few seconds after the upload returns).

## Path parameters

- `agent_id` integer, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

## Changes

- **2026-09-25** `1446f41e0cd4`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/koncile/apis/koncile-api/changes/v1/datatable_match_agents/:agent_id/download_csv/get.md)

---

[API](https://skmtc.dev/koncile/apis/koncile-api.md) - [All operations](https://skmtc.dev/koncile/apis/koncile-api/llms.txt) - [OpenAPI document](https://skmtc.dev/koncile/apis/koncile-api/revisions/37187db89a87?raw)
