Skip to main content
GET
media
curl -X GET "https://postsyncer.com/api/v1/media?workspace_id=12&per_page=25" \
  -H "Authorization: Bearer YOUR_API_TOKEN"

List media

Returns a paginated list of media (data, links, meta — same shape as List posts). Items include workspace_id, folder_id, id, url, etc.

Request

workspace_id
integer
Only media in this workspace (must be one you have access to).
folder_id
integer
Only media in this folder (folder must belong to an accessible workspace). Do not use with root_only.
root_only
boolean
When true, only items not in any folder (folder_id null). Do not use with folder_id.
page
integer
Page number (default 1).
per_page
integer
Page size (default 50, max 100).
curl -X GET "https://postsyncer.com/api/v1/media?workspace_id=12&per_page=25" \
  -H "Authorization: Bearer YOUR_API_TOKEN"

Response

200 — paginated APIMedia objects in data.

Errors

401 · 403 · 422 (invalid filters, e.g. wrong workspace or folder_id + root_only together) See Media overview.