spad.drift-plan.history ​
Paginated event log for a specific SpadDriftPlan
Paginated SpadDriftPlanEvent stream for a specific plan.
Inputs:
- organization_id: Organization ID (required)
- plan_uuid: Plan UUID (required)
- limit: Page size — clamped to the engine-wide hard cap (default 50)
- offset: Pagination offset (default 0)
Outputs (terminal state_data):
- items: list of event public dicts (UUID-only)
- count: number of items returned
- total: total events for this plan
- plan_uuid: the plan UUID these events belong to
- error: str | None (only on failure)
Raises:
- WorkflowBusinessError(code="DRIFT_PLAN_NOT_FOUND") if the plan_uuid does not exist or is in a different organization.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-spad |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | string | Yes | — | — |
plan_uuid | uuid | Yes | — | — |
limit | integer | No | 50 | — |
offset | integer | No | 0 | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
items | list | Yes | — | — |
count | integer | Yes | — | — |
total | integer | Yes | — | — |
plan_uuid | string | Yes | — | — |
error | string | No | — | — |
error_type | string | No | — | Error-as-field envelope populated when query() raises. |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
done | Yes | Yes | Yes | — | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "spad.drift-plan.history",
"initial_data": {
"organization_uuid": "value",
"plan_uuid": "value"
}
}