How long a workflow's job usually takes, by phase
GET/api/workflows/{workflow_id}/jobs/{job_key}/duration-stats
getJobDurationStats
p50/p90 of one job's duration and of its capacity and boot phases, over its last 50 succeeded runs. Computed on read; a phase is null when no job in the window had it.
Authentication optional — this operation also accepts anonymous requests. When authenticating, use a bearer token or a session cookie.
curl
curl -X GET 'https://neosource.dev/api/workflows/WORKFLOW_ID/jobs/JOB_KEY/duration-stats' \
-H 'Authorization: Bearer $NEOSOURCE_TOKEN'fetch
fetch("https://neosource.dev/api/workflows/WORKFLOW_ID/jobs/JOB_KEY/duration-stats", {
method: "GET",
headers: {
Authorization: "Bearer $NEOSOURCE_TOKEN",
},
});Path parameters
workflow_idrequiredjob_keyrequiredThe job's key (`WorkflowRunJobResponse.job_key`, matrix suffix included).
Responses
200Duration percentiles
application/json
403Forbidden — one of: forbidden, needs_scope
application/json
one of
Standard errors
Bodies documented once for the whole API — see standard errors.
- 400Bad Request — one of: invalid_input
- 404Not Found — one of: not_found
- 429Rate limited — retry after the `Retry-After` header
- 500Internal server error
- 503Service temporarily unavailable / at capacity — retry after the `Retry-After` header
- 504Gateway timeout — the request exceeded the server's handling budget