GET
/
analytics
/
org
/
{org_id}
/
flows
/
{flow_id}
import requests
import json

url = "https://api.stack-ai.com/analytics/org/{org_id}/flows/{flow_id}"
headers = {
"Authorization": "Bearer <your-private-key>",
"Content-Type": "application/json"
}

params = {
"page": 0,
"page_size": 25,
"start_date": "2024-01-01",
"end_date": "2024-01-31",
}

response = requests.get(url, headers=headers, params=params)

print(response.json())

[
  {
    "run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "date": "2023-11-07T05:31:56Z",
    "is_flow_successful": true,
    "error": "<string>",
    "latency": 123,
    "total_tokens": 123,
    "user_id": "<string>",
    "inputs": "<string>",
    "outputs": "<string>",
    "llms": "<string>",
    "feedback": "<string>"
  }
]
import requests
import json

url = "https://api.stack-ai.com/analytics/org/{org_id}/flows/{flow_id}"
headers = {
"Authorization": "Bearer <your-private-key>",
"Content-Type": "application/json"
}

params = {
"page": 0,
"page_size": 25,
"start_date": "2024-01-01",
"end_date": "2024-01-31",
}

response = requests.get(url, headers=headers, params=params)

print(response.json())

Authorizations

Authorization
string
header
required

Authorization header. Learn how to get it.

Path Parameters

flow_id
string
required
org_id
string
required

Query Parameters

page
integer
default:
0
Required range: x >= 0
page_size
integer
default:
25
Required range: x >= 1
start_date
string | null
end_date
string | null

Response

200
application/json
Successful Response
run_id
string
required
date
string
required
is_flow_successful
boolean | null
required
error
string | null
required
latency
number | null
required
total_tokens
integer
required
user_id
string | null
required
inputs
string | null
required
outputs
string | null
required
llms
string | null
required
feedback
string | null
required