# GET /exports/{file}

First published 3 Oct 2026 (release 0.1.0) · Unchanged since publication

UrbeStack release 0.2.35 API operation in the export group.

Download an export file

- Who may call it: administrator
- Token scope, any of: export
- Answers: 200 OK

The 200 response body contains the file bytes. Filenames ending in .enc use the application/octet-stream content type. Other filenames use application/json. The API returns 404 if the export is missing and 500 if it cannot open the file for reading.

## Parameters

- `file` (path, string, matching ^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$, required)

## Example

Set $API to the base URL and $TOKEN to the token, as the [API overview](https://urbestack.com/docs/api.md) shows.

```
curl -sS -X GET "$API/exports/urbestack-panel-20260909T101500Z.json.enc" \
  -H "Authorization: Bearer $TOKEN"
```

Response, 200 OK:

The response body is the file itself.

## Errors

- 400: Invalid file name
- 401: Authentication required
- 404: Export not found
