Workflow Status API
Zipline.AI exposes a workflow status endpoint for scripts and external systems that need to monitor a workflow run after it has been created.
Use this API when you need to poll workflow state from automation. The Zipline.AI Hub UI uses the same workflow status data on workflow detail pages.
Endpoint
GET /workflow/v2/{workflowId}/statusReplace {workflowId} with the workflow ID returned by the workflow start API or shown in the Zipline.AI Hub UI.
If your deployment enables authentication, include a bearer token. The zipline auth get-access-token command prints a short-lived token that can be used from scripts:
curl -H "Authorization: Bearer $(zipline auth get-access-token)"
https://zipline.example.com/workflow/v2/<workflowId>/statusThe endpoint requires viewer access when role-based authorization is enabled.
Response
The response contains the workflow-level status and the node execution timeline for that workflow run.
{
"workflowId": "6f5c8e2d-2f0d-4d5e-8f6b-9e7e4f5c2d1a",
"confName": "team.user_features.v1",
"mode": "backfill",
"branch": "main",
"user": "user@example.com",
"status": 2,
"startPartition": "2026-04-01",
"endPartition": "2026-04-05",
"terminalNodes": ["team.user_features.v1"],
"nodeExecutions": [
{
"nodeName": "team.user_features.v1",
"nodeHash": "abc123",
"startPartition": "2026-04-01",
"endPartition": "2026-04-05",
"dependencies": [],
"stepRuns": [
{
"runId": "step-run-id",
"workflowId": "6f5c8e2d-2f0d-4d5e-8f6b-9e7e4f5c2d1a",
"startPartition": "2026-04-01",
"endPartition": "2026-04-05",
"status": 2,
"attempt": 1,
"startTime": "2026-04-06T01:00:00.000000Z",
"endTime": null
}
]
}
]
}Workflow and step run status fields are returned as JSON integers (enum wire values), not strings. Common workflow status values are:
| Value | Status | Meaning |
|---|---|---|
1 | WAITING | The workflow has been accepted but has not started running yet. |
2 | RUNNING | At least one step is actively running or the workflow is still being processed. |
3 | SUCCEEDED | The workflow completed successfully. |
4 | FAILED | The workflow reached a terminal failure. |
5 | CANCELLED | The workflow was cancelled. |
6 | CANCEL_PENDING | A cancellation request has been accepted but is not complete yet. |
Polling
Poll the status endpoint until the workflow reaches a terminal status:
SUCCEEDEDFAILEDCANCELLED
In JSON responses, these terminal statuses correspond to the integer values 3, 4, and 5.
A typical polling loop checks every 15 to 60 seconds. Use a longer interval for long-running backfills or scheduled workflows.
For detailed progress, inspect nodeExecutions[].stepRuns[]. Step runs include status, partition range, attempt number, start and end times, and dependency links. They do not include job tracking info; see Step job details.
Step job details
To find the job or Spark URL for a step, call the step detail endpoint with the step's runId:
GET /confs/v2/steps/{runId}/detailcurl -H "Authorization: Bearer $(zipline auth get-access-token)"
https://zipline.example.com/confs/v2/steps/<runId>/detailThe response contains a stepRun object that includes jobTrackingInfo (for example jobId and sparkUrl).
From the CLI, zipline hub workflows steps list <workflowId> reads the workflow status endpoint and zipline hub workflows steps status <runId> reads this one; see Monitoring Workflows.
Notes
- The workflow status endpoint is the canonical API for programmatic workflow monitoring.
- Zipline.AI does not currently return a
statusUrlfrom workflow creation responses. - Configure Workflow Webhooks in Hub's Webhooks page when a Slack or PagerDuty notification is appropriate. Poll this endpoint when an external system needs the complete workflow and step-state response.