Skip to main content
DELETE
/
api
/
calendar
/
posts
Soft-delete a scheduled social post (bulk endpoint)
curl --request DELETE \
  --url https://app.puffle.ai/api/calendar/posts \
  --header 'Authorization: Bearer <token>'
{ "success": true }

Overview

Archive a post identified by ?id=<uuid>. The handler: (1) clears late_post_id (stops Late from publishing), (2) sets archived_at = now(), (3) flips status back to draft. Already-posted posts cannot be archived. Despite the bulk name, this deletes exactly one post per call. New integrations should use deleteSocialPost (DELETE /api/calendar/posts/{postId}) instead — this query-param form is kept for legacy clients.

AI agent notes

Reversible — call restoreSocialPost to undo. To hard-delete, first call this, then permanentDeleteSocialPost.Safety — agents should confirm with the human before archiving any post that was scheduled with late_post_id set, since that cancels an in-flight publish.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

id
string<uuid>
required

Post ID to soft-delete. Passed as ?id=<uuid>. Despite the endpoint name, this deletes a single post per call.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$

Response

Post archived.

success
enum<boolean>
required
Available options:
true