Skip to content
Proud to collaborate with Microsoft for Startups

publisher.post.create-with-approval ​

Draft a post from a publisher profile and open a review envelope. Publishes nothing — a human approves first (SOCIAL-004).

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-publisher
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
workflow_run_idstringNo—Parent DAG workflow run id (engine-injected when used as a step)
organization_uuidstringYes——
profile_uuidstringYes—Which brand look to post as
storage_object_uuidstringYes—The video or image to post
titlestringNo——
captionstringNo——
kindstringNo—YouTube: shorts
cover_asset_uuidstringNo—Cover to use; defaults to the kit's default for the role
scheduled_forstringNo—ISO timestamp to publish at, once approved
platformstringNo—Only needed when the profile binds more than one platform

Output Schema ​

FieldTypeRequiredDefaultDescription
workflow_run_idstringNo—Parent DAG workflow run id (engine-injected when used as a step)
organization_uuidstringYes——
profile_uuidstringYes—Which brand look to post as
storage_object_uuidstringYes—The video or image to post
titlestringNo——
captionstringNo——
kindstringNo—YouTube: shorts
cover_asset_uuidstringNo—Cover to use; defaults to the kit's default for the role
scheduled_forstringNo——
platformstringNo——
publisher_post_uuidstringNo——
approval_envelope_uuidstringNo——
statusstringNo——
channel_display_namestringNo——
profile_namestringNo——
draft_idstringNo——
failure_reasonstringNo—Engine-stamped human-readable failure reason
failed_atstringNo—ISO timestamp when the workflow failed
failed_at_statestringNo—Engine-stamped state when the workflow failed
failed_stepstringNo—Engine-stamped step name (DAG path)
failed_layerintegerNo—Engine-stamped layer index (DAG path)
errorstringNo—Engine-stamped exception message
error_typestringNo—Engine-stamped exception class name
completed_atstringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—execute—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompleted—
* (any state)failfailed—

Outcomes ​

OutcomeTypeDescriptionState Data Keys
completedSUCCESSPublisher atom completed successfullycompleted_at
failedFAILUREPublisher atom failedfailure_reason, error, error_type

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "publisher.post.create-with-approval",
  "initial_data": {
    "organization_uuid": "value",
    "profile_uuid": "value",
    "storage_object_uuid": "value"
  }
}