Workflows

Get workflow analytics by owner, team or source

GET
https://api.searchsoftware.nl/v4/workflows/{id}/analytics/breakdowns

The headline numbers per owner, team, source or source group, one dimension per call. truncated is true when there were more rows than returned; overlapping is true when a record counts in several rows (teams). A row with a null id is the unassigned bucket. 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

bystringrequiredquery

owners, teams, sources or source_groups

Response

Workflow analytics breakdown

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
bystringownersteamssourcessource_groupsrequired
Example
owners
truncatedbooleanrequired
Example
false
overlappingbooleanrequired
Example
false
Show child attributes
idstring | nullrequired

Null for the unassigned bucket.

Example
Ab12
namestringrequired
Example
Anna de Boer
cohort_countinteger<int64>required
Example
4
current_open_countinteger<int64>required
Example
2
final_outcome_countinteger<int64>required
Example
1
conversion_ratenumber<float> | nullrequired
Example
0.25
median_cycle_secondsinteger<int64> | nullrequired
Example
1209600
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