Write

Delete draft

Permanently deletes an unpublished draft only (is_draft, not scheduled, not sent). Refused unless confirm is true. Scheduled and published posts cannot be deleted.

post/delete_draft

Request

  • Base URL: https://pdb.postpen.ai/functions/v1/agent-api
  • URL: https://pdb.postpen.ai/functions/v1/agent-api/delete_draft
  • Auth: HTTP bearer

Request body

idstring required

Id of the draft, from list_posts status draft.

confirmboolean required

Must be true. Deleting cannot be undone.

Response

Success. JSON object; never contains LinkedIn tokens.

object required

Changes

No recorded changes to this operation across all 1 revision of this API.