---
title: "Get export record"
method: GET
path: "/agentnumbers/exports/{id}"
tags: ["Agent Numbers"]
---

# Get export record

`GET /agentnumbers/exports/{id}`

## Request

- Base URL: `https://api.surense.com/api/v1`
- URL: `https://api.surense.com/api/v1/agentnumbers/exports/{id}`
- 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 2 of 3: Check export status.**

## Path parameters

- `id` string, uuid, required

## Response `200`

OK

- ExportRecordValue
  - `id` string, uuid
  - `tenantId` string, uuid
  - `agencyId` string, uuid
  - `providerId` string
  - `status` 'INITIATED' | 'PROCESSING' | 'PROCESSED' | 'FAILED'
  - `createdDate` string, date-time
  - `createdBy` string, uuid
  - `creatorName` string
  - `lastModifiedDate` string, date-time
  - `lastModifiedBy` string, uuid
  - `version` integer
  - `startedAt` string, date-time
  - `endedAt` string, date-time
  - `fileName` string
  - `fileMime` string
  - `downloadable` boolean

---

[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)
