Skip to main content
GET
List media
Needs media:read. See Permissions.
Newest first, 50 a page. per_page takes 1 to 100; more than 100 gives 100.
  • workspace_id keeps one workspace’s files.
  • folder_id keeps the files directly in one folder (not its subfolders); root_only=1 keeps the files in no folder. Send one of them, not both.
  • all_folders=1 gives every file, in a folder or not, whatever folder_id and root_only say.
root_only and all_folders take 1 or 0: true and false are refused with 422.
  • source=ai keeps the files PostSyncer’s AI made; source=upload every other file.
The links in the answer carry only page: send your filters and per_page again with each page. A picture has thumb_url and medium_url once they are made: see Picture copies.

Errors

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

workspace_id
integer

Only this workspace's files. It must be one the key can reach.

folder_id
integer

Only the files directly in this folder (not its subfolders). It must be in a workspace the key can reach, and in workspace_id when that is sent. Not with root_only.

root_only
enum<integer>
default:0

1 for only the files in no folder. Not with folder_id. true and false are refused with 422: send 1 or 0.

Available options:
0,
1
all_folders
enum<integer>
default:0

1 for the files of every folder and of none, whatever folder_id or root_only say. true and false are refused with 422: send 1 or 0.

Available options:
0,
1
source
enum<string>

ai: only files PostSyncer's AI made. upload: every other file. Left out: both.

Available options:
ai,
upload
page
integer
default:1

The page, from 1.

Required range: x >= 1
per_page
integer
default:50

Files a page, from 1. More than 100 gives 100.

Required range: 1 <= x <= 100

Response

A page of files.

data
object[]
required

Links to the list's first, last, previous and next pages.

meta
object
required

Where this page sits in the whole list.