Get run counts
curl --request GET \
--url https://connie.ai/api/workflows/run-stats \
--header 'Cookie: <api-key>'import requests
url = "https://connie.ai/api/workflows/run-stats"
headers = {"Cookie": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Cookie: '<api-key>'}};
fetch('https://connie.ai/api/workflows/run-stats', 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://connie.ai/api/workflows/run-stats",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Cookie: <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://connie.ai/api/workflows/run-stats"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Cookie", "<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://connie.ai/api/workflows/run-stats")
.header("Cookie", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://connie.ai/api/workflows/run-stats")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Cookie"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"stats": {}
}{
"error": "<string>",
"code": "<string>",
"details": "<unknown>"
}{
"error": "<string>",
"code": "<string>",
"details": "<unknown>"
}Runs
Get run counts
Run counts and the last run for up to 100 workflows, as shown in the Runs and Last run columns on the Automations page. Workflows you can’t see, or that have never run, come back with zero counts.
GET
/
workflows
/
run-stats
Get run counts
curl --request GET \
--url https://connie.ai/api/workflows/run-stats \
--header 'Cookie: <api-key>'import requests
url = "https://connie.ai/api/workflows/run-stats"
headers = {"Cookie": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Cookie: '<api-key>'}};
fetch('https://connie.ai/api/workflows/run-stats', 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://connie.ai/api/workflows/run-stats",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Cookie: <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://connie.ai/api/workflows/run-stats"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Cookie", "<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://connie.ai/api/workflows/run-stats")
.header("Cookie", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://connie.ai/api/workflows/run-stats")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Cookie"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"stats": {}
}{
"error": "<string>",
"code": "<string>",
"details": "<unknown>"
}{
"error": "<string>",
"code": "<string>",
"details": "<unknown>"
}Authorizations
The full Cookie header copied from a signed-in connie.ai browser request. See the Authentication page.
Query Parameters
Comma-separated workflow ids. Only the first 100 are used.
Response
Stats keyed by workflow id.
Show child attributes
Show child attributes