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.
Authorizations
AuthorizationstringrequiredYour 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
200application/json
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
400
invalid_cursor, or invalid_request.
404
establishment_not_found: out of reach of the token.
4XXapplication/json
Any other error, in the error envelope.