Workflows

Get workflow analytics

GET
https://api.searchsoftware.nl/v4/workflows/{id}/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

idstringrequiredpath

Workflow ID from GET /v4/workflows

from_datestringquery

YYYY-MM-DD, with to_date

to_datestringquery

YYYY-MM-DD, with from_date

owner_idsstringquery

Comma-separated user IDs, at most 100

team_idsstringquery

Comma-separated team IDs, at most 100

source_idsstringquery

Comma-separated source IDs, at most 100

source_group_idsstringquery

Comma-separated source group IDs, at most 100

type_idsstringquery

Comma-separated record type IDs, at most 100

transitionsstringquery

true adds transitions: event counts between phases.

Response

Workflow analytics

Response fields application/json
statusstringokrequired
Example
ok
Show child attributes
workflow_idstringrequired

Identifier

Example
vM7Lp2q
from_datestringrequired
Example
2026-08-13
to_datestringrequired
Example
2026-11-10
cohort_countinteger<int64>required
Example
10
converted_countinteger<int64>required
Example
2
entry_to_final_ratenumber<float> | nullrequired
Example
0.2
current_open_countinteger<int64>required
Example
6
cycle_median_secondsinteger<int64> | nullrequired
Example
86400
cycle_p90_secondsinteger<int64> | nullrequired
Example
604800
cycle_sample_sizeinteger<int64>required
Example
2
Show child attributes
phase_idstringrequired

Identifier

Example
vM7Lp2q
phase_namestringrequired
Example
Interview
stage_namestringrequired
Example
Process
reached_countinteger<int64>required
Example
8
cumulative_ratenumber<float> | nullrequired

Share of the cohort that reached this phase.

Example
0.8
next_step_ratenumber<float> | nullrequired

Share that went on to the next phase.

Example
0.375
skipped_countinteger<int64>required
Example
0
dwell_median_secondsinteger<int64> | nullrequired
Example
172800
dwell_p90_secondsinteger<int64> | nullrequired
Example
259200
dwell_sample_sizeinteger<int64>required
Example
3
open_countinteger<int64>required
Example
5
overdue_countinteger<int64>required
Example
1
age_median_secondsinteger<int64> | nullrequired
Example
3600
oldest_age_secondsinteger<int64> | nullrequired
Example
9000

Only with ?transitions=true.

Show child attributes
from_phase_idstringrequired

Identifier

Example
vM7Lp2q
from_phase_namestringrequired
Example
Interview
to_phase_idstringrequired

Identifier

Example
vM7Lp2q
to_phase_namestringrequired
Example
Offer
event_countinteger<int64>required
Example
3
unique_record_countinteger<int64>required
Example
3
backwardbooleanrequired
Example
false
reopenedbooleanrequired
Example
false
401UnauthorizedErrorResponse

Invalid API key

Response fields application/json
statusstringerrorrequired
Example
error
errorErrorBodyrequired
Show child attributes
codestringrequired

Stable machine-readable error code.

status_codeinteger<int32>required

HTTP status code for this response.

messagestringrequired

Human-readable error message.

Example
{
  "status": "error",
  "error": {
    "code": "INVALID_API_KEY",
    "status_code": 401,
    "message": "Invalid API key"
  }
}
403ForbiddenErrorResponse

Insufficient scope, or restricted record access

Response fields application/json
statusstringerrorrequired
Example
error
errorErrorBodyrequired
Show child attributes
codestringrequired

Stable machine-readable error code.

status_codeinteger<int32>required

HTTP status code for this response.

messagestringrequired

Human-readable error message.

Example
{
  "status": "error",
  "error": {
    "code": "FORBIDDEN",
    "status_code": 403,
    "message": "Insufficient scope"
  }
}
404Not FoundErrorResponse

Workflow not found

Response fields application/json
statusstringerrorrequired
Example
error
errorErrorBodyrequired
Show child attributes
codestringrequired

Stable machine-readable error code.

status_codeinteger<int32>required

HTTP status code for this response.

messagestringrequired

Human-readable error message.

Example
{
  "status": "error",
  "error": {
    "code": "NOT_FOUND",
    "status_code": 404,
    "message": "Record not found"
  }
}
422Unprocessable EntityErrorResponse

Invalid filters

Response fields application/json
statusstringerrorrequired
Example
error
errorErrorBodyrequired
Show child attributes
codestringrequired

Stable machine-readable error code.

status_codeinteger<int32>required

HTTP status code for this response.

messagestringrequired

Human-readable error message.

Example
{
  "status": "error",
  "error": {
    "code": "VALIDATION_FAILED",
    "status_code": 422,
    "message": "Validation failed"
  }
}
500Internal Server ErrorErrorResponse

Internal server error

Response fields application/json
statusstringerrorrequired
Example
error
errorErrorBodyrequired
Show child attributes
codestringrequired

Stable machine-readable error code.

status_codeinteger<int32>required

HTTP status code for this response.

messagestringrequired

Human-readable error message.

Example
{
  "status": "error",
  "error": {
    "code": "INTERNAL_ERROR",
    "status_code": 500,
    "message": "Internal server error"
  }
}
503Service UnavailableErrorResponse

Analytics not ready or unavailable

Response fields application/json
statusstringerrorrequired
Example
error
errorErrorBodyrequired
Show child attributes
codestringrequired

Stable machine-readable error code.

status_codeinteger<int32>required

HTTP status code for this response.

messagestringrequired

Human-readable error message.

Authorization

bearer_authhttp (bearer) in header

API key or OAuth access token in Authorization header

Scopes: workflows:read

oauth2_authoauth2

OAuth authorization code flow with mandatory S256 PKCE.

Scopes: workflows:read

apikey_authapiKey in query

API key in query string

Scopes: workflows:read