Cancel post

View .md

Cancel a scheduled post before it is queued for delivery.


Cancel a post while it is still scheduled. Once it has queued for delivery it can no longer be canceled.

POST/v1/posts/{id}/cancel
API key (dra_…) or dashboard JWT

Cancel a scheduled post that has not yet been queued for delivery.

Body & query parameters

idstringpathrequired

The post id to cancel.

Error codes

409

Post already queued/processing and can no longer be canceled.

404

Post not found.

const response = await fetch("https://api.dravo.dev/v1/posts/{id}/cancel", {  method: "POST",  headers: {  "Authorization": "Bearer " + process.env.DRAVO_API_KEY,}});const data = await response.json();console.log(data);
{  "id": "post_2a7f93",  "status": "canceled",  "scheduled_at": "2026-07-01T09:00:00Z"}