List publications
const url = 'https://api.warmup.social/projects/00000000-0000-0000-0000-000000000000/publications';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.warmup.social/projects/00000000-0000-0000-0000-000000000000/publications \ --header 'Authorization: Bearer <token>'With from and to — the planner window: publications whose scheduledAt is in
[from, to) plus every draft without a date. Without them — the 50 most recent.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Example
00000000-0000-0000-0000-000000000000Project UUID.
Query Parameters
Section titled “Query Parameters”Window start (inclusive), ISO 8601 with offset. Pass together with to.
Window end (exclusive), ISO 8601 with offset. Pass together with from.
Responses
Section titled “Responses”The project’s publications.
object
object
draft and scheduled — not sent yet. After sending: publishing while any network is still in progress, published when every network succeeded, otherwise failed (see targets[] for the per-network outcome).
object
When the publication goes (or went) out. null only for a draft without a date.
Per-network outcome. Empty until the publication is sent.
object
Why the target failed. published_unconfirmed — Meta published the post but did not return its id; the post most likely went out.
Example
{ "publications": [ { "kind": "text", "state": "draft", "platforms": [ "facebook" ], "media": { "width": 1080, "height": 1350 }, "timezone": "Europe/Kyiv", "targets": [ { "platform": "facebook", "status": "queued", "errorCode": "connection_missing" } ] } ]}Invalid request.
object
object
Example
{ "statusCode": 400, "message": "Invalid request", "error": "Bad Request"}The Bearer token is missing or invalid.
object
object
Example
{ "statusCode": 400, "message": "Invalid request", "error": "Bad Request"}The requested resource was not found.
object
object
Example
{ "statusCode": 400, "message": "Invalid request", "error": "Bad Request"}