---
title: "Download export file"
method: POST
path: "/agentnumbers/exports/{id}/download"
tags: ["Agent Numbers"]
---

# Download export file

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

## Request

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

Export agent numbers in a 3-stage process:

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

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

(3) Download the file using `POST /agent-numbers/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/agent-number-api.md) - [All operations](https://skmtc.dev/surense/apis/agent-number-api/llms.txt) - [OpenAPI document](https://skmtc.dev/surense/apis/agent-number-api/revisions/aa286e677c4e?raw)
