---
title: "Request scan reports CSV export"
method: POST
path: "/scan/v3/reports/csv"
tags: ["model-scanner_other"]
---

# Request scan reports CSV export

`POST /scan/v3/reports/csv`

Asynchronously initiates generation of a CSV scan report containing all scan results for the given time range.
Returns an ephemeral job ID that can be used to check the status of the export and download the file.
File is stored for 30 days once generated.

Constraints:
- Both `time[gte]` and `time[lte]` are required
- Date range cannot exceed 31 days
- Dates must be in RFC3339 format (e.g., 2023-01-01T00:00:00Z)
- Only scans with status "done" will be included in the export

## Query parameters

- `time` object, required
  - `gte` string, date-time, required — Start of time range (RFC3339 format)
  - `lte` string, date-time, required — End of time range (RFC3339 format, max 31 days from gte)

## Response `202`

CSV export initiated

## Other responses

- `400` — The request failed due to a client error, with one or more of the following possible causes: 1. The request required a tenant_id field, which was missing. 2. The request was malformed syntactically or semantically.
- `422` — Validation Error

---

[API](https://skmtc.net/hiddenlayerai/apis/hiddenlayer-audit-api.md) · [All operations](https://skmtc.net/hiddenlayerai/apis/hiddenlayer-audit-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hiddenlayerai/hiddenlayer-audit-api/revisions/d8c55b669109/schema)
