Skip to content

    API reference

    Content drafts and editorial generation

    Set the brand's writing voice, prepare a draft and collect approval for the revision you plan to publish. A publisher can claim the handoff and report what happened at the destination.

    GET /v2/brands/{brand_id}

    • Read the writing voice. Read the tone, audience, preferred terms, terms to avoid and writing samples saved for the brand.
    • Read draft events. Follow the sequence of edits, reviews, approvals, handoffs and publication events for a brand's drafts.

    PATCH /v2/brands/{brand_id}

    • Set the writing voice. Replace the brand voice at its current revision. Use revision zero for the first setup. Existing drafts keep the voice revision used for their copy.

    GET /v2/brands/{brand_id}/drafts

    • List drafts. Filter the brand's drafts by recommendation or editorial status to find work waiting for review.

    GET /v2/brands/{brand_id}/drafts/{draft_id}

    • Read a draft. Read the content and status of one draft, including keywords, voice checks, claim support and handoff details.

    PUT /v2/brands/{brand_id}/drafts/{draft_id}

    • Create a draft. Create a blog post, social post, LinkedIn article, product fact patch or accuracy fix for review.

    PATCH /v2/brands/{brand_id}/drafts/{draft_id}

    • Edit a draft. Change the title, body, guidance or claim support at the expected revision. Send edited copy back for review before approval.
    • Submit a draft for review. Move the current draft revision into review so an approver can inspect its copy and source passages.
    • Request changes. Sends a draft back with a note asking for changes.
    • Approve a draft. Approve the exact copy the reviewer saw. Include the content checksum and expected revision to identify that copy.
    • Hand off a draft. Give a publisher the approved copy and a stable handoff ID for delivery to the destination. Keep the ID to report the outcome.
    • Claim a handoff. Reserve delivery of a handed-off draft for a publisher before sending the approved content to its destination.
    • Record publication. Reports that the draft was published, with its URL and time.
    • Record a publishing failure. Report a failure after confirming the draft was not published. A later attempt needs a new handoff.
    • Claim a destination update. Claim a publish or rollback for one product fact target using the expected destination revision and content checksum.
    • Record a destination update. Record the destination revision and content checksum after a claimed publish or rollback completes.
    • Pause destination updates. Pause work on a product fact patch when the destination has changed or the publisher cannot verify it.
    • Archive a draft. Archive an editorial draft when work on it has ended. The draft event history records the change.

    POST /v2/runs

    GET /v2/runs/{run_id}

    • Read generated content. Check the generation status and review its candidate copy before applying it to the draft.

    Guides for content drafts and editorial generation

    Browse all API operations