---
title: "Export a site's form submissions as CSV."
method: GET
path: "/api/v1/sites/{id}/submissions/csv"
tags: ["submissions"]
---

# Export a site's form submissions as CSV.

`GET /api/v1/sites/{id}/submissions/csv`

## Request

- Base URL: `https://harvis.dev`
- URL: `https://harvis.dev/api/v1/sites/{id}/submissions/csv`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `better-auth.session_token`

## Path parameters

- `id` string, required

## Query parameters

- `form` string

## Response `200`

One column per field anyone ever submitted, in first-seen order, sent as an attachment named <subdomain>-<form>.csv. Values beginning =, +, - or @ are quote-prefixed so a spreadsheet does not execute visitor-supplied text as a formula.

## Other responses

- `401`: `unauthorized`
- `403`: `suspended`
- `404`: `siteNotFound`

---

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