Get workflow/agent statistics
curl --request GET \
--url https://flowra.dev/api/v1/workflow/manager/{id}/statistics \
--header 'x-api-key: <api-key>'import requests
url = "https://flowra.dev/api/v1/workflow/manager/{id}/statistics"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://flowra.dev/api/v1/workflow/manager/{id}/statistics', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://flowra.dev/api/v1/workflow/manager/{id}/statistics",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://flowra.dev/api/v1/workflow/manager/{id}/statistics"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://flowra.dev/api/v1/workflow/manager/{id}/statistics")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://flowra.dev/api/v1/workflow/manager/{id}/statistics")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Operation completed successfully",
"data": {
"workflow": {
"id": "",
"name": "",
"workflowType": "static",
"isActive": true,
"lastExecutedAt": "",
"lastProductionError": {
"timestamp": "",
"errors": [
{}
]
}
},
"health": {
"total": 0,
"completed": 0,
"failed": 0,
"timeout": 0,
"paused": 0,
"running": 0,
"successRate": 0,
"durationMinMs": 0,
"durationAvgMs": 0,
"durationMaxMs": 0,
"byMode": {
"test": 0,
"production": 0
}
},
"credits": {
"totalCredits": 0,
"totalUsd": 0,
"byType": {
"ai_model": 0,
"tool": 0,
"sandbox": 0,
"browser": 0,
"workflow": 0,
"media": 0,
"connected_account": 0
},
"minCreditsPerRun": 0,
"maxCreditsPerRun": 0,
"avgCreditsPerRun": 0,
"attributedRunCount": 0,
"unattributedCreditRows": 0
},
"tools": [
{
"toolSlug": "",
"calls": 0,
"successful": 0,
"failed": 0,
"credits": 0,
"usdCost": 0
}
],
"models": [
{
"modelId": "",
"calls": 0,
"credits": 0,
"totalTokens": 0
}
],
"triggers": [
{
"id": "",
"toolSlug": "",
"status": "",
"isDisabled": true,
"statusReason": "",
"updatedAt": "",
"invocationCount": 0,
"invocationErrors": 0
}
],
"recentExecutions": [
{
"id": "",
"status": "",
"executionMode": "",
"startedAt": "",
"completedAt": "",
"executionDurationMs": 0,
"credits": 0
}
],
"recentCreditLogs": [
{
"id": "",
"type": "",
"creditAmount": 0,
"delta": 0,
"entryType": "debit",
"usdCost": 0,
"executionId": "",
"metadata": {},
"createdAt": ""
}
],
"recentToolLogs": [
{
"id": "",
"toolSlug": "",
"successful": true,
"error": "",
"executionDurationMs": 0,
"executedAt": ""
}
],
"from": "",
"to": ""
}
}Workflow & Agent
Get workflow/agent statistics
Health, credit min/max/avg per run, tool and model breakdown, triggers, and recent logs for one workflow or agent.
GET
/
api
/
v1
/
workflow
/
manager
/
{id}
/
statistics
Get workflow/agent statistics
curl --request GET \
--url https://flowra.dev/api/v1/workflow/manager/{id}/statistics \
--header 'x-api-key: <api-key>'import requests
url = "https://flowra.dev/api/v1/workflow/manager/{id}/statistics"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://flowra.dev/api/v1/workflow/manager/{id}/statistics', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://flowra.dev/api/v1/workflow/manager/{id}/statistics",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://flowra.dev/api/v1/workflow/manager/{id}/statistics"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://flowra.dev/api/v1/workflow/manager/{id}/statistics")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://flowra.dev/api/v1/workflow/manager/{id}/statistics")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Operation completed successfully",
"data": {
"workflow": {
"id": "",
"name": "",
"workflowType": "static",
"isActive": true,
"lastExecutedAt": "",
"lastProductionError": {
"timestamp": "",
"errors": [
{}
]
}
},
"health": {
"total": 0,
"completed": 0,
"failed": 0,
"timeout": 0,
"paused": 0,
"running": 0,
"successRate": 0,
"durationMinMs": 0,
"durationAvgMs": 0,
"durationMaxMs": 0,
"byMode": {
"test": 0,
"production": 0
}
},
"credits": {
"totalCredits": 0,
"totalUsd": 0,
"byType": {
"ai_model": 0,
"tool": 0,
"sandbox": 0,
"browser": 0,
"workflow": 0,
"media": 0,
"connected_account": 0
},
"minCreditsPerRun": 0,
"maxCreditsPerRun": 0,
"avgCreditsPerRun": 0,
"attributedRunCount": 0,
"unattributedCreditRows": 0
},
"tools": [
{
"toolSlug": "",
"calls": 0,
"successful": 0,
"failed": 0,
"credits": 0,
"usdCost": 0
}
],
"models": [
{
"modelId": "",
"calls": 0,
"credits": 0,
"totalTokens": 0
}
],
"triggers": [
{
"id": "",
"toolSlug": "",
"status": "",
"isDisabled": true,
"statusReason": "",
"updatedAt": "",
"invocationCount": 0,
"invocationErrors": 0
}
],
"recentExecutions": [
{
"id": "",
"status": "",
"executionMode": "",
"startedAt": "",
"completedAt": "",
"executionDurationMs": 0,
"credits": 0
}
],
"recentCreditLogs": [
{
"id": "",
"type": "",
"creditAmount": 0,
"delta": 0,
"entryType": "debit",
"usdCost": 0,
"executionId": "",
"metadata": {},
"createdAt": ""
}
],
"recentToolLogs": [
{
"id": "",
"toolSlug": "",
"successful": true,
"error": "",
"executionDurationMs": 0,
"executedAt": ""
}
],
"from": "",
"to": ""
}
}Authorizations
x-api-keyx-api-key & x-username
Project API key. Create and manage keys in the dashboard under Project → API Keys. Send as header: x-api-key:
Headers
External user (end user) to act as. Optional — if omitted, Flowra uses the project’s default external user. Send a stable username (e.g. customer_alice) only when you need another end-user context.
Path Parameters
Workflow (agent) ID
Example:
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
Query Parameters
Start date (ISO 8601)
Example:
"2026-08-01T00:00:00.000Z"
End date (ISO 8601)
Example:
"2026-09-01T00:00:00.000Z"
Response
200 - application/json
Workflow statistics retrieved successfully
Success status
Example:
true
Success message
Example:
"Operation completed successfully"
Show child attributes
Show child attributes
Example:
{
"workflow": {
"id": "",
"name": "",
"workflowType": "static",
"isActive": true,
"lastExecutedAt": "",
"lastProductionError": { "timestamp": "", "errors": [{}] }
},
"health": {
"total": 0,
"completed": 0,
"failed": 0,
"timeout": 0,
"paused": 0,
"running": 0,
"successRate": 0,
"durationMinMs": 0,
"durationAvgMs": 0,
"durationMaxMs": 0,
"byMode": { "test": 0, "production": 0 }
},
"credits": {
"totalCredits": 0,
"totalUsd": 0,
"byType": {
"ai_model": 0,
"tool": 0,
"sandbox": 0,
"browser": 0,
"workflow": 0,
"media": 0,
"connected_account": 0
},
"minCreditsPerRun": 0,
"maxCreditsPerRun": 0,
"avgCreditsPerRun": 0,
"attributedRunCount": 0,
"unattributedCreditRows": 0
},
"tools": [
{
"toolSlug": "",
"calls": 0,
"successful": 0,
"failed": 0,
"credits": 0,
"usdCost": 0
}
],
"models": [
{
"modelId": "",
"calls": 0,
"credits": 0,
"totalTokens": 0
}
],
"triggers": [
{
"id": "",
"toolSlug": "",
"status": "",
"isDisabled": true,
"statusReason": "",
"updatedAt": "",
"invocationCount": 0,
"invocationErrors": 0
}
],
"recentExecutions": [
{
"id": "",
"status": "",
"executionMode": "",
"startedAt": "",
"completedAt": "",
"executionDurationMs": 0,
"credits": 0
}
],
"recentCreditLogs": [
{
"id": "",
"type": "",
"creditAmount": 0,
"delta": 0,
"entryType": "debit",
"usdCost": 0,
"executionId": "",
"metadata": {},
"createdAt": ""
}
],
"recentToolLogs": [
{
"id": "",
"toolSlug": "",
"successful": true,
"error": "",
"executionDurationMs": 0,
"executedAt": ""
}
],
"from": "",
"to": ""
}
Was this page helpful?