Posts
List posts
Lists the posts of the establishments in reach of the token, newest first, filtered by establishment, status, date window and author, page by page.
GET /v1/posts lists all the posts accessible to the token, most recent first, filtered by establishmentId, status, from, to and createdBy (me or app). A post matches status when at least one of its networks is in that state. See pagination.
The possible states of a post are described on the Read a post page.
Authorizations
AuthorizationstringheaderrequiredYour personal key or OAuth access token, sent as
Bearer <token>.
Query parameters
establishmentIdstringOnly the posts of this establishment.
cursorstringThe
nextCursorof the previous page.statusstringLive: at least one network in this state. The post
statussummarizes its networks, so filtering onfailedcan returnpartial.Allowed values:
draftscheduledpublishingpublishedsent_to_inboxfailedfromstring<date-time>Live: at least one network published (or, before publication, scheduled) from this instant.
tostring<date-time>Live: and before this instant (excluded).
createdBystringLive:
mefor the posts of the person the token acts for,appfor those this application created. Absent: all.Allowed values:
meapplimitnumberPage size, from 1 to 100 (default 20).
Response
A page of posts, with nextCursor when more follow.
dataobject[]requiredThe posts of the page
Show child attributes
idstringrequiredIdentifier of the post
statusstringrequiredAcross all networks;
partial: published on one, failed on anotherAllowed values:
draftscheduledpublishingpublishedsent_to_inboxfailedpartialestablishmentIdstringrequiredEstablishment of the post
createdAtstring<date-time>requiredWhen the post was created
targetsobject[]requiredOne entry per network and account: two accounts on one network, two entries
Show child attributes
platformstringrequiredNetwork of the target
accountIdstringrequiredThe account that publishes (
GET /v1/establishments/:id/accounts)statestringrequiredState of the target on its network
Allowed values:
draftscheduledpublishingpublishedsent_to_inboxfailedpublishedAtstring<date-time>When the target was published
permalinkstringLink to the published post on the network
errorstringWhy the network refused
scheduledAtstring<date-time>When the post is scheduled to be published
nextCursorstringPass it as
?cursor=for the next page; absent at the end