Get workflow analytics
Statistics for one workflow over a date range: cohort size, conversion, cycle time, and per phase how many records reached it, conversion to the next phase, time spent, and how many are open or overdue. Durations are in seconds; rates are 0-1 or null when there is no sample. Requires workflows:read.
The numbers cover the whole workspace, so only managers' tokens and API keys get them; tokens of users with restricted record access get 403 ANALYTICS_RESTRICTED. Leave out both dates for the last 90 days, ending today in the workspace's timezone; the span is at most 730 days. While the analytics replica is being prepared: 503 ANALYTICS_NOT_READY with Retry-After: 60.
Parameters
idstringrequiredpathWorkflow ID from GET /v4/workflows
from_ datestringqueryYYYY-MM-DD, with to_date
to_ datestringqueryYYYY-MM-DD, with from_date
owner_ idsstringqueryComma-separated user IDs, at most 100
team_ idsstringqueryComma-separated team IDs, at most 100
source_ idsstringqueryComma-separated source IDs, at most 100
source_ group_ idsstringqueryComma-separated source group IDs, at most 100
type_ idsstringqueryComma-separated record type IDs, at most 100
transitionsstringquerytrue adds transitions: event counts between phases.
Response
Workflow analytics
Invalid API key
Insufficient scope, or restricted record access
Workflow not found
Invalid filters
Internal server error
Analytics not ready or unavailable
Authorization
bearer_ authhttp (bearer) in headerAPI key or OAuth access token in Authorization header
Scopes: workflows:read
oauth2_ authoauth2OAuth authorization code flow with mandatory S256 PKCE.
Scopes: workflows:read
apikey_ authapiKey in queryAPI key in query string
Scopes: workflows:read
