Content: Media (internal)
List _media objects
List objects of Media (internal) type. <br />
get/api/v1/content/_media
Request
- Base URL: https://api.flotiq.com
- URL: https://api.flotiq.com/api/v1/content/_media
- Auth: API key in header X-AUTH-TOKEN
Query parameters
pagenumber
Example:1
Listing page number, 1-based
limitnumber
Example:20
Page limit
order_bystring
Example:internal.createdAt
Order by field
order_directionstring
Example:asc
Order direction
hydratenumber
Should hydrate relations of object, for now only one level of hydration is possible
filtersstring
Example:{"slug":{"type":"contains","filter":"test"},"title":{"type":"contains","filter":"test"}}
List filters
ids[]string[]
Ids of objects to return.
Response
OK
Example response
{
"total_count": 1,
"count": 1,
"total_pages": 1,
"current_page": 1,
"data": [
{
"id": "_media-698d20aa-193a-47b3-be4d-550c1aab47e7",
"extension": "png",
"fileName": "example_image.png",
"mimeType": "image/png",
"size": 87258,
"type": "image",
"source": "disk",
"tags": [
{
"dataUrl": "/api/v1/content/_tag/_tag-641775",
"type": "internal"
}
],
"variants": [
{
"name": "square",
"trim": {
"top": 10,
"right": 10,
"bottom": 10,
"left": 10,
"width": 10,
"height": 10
}
}
],
"externalId": "",
"url": "/image/0x0/_media-698d20aa-193a-47b3-be4d-550c1aab47e7.png",
"height": 517,
"width": 925,
"internal": {
"contentType": "_media",
"createdAt": "2025-02-06T10:24:27+00:00",
"updatedAt": "2025-02-06T10:24:27+00:00",
"deletedAt": "",
"workflowState": "saved",
"objectTitle": "example_image.png",
"latestVersion": 1
}
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.