Own-site execution

Approve, publish, revert, or dismiss a content draft

Publication uses the connected CMS and its verified target. Revert moves only an exact Eli-created native WordPress post to trash, verifies that state, preserves the historical publication receipt and returns an immutable reversal receipt.

post/api/v2/content-drafts/{id}

Request

  • Base URL: https://www.hireeli.io
  • URL: https://www.hireeli.io/api/v2/content-drafts/{id}
  • Auth: one of:
    • HTTP bearer
    • HTTP bearer

Path parameters

idstring uuid required

Tenant-scoped resource UUID.

Headers

x-eli-tenantstring uuid

Workspace UUID. Required for user tokens with multiple memberships. For API keys it is only an equality assertion against the key-pinned workspace.

Request body

action'approve_publish' | 'revert' | 'dismiss' required
confirmtrue

Must be the JSON boolean true. Strings, numbers and free-text phrases are rejected.

confirmed_preview_hashstring

SHA-256 confirmation binding for the exact tool, workspace, resource and preview returned by the immediately preceding preview response.

provider'wordpress' | 'webflow' | 'shopify' | 'contentful' | 'sanity' | 'strapi' | 'generic_api' | 'manual_url'

Optional connected CMS choice. Use manual_url only with publication_url after the page is publicly live.

publication_urlstring uri

Exact public URL used only with provider manual_url so Eli can verify a human publication handoff.

Response

The decision completed. The response is a machine-readable receipt.

decisionstring required

The exact accepted operation.

resourceIdstring required

The decided resource ID.

statusstring required

The state Eli verified after the decision.

urlstring uri nullable required
revertibleboolean required

Whether Eli exposes a guarded machine revert for this completed action.

revert_hintstring nullable required

The exact safe next step for a revert or immutable follow-up.

audit_idstring uuid nullable required

Durable protocol-decision audit row for this machine write.

change_idstring uuid nullable

Exact owned-site change reconciled by a content rollback, when applicable.

publication_receipt_idstring uuid nullable

Immutable publication receipt preserved across rollback.

reversal_receipt_idstring uuid nullable

Immutable verified rollback receipt, when rollback completed.

Example response

{
  "decision": "apply",
  "status": "applied"
}

Changes

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