Skip to main content
GET
/
workflows
/
{workflowId}
/
logs
/
stats
Get workflow log statistics
curl --request GET \
  --url https://v1.api.altostrat.io/workflows/{workflowId}/logs/stats \
  --header 'Authorization: Bearer <token>'
{
  "log_statuses": {
    "success": 1502,
    "error": 23,
    "warning": 5
  },
  "recent_runs": {
    "completed": 95,
    "failed": 5
  },
  "total_runs": 250,
  "success_rate": 97.5
}

Authorizations

Authorization
string
header
required

Enter the JWT token.

Path Parameters

workflowId
string
required

The prefixed ID of the workflow (e.g., fl_...).

Response

Aggregated log statistics.

log_statuses
object

A count of log entries grouped by status.

Example:
{
"success": 1502,
"error": 23,
"warning": 5
}
recent_runs
object

A count of workflow runs in the last 30 days, grouped by status.

Example:
{ "completed": 95, "failed": 5 }
total_runs
integer
Example:

250

success_rate
number

The percentage of completed runs out of total runs.

Example:

97.5

I