Media
List media
Lists the media library of an establishment, newest first, page by page, with URLs signed for the current window. Works in test and live.
An establishment’s media are returned most recent first, page by page: see pagination.
Each media file’s url is signed and expires: keep the id, and read the media again with `GET /v1/media/{id}` when you need a fresh URL.
Authorizations
AuthorizationstringheaderrequiredYour personal key or OAuth access token, sent as
Bearer <token>.
Query parameters
establishmentIdstringrequiredThe establishment whose media library is read.
cursorstringThe
nextCursorof the previous page.limitnumberPage size, from 1 to 100 (default 20).
Response
A page of media, with nextCursor when more follow.
dataobject[]requiredThe media of the page
Show child attributes
idstringrequiredIdentifier of the media, to pass in
media[].idof a posttypestringrequiredKind of the media
Allowed values:
imagevideourlstringrequiredSigned address, valid for the current window
fileNamestringrequiredName of the file
contentTypestringrequiredMIME type of the file
sizenumberrequiredSize in bytes
createdAtstring<date-time>requiredWhen the media was added
thumbnailUrlstringSigned thumbnail (poster of a video, square of an image)
nextCursorstringPass it as
?cursor=for the next page; absent at the end