---
title: "Download export file"
method: POST
path: "/workflows/exports/{id}/download"
tags: ["Workflows"]
---

# Download export file

`POST /workflows/exports/{id}/download`

## Request

- Base URL: `https://api.surense.com/api/v1`
- URL: `https://api.surense.com/api/v1/workflows/exports/{id}/download`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://api.surense.com/oauth/token` scopes: `global:export`

Export workflows is a 3-stage process:

(1) Filter and choose which workflows to export using `POST /workflows/exports` - works like `POST /workflows/search` with filtering, returns the UUID of the export record.

(2) Check export status using `GET /workflows/exports/{id}` - status can be `INITIATED`, `PROCESSING`, `PROCESSED`, or `FAILED`.

(3) Download the file using `POST /workflows/exports/{id}/download` - returns the URL of the file in the `url` field that can be fetched using a simple HTTP GET request.

**This is Stage 3 of 3: Download the file.**

## Path parameters

- `id` string, uuid, required

## Response `200`

OK

- DownloadExportResponse
  - `fileName` string
  - `contentType` string
  - `url` string

---

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