---
title: "Export preview to CSV"
method: POST
path: "/lists/{listID}/contacts/csv"
tags: ["exports"]
---

# Export preview to CSV

`POST /lists/{listID}/contacts/csv`

## Request

- Base URL: `https://api.leadsforge.ai`
- URL: `https://api.leadsforge.ai/lists/{listID}/contacts/csv`
- Auth: API key in header `Authorization`

Export preview to CSV

## Path parameters

- `listID` string, required

## Request body

- ExportContactsCSVRequest
  - `excludeIDs` string[]
  - `includeIDs` string[]

## Response `200`

CSV file

## Other responses

- `400`: Bad Request
- `500`: Internal Server Error

---

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