Skip to Content
MinexonMinexon

content.download-file

Return the file attached to a published download entry.

GET/api/v1/{locale}/downloads/{slug}/file

API scope content.download-file

Request

Send Authorization: Bearer <key> with each request.

Path parameters

FieldTypeRequirementDescription
localetr or enRequiredRequest locale.
slugstringRequiredURL slug of the resource.

This endpoint takes no request body.

Run samples from your application server. See Quickstart for variables and sessions.

curl --fail-with-body --request GET \
  -H "Authorization: Bearer $MINEXON_API_KEY" \
  --output minexon-file \
  "${MINEXON_BASE_URL}/api/v1/en/downloads/example/file"

Response

HTTP 200

The body is raw file bytes. Read Content-Type for its media type.

HTTP/1.1 200 OK
Content-Type: <file media type>

<binary bytes>

Flow and error cases

Content-Disposition provides the download filename. Missing entries or files return 404.

Shared error and authentication contract