publisher.snapshot
Posts waiting on review, the next 7 days, disconnected accounts, and profiles missing covers — one round trip. Pure DB read.
Everything the studio's home page shows, in one read.
Overview
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-publisher |
| Version | 1.0 |
Input Schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | string | Yes | — | — |
Output Schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | string | No | — | — |
waiting | json | No | — | Posts awaiting review — capped, see waiting_total |
waiting_total | integer | No | — | — |
upcoming | json | No | — | Approved posts scheduled in the next 7 days |
upcoming_total | integer | No | — | — |
needs_changes_total | integer | No | — | — |
accounts | json | No | — | Per platform: connected true/false |
profiles_missing_covers | json | No | — | — |
reviewer_set | boolean | No | — | False means nothing can be sent for review yet |
failure_reason | string | No | — | — |
error | string | No | — | — |
error_type | string | No | — | — |
States
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
done | Yes | Yes | Yes | — | — |
Outcomes
| Outcome | Type | Description | State Data Keys |
|---|---|---|---|
completed | SUCCESS | Publisher studio read completed | organization_uuid |
failed | FAILURE | Publisher studio read failed | failure_reason |
API Usage
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "publisher.snapshot",
"initial_data": {
"organization_uuid": "value"
}
}