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
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-publisher |
| Version | 1.0 |
Input Schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
workflow_run_id | string | No | — | Parent DAG workflow run id (engine-injected when used as a step) |
organization_uuid | string | Yes | — | — |
profile_uuid | string | Yes | — | Which brand look to post as |
storage_object_uuid | string | Yes | — | The video or image to post |
title | string | No | — | — |
caption | string | No | — | — |
kind | string | No | — | YouTube: shorts |
cover_asset_uuid | string | No | — | Cover to use; defaults to the kit's default for the role |
scheduled_for | string | No | — | ISO timestamp to publish at, once approved |
platform | string | No | — | Only needed when the profile binds more than one platform |
Output Schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
workflow_run_id | string | No | — | Parent DAG workflow run id (engine-injected when used as a step) |
organization_uuid | string | Yes | — | — |
profile_uuid | string | Yes | — | Which brand look to post as |
storage_object_uuid | string | Yes | — | The video or image to post |
title | string | No | — | — |
caption | string | No | — | — |
kind | string | No | — | YouTube: shorts |
cover_asset_uuid | string | No | — | Cover to use; defaults to the kit's default for the role |
scheduled_for | string | No | — | — |
platform | string | No | — | — |
publisher_post_uuid | string | No | — | — |
approval_envelope_uuid | string | No | — | — |
status | string | No | — | — |
channel_display_name | string | No | — | — |
profile_name | string | No | — | — |
draft_id | string | No | — | — |
failure_reason | string | No | — | Engine-stamped human-readable failure reason |
failed_at | string | No | — | ISO timestamp when the workflow failed |
failed_at_state | string | No | — | Engine-stamped state when the workflow failed |
failed_step | string | No | — | Engine-stamped step name (DAG path) |
failed_layer | integer | No | — | Engine-stamped layer index (DAG path) |
error | string | No | — | Engine-stamped exception message |
error_type | string | No | — | Engine-stamped exception class name |
completed_at | string | No | — | — |
States
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | execute | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram
Transitions
| From | Action | To | Description |
|---|---|---|---|
pending | execute | completed | — |
* (any state) | fail | failed | — |
Outcomes
| Outcome | Type | Description | State Data Keys |
|---|---|---|---|
completed | SUCCESS | Publisher atom completed successfully | completed_at |
failed | FAILURE | Publisher atom failed | failure_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"
}
}