---
title: "Download a configuration file"
method: GET
path: "/configuration/download"
tags: ["Admin Configuration"]
---

# Download a configuration file

`GET /configuration/download`

## Request

- Base URL: `http://localhost:8000/api/admin`
- URL: `http://localhost:8000/api/admin/configuration/download`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/bagisto/apis/bagisto-admin-api/docs/configuration/download/get.ts> (a function with typed inputs; its response is checked against the schema)

Streams the file saved for a `file` or `image` configuration field as an attachment. Send `Accept: application/octet-stream`. `channel` and `locale` pick the scoped value for channel- or locale-based fields and default to the current ones.

## Query parameters

- `code` string, required
- `channel` string
- `locale` string

## Response `200`

The stored file is downloaded.

## Other responses

- `401`: Unauthenticated.
- `403`: Missing the configuration permission.
- `404`: Unknown field, or no file is stored for it.
- `422`: Missing code, or the field is not a file or image field.

## Changes

- **2026-10-28** `3198f11be70f`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/bagisto/apis/bagisto-admin-api/changes/configuration/download/get.md)

---

[API](https://skmtc.dev/bagisto/apis/bagisto-admin-api.md) - [All operations](https://skmtc.dev/bagisto/apis/bagisto-admin-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bagisto/apis/bagisto-admin-api/revisions/3198f11be70f?raw)
