infipostdocs
Uploads

List Media

GET /media — Infipost Public API

GET/public/v1/media

List the media files already uploaded to your organization's media library, newest first, 18 per page.

cURL
curl --request GET \
  --url 'https://api.infipost.asia/public/v1/media' \
  --header 'Authorization: YOUR_API_KEY'

Authorization

Authorizationstring · headerrequired

Workspace API key or OAuth access token. Send the token directly without a Bearer prefix.

Parameters

pageinteger · query

Page number (1-indexed). Defaults to 1.

searchstring · query

Case-insensitive filter on the original file name.

Response

Paginated list of media files

application/json
{
  "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"
    }
  ]
}
pagesinteger

Total number of pages

resultsarray[]
Show child attributes
idstring

Unique file ID

namestring

Stored file name

originalNamestring

File name as uploaded (searchable)

pathstring

Public file URL, usable as a post attachment

createdAtstring

List 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

bash
curl "https://api.infipost.asia/public/v1/media?search=banner&page=1" \
  -H "Authorization: your-api-key"

Response:

json
{
  "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.