Skip to content
Proud to collaborate with Microsoft for Startups

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 ​

PropertyValue
Workflow typeAtomic
LibraryApp-spad
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuidstringYes——
plan_uuiduuidYes——
limitintegerNo50—
offsetintegerNo0—

Output Schema ​

FieldTypeRequiredDefaultDescription
itemslistYes——
countintegerYes——
totalintegerYes——
plan_uuidstringYes——
errorstringNo——
error_typestringNo—Error-as-field envelope populated when query() raises.

States ​

StateInitialTerminalSuccessAuto-advanceDescription
doneYesYesYes——

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"
  }
}