Skip to main content
After submitting a question to the chat query endpoint, the response includes an exports array with download URLs for each generated file. Use this endpoint to download those files directly.

Request

Method: GET
Path: /api/v1/exports/{filename}

Path parameters

string
required
The name of the export file to download. This value comes from the filename field in the exports array of a chat query response.Example: report-1714123456.csv

Response

On success, the endpoint returns the file as a binary download with the appropriate media type: The Content-Disposition header is set to attachment with the original filename, so browsers and curl -O will save the file with the correct name.

Error response

If the requested file does not exist:
HTTP status: 404 Not Found

Example

The exports array in a chat response looks like this:
To download the CSV file and save it locally:
To download the XLSX file:
Export files are stored in the directory specified by the EXPORTS_DIR environment variable, which defaults to /tmp/boardpulse-exports. Files may be cleared when the container restarts unless you mount a persistent volume at that path.