content.download-file
Return the file attached to a published download entry.
GET
/api/v1/{locale}/downloads/{slug}/fileAPI scope content.download-file
Request
Send Authorization: Bearer <key> with each request.
Path parameters
| Field | Type | Requirement | Description |
|---|---|---|---|
locale | tr or en | Required | Request locale. |
slug | string | Required | URL 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.