Publish now
const url = 'https://api.warmup.social/projects/00000000-0000-0000-0000-000000000000/publications/00000000-0000-0000-0000-000000000000/publish';const options = {method: 'POST', 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 POST \ --url https://api.warmup.social/projects/00000000-0000-0000-0000-000000000000/publications/00000000-0000-0000-0000-000000000000/publish \ --header 'Authorization: Bearer <token>'Sends a draft or scheduled publication right away, ignoring its scheduledAt.
Counts towards the publishing rate limit.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Example
00000000-0000-0000-0000-000000000000Project UUID.
Example
00000000-0000-0000-0000-000000000000Publication UUID.
Responses
Section titled “Responses”Publication queued.
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
{ "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"}The publication was already sent (publication_dispatched), the network is not connected (connection_missing) or the connection is not active (connection_not_ready).
Error with a machine-readable code. Body validation errors come as formErrors / fieldErrors; business errors carry a code.
object
object
Example
{ "code": "connection_missing", "platform": "facebook", "fieldErrors": { "mediaId": [ "media_required" ] }}The publishing rate limit was exceeded.
object
object
Example
{ "statusCode": 400, "message": "Invalid request", "error": "Bad Request"}