Skip to main content
GET
/
api
/
data-readiness
/
workflows
/
statistics
Get Workflow Statistics
curl --request GET \
  --url https://api.example.com/api/data-readiness/workflows/statistics \
  --header 'Authorization: Bearer <token>'
{
  "average_duration_seconds": 285.3,
  "cancelled_runs": 2,
  "configuration_id": "123e4567-e89b-12d3-a456-426614174000",
  "failed_runs": 3,
  "in_progress_runs": 1,
  "last_run_at": "2024-01-15T10:35:00Z",
  "successful_runs": 20,
  "total_runs": 25
}

Documentation Index

Fetch the complete documentation index at: https://docs.emergence.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

JWT Bearer token authentication. Include the token in the Authorization header as: Authorization: Bearer <token>. The JWT must contain valid client_id, and project_id claims for tenant isolation and SDK routing.

Query Parameters

configuration_id
string<uuid> | null

Configuration ID. If not provided, returns statistics for all workflows.

start_date
string | null

Start date (ISO 8601)

end_date
string | null

End date (ISO 8601)

Response

Successful Response

Aggregated statistics for workflow runs, optionally filtered by configuration.

total_runs
integer
required

Total number of runs

Example:

25

successful_runs
integer
required

Number of successful runs

Example:

20

failed_runs
integer
required

Number of failed runs

Example:

3

cancelled_runs
integer
required

Number of cancelled runs

Example:

2

in_progress_runs
integer
required

Number of runs currently in progress (queued or running)

Example:

1

configuration_id
string<uuid> | null

Workflow configuration ID. None when returning statistics for all workflows.

Example:

"123e4567-e89b-12d3-a456-426614174000"

average_duration_seconds
number | null

Average run duration in seconds

Example:

285.3

last_run_at
string | null

Last run timestamp (ISO 8601)

Example:

"2024-01-15T10:35:00Z"