---
title: "Download exported CSV file"
method: POST
path: "/api-offers/offers-exports/actions/download-export-file"
tags: ["Exports"]
---

# Download exported CSV file

`POST /api-offers/offers-exports/actions/download-export-file`

## Request

- Base URL: `https://live.copilot.fabric.inc`
- URL: `https://live.copilot.fabric.inc/api-offers/offers-exports/actions/download-export-file`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/fabric/apis/offers-v2/docs/api-offers/offers-exports/actions/download-export-file/post.ts> (a function with typed inputs; its response is checked against the schema)

This endpoint lets you generate a URL, using fileId, from which you can download the exported CSV file. The generated URL expires in five mins.

## Headers

- `x-site-context` string, required

## Request body

- DownloadExportUrl: The URL of the downloadable CSV.
  - `fileId` string, required: The `fileId` value retrieved from the [get export request by ID](/v2/api-reference/offers-v2/exports/get-export-request-by-id) endpoint. This is used to download the exported CSV.

## Response `200`

OK

- DownloadExportUrlResponse: The URL of the downloadable CSV.
  - `url` string, required: The AWS S3 URL to download the exported CSV.
  - `fileId` string, required: The S3 `fileId` value to generate a downloadable CSV.

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `500`: Internal server error

---

[API](https://skmtc.dev/fabric/apis/offers-v2.md) - [All operations](https://skmtc.dev/fabric/apis/offers-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/fabric/apis/offers-v2/revisions/da2bd742b9bc?raw)
