meta.instagram.carousel.publish
Publish an Instagram carousel: per-item container → await FINISHED → parent carousel container → await → media_publish. Uses schedule_transition.
Overview
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-meta |
| 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 | — | — |
connection_uuid | string | Yes | — | — |
instagram_business_account_id | string | Yes | — | — |
caption | string | No | — | — |
items | json | Yes | — | Ordered JSON array of objects with image_url and/or media_id per carousel slide. Caller resolves storage — no storage_object_uuids in this workflow. |
timeout_seconds | integer | No | — | — |
poll_interval | integer | No | — | — |
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 | — | — |
connection_uuid | string | Yes | — | — |
instagram_business_account_id | string | Yes | — | — |
caption | string | No | — | — |
items | json | Yes | — | Ordered JSON array of objects with image_url and/or media_id per carousel slide. Caller resolves storage — no storage_object_uuids in this workflow. |
timeout_seconds | integer | No | — | — |
poll_interval | integer | No | — | — |
item_index | integer | No | — | — |
item_creation_ids | json | No | — | — |
items_resolved | json | No | — | — |
current_creation_id | string | No | — | — |
parent_creation_id | string | No | — | — |
poll_count | integer | No | — | — |
started_at_epoch | integer | No | — | — |
await_target | string | No | — | — |
post_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 | — | start | — |
awaiting_item | No | No | — | — | — |
awaiting_parent | No | No | — | — | — |
creating_item | No | No | — | — | — |
creating_parent | No | No | — | — | — |
publishing | No | No | — | — | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram
Transitions
| From | Action | To | Description |
|---|---|---|---|
pending | start | creating_item | — |
creating_item | create_item | awaiting_item | — |
awaiting_item | poll_item | awaiting_item | — |
awaiting_item | next_item | creating_item | — |
awaiting_item | items_done | creating_parent | — |
creating_parent | create_parent | awaiting_parent | — |
awaiting_parent | poll_parent | awaiting_parent | — |
awaiting_parent | parent_ready | publishing | — |
publishing | publish | completed | — |
* (any state) | fail | failed | — |
Outcomes
| Outcome | Type | Description | State Data Keys |
|---|---|---|---|
completed | SUCCESS | Instagram carousel published | post_id, parent_creation_id |
failed | FAILURE | Instagram carousel publish failed | failure_reason |
API Usage
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "meta.instagram.carousel.publish",
"initial_data": {
"organization_uuid": "value",
"connection_uuid": "value",
"instagram_business_account_id": "value",
"items": "value"
}
}