Content Engine

Save a content draft

Saves generated markdown as a draft content version for editorial review, tracing it back to the prompt (and optionally the generation receipt) it came from. The builder-workspace pair (builder_workspace_id + expected_workspace_version_id) requires user (dashboard) authentication and is rejected with 400 on API-key requests. Requires the GEO product.

post/org/content-engine/draft

Request

  • Base URL
    https://apiv2.senso.ai/api/v1
  • Auth
    API key in header X-API-Key

Request body

geo_question_idstring uuid

The prompt this content answers.

raw_markdownstring required

The generated content body, in markdown.

seo_titlestring required

SEO title for the content.

summarystring

Optional summary of the content.

content_idstring uuid

Existing content item to save a new version of. Omit to create a new item.

generation_run_idstring uuid

The generation run this draft came from, if any.

generation_receipt_idstring uuid

The generation receipt to attribute this draft to, if any.

builder_workspace_idstring uuid

The builder workspace this draft came from, if any. Must be paired with expected_workspace_version_id.

expected_workspace_version_idstring uuid

The workspace version expected to be current, for optimistic concurrency. Must be paired with builder_workspace_id.

Response

The saved draft's content and version identifiers.

content_idstring uuid required

The content item the draft was saved to.

version_idstring uuid required

The created draft version's id.

version_numinteger required

The created draft version's number.

editorial_statusstring required

Editorial status of the created version (a draft).

source_workspace_version_idstring uuid

The builder workspace version this draft was saved from, when applicable.

Changes

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