Export
ReferenceUpdated June 14, 2026
Export
Download the processed output for a completed list as CSV or JSON. See Lists for list status and management.
Export list results
GET /api/v1/lists/:id/export · scope lists:read
Returns the processed output for a completed list. Call this only after GET /api/v1/lists/:id shows processing_status: "completed".
Path parameters
| Parameter | Type | Description |
|---|---|---|
id | string (UUID) | List ID. |
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
format | string | No | csv (default) or json. |
Example request (CSV)
curl -X GET "https://app.machfive.io/api/v1/lists/LIST_ID/export?format=csv" \
-H "Authorization: Bearer YOUR_API_KEY" \
-o results.csvExample request (JSON)
curl -X GET "https://app.machfive.io/api/v1/lists/LIST_ID/export?format=json" \
-H "Authorization: Bearer YOUR_API_KEY"Response (200 OK)
format=csv: Response body is the processed CSV (same columns as UI download). UseContent-Dispositionif present for filename.format=json: Body is a JSON object:
{
"leads": [
{
"email": "jane@acme.com",
"name": "Jane Doe",
"company": "Acme Inc",
"title": "VP Marketing",
"sequence": [
{ "step": 1, "subject": "...", "body": "..." },
{ "step": 2, "subject": "...", "body": "..." }
]
}
]
}Error responses
| Status | Error | Description |
|---|---|---|
| 409 | NOT_READY | List not yet completed; poll GET /lists/:id first. detail.processing_status shows the current status. |
| 401 | UNAUTHORIZED | Missing or invalid API key. |
| 403 | FORBIDDEN | Key missing the lists:read scope. |
| 404 | NOT_FOUND | List not found or not in this workspace. |
| 500 | INTERNAL_ERROR | Export failed or no processed file available. |