content.download
Read a download entry’s description and category context.
GET
/api/v1/{locale}/downloads/{slug}API scope content.download
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. |
Query parameters
| Field | Type | Requirement | Description |
|---|---|---|---|
category | string | Optional | Category slug. |
q | string | Optional | Title or content search. |
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" \
"${MINEXON_BASE_URL}/api/v1/en/downloads/example?q=example"Response
HTTP 200 · application/json
The fields below are inside the response’s data object.
| Field | Type | Requirement | Description |
|---|---|---|---|
locale | string | Required | Response locale. |
error | string or null | Conditional | Action error. Can be empty on success. |
errors | array or object | Conditional | Field or form validation errors. |
notice | string or null | Conditional | Action notice. |
categories | array or object | Conditional | Available categories or a map keyed by category. |
item | object | Conditional | Current entry. |
category | object or null | Conditional | Selected category. |
selected | JSON value | Conditional | Category or filter selected on this screen. |
query | string | Conditional | Applied search text. |
slug | string | Conditional | Record slug. |
Nested fields
| Field | Type | Requirement | Description |
|---|---|---|---|
item.slug | string | Conditional | Slug used by the download operation. |
item.filename | string or null | Conditional | Suggested download name. |
item.mime | string or null | Conditional | File media type. |
item.size | integer | Conditional | File size in bytes. |
Selected fields from an example response
{
"data": {
"locale": "en",
"categories": [],
"item": {},
"category": "announcements",
"query": "example"
}
}