Skip to Content
MinexonMinexon

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

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

Query parameters

FieldTypeRequirementDescription
categorystringOptionalCategory slug.
qstringOptionalTitle 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.

FieldTypeRequirementDescription
localestringRequiredResponse locale.
errorstring or nullConditionalAction error. Can be empty on success.
errorsarray or objectConditionalField or form validation errors.
noticestring or nullConditionalAction notice.
categoriesarray or objectConditionalAvailable categories or a map keyed by category.
itemobjectConditionalCurrent entry.
categoryobject or nullConditionalSelected category.
selectedJSON valueConditionalCategory or filter selected on this screen.
querystringConditionalApplied search text.
slugstringConditionalRecord slug.
Nested fields
FieldTypeRequirementDescription
item.slugstringConditionalSlug used by the download operation.
item.filenamestring or nullConditionalSuggested download name.
item.mimestring or nullConditionalFile media type.
item.sizeintegerConditionalFile size in bytes.

Selected fields from an example response

{
  "data": {
    "locale": "en",
    "categories": [],
    "item": {},
    "category": "announcements",
    "query": "example"
  }
}

Flow and error cases

Shared error and authentication contract