List Media
GET /media — Infipost Public API
List the media files already uploaded to your organization's media library, newest first, 18 per page.
curl --request GET \
--url 'https://api.infipost.asia/public/v1/media' \
--header 'Authorization: YOUR_API_KEY'Authorization
Authorizationstring · headerrequiredWorkspace API key or OAuth access token. Send the token directly without a Bearer prefix.
Parameters
pageinteger · queryPage number (1-indexed). Defaults to 1.
searchstring · queryCase-insensitive filter on the original file name.
Response
Paginated list of media files
{
"pages": 2,
"results": [
{
"id": "e639003b-f727-4a1e-87bd-74a2c48ae41e",
"name": "6fba0ef5febb4400ae8778a5b854224d.png",
"originalName": "cover-cyan.png",
"path": "https://uploads.postiz.com/6fba0ef5febb4400ae8778a5b854224d.png",
"createdAt": "2024-12-14T08:18:54.274Z"
}
]
}pagesintegerTotal number of pages
resultsarray[]Show child attributes
idstringUnique file ID
namestringStored file name
originalNamestringFile name as uploaded (searchable)
pathstringPublic file URL, usable as a post attachment
createdAtstringList the files already in your media library so you can reuse them as post attachments without uploading again. Results are scoped to your organization, sorted newest first, 18 per page.
Query parameters
page: page number, starting at 1 (default 1).search: case-insensitive filter on the original file name.
Example
curl "https://api.infipost.asia/public/v1/media?search=banner&page=1" \
-H "Authorization: your-api-key"
Response:
{
"pages": 1,
"results": [
{
"id": "e639003b-f727-4a1e-87bd-74a2c48ae41e",
"name": "6fba0ef5febb4400ae8778a5b854224d.png",
"originalName": "launch-banner.png",
"path": "https://uploads.postiz.com/6fba0ef5febb4400ae8778a5b854224d.png",
"createdAt": "2025-01-10T09:12:00.000Z"
}
]
}
Pass an item's path in a post's image array (see Create Post). path is a public URL, so there is no separate download endpoint.