v2

OpenAPI 3.1.02026-07-264014168.2 KB
Runs

Poll the status of a run

Pass runId for a specific run, or only projectId to fetch the project's most recent run. Returns status: "none" when no run exists yet.

get/prompts/status

Query parameters

projectIdstring uuid required

Project id. Required on all data endpoints.

runIdstring uuid

Response

Successful response

runIdstring uuid
status'running' | 'completed' | 'failed' | 'interrupted' | 'cancelled' | 'none'

cancelled is reported by /prompts/status when a failed run had cancelRequested = true. none only appears when no run exists for the project.

totalTasksinteger
completedTasksinteger
failedTasksinteger
pendingTasksinteger
cancelledTasksinteger
incompleteTasksinteger
scraperAttemptedboolean
scraperSucceededboolean
startedAtstring date-time nullable
completedAtstring date-time nullable