---
title: "Get an export using the ID"
method: GET
path: "/environments/{environmentId}/exports/{exportId}"
tags: ["Exports"]
---

# Get an export using the ID

`GET /environments/{environmentId}/exports/{exportId}`

## Path parameters

- `environmentId` string, required
- `exportId` string, required

## Response `200`

Successfully retrieved an export and its current state

- Export
  - `id` string, required
  - `format` 'csv', required
  - `model` 'users' | 'visits', required
  - `status` 'completed' | 'failed' | 'pending', required
  - `createdAt` string, date-time, required
  - `startedAt` string, date-time, nullable
  - `completedAt` string, date-time, nullable
  - `downloadUrl` string, url
  - `error` string — When defined, this is the error message and stack trace received when attempting to process the export.

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `500` — Internal Server Error

---

[API](https://skmtc.net/dynamic/apis/dashboard-api.md) · [All operations](https://skmtc.net/dynamic/apis/dashboard-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/dynamic/dashboard-api/revisions/aac826315d90/schema)
