---
title: "Get the exports for an environment"
method: GET
path: "/environments/{environmentId}/exports"
tags: ["Exports"]
---

# Get the exports for an environment

`GET /environments/{environmentId}/exports`

## Path parameters

- `environmentId` string, required

## Query parameters

- `model` 'users' | 'visits'

## Response `200`

List of exports for this project environment

- ExportsResponse
  - `exports` 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)
