Traffic and delivery stats for one project
curl --request GET \
--url https://app.hookie.ai/admin/api/projects/{pid}/stats \
--cookie hookie_session=const options = {method: 'GET', headers: {cookie: 'hookie_session='}};
fetch('https://app.hookie.ai/admin/api/projects/{pid}/stats', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/projects/{pid}/stats"
headers = {"cookie": "hookie_session="}
response = requests.get(url, headers=headers)
print(response.text){
"events": {
"last_24h": 123,
"last_7d": 123,
"last_30d": 123
},
"submissions_7d": 123,
"deliveries": {
"total_7d": 123,
"delivered_7d": 123,
"failed_7d": 123,
"success_rate": 123,
"avg_ms": 123
},
"ai_runs_7d": 123,
"daily": [
{
"day": "<string>",
"events": 123
}
],
"top_datasets": [
{
"dataset": "<string>",
"n": 123
}
]
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}Stats
Traffic and delivery stats for one project
Nested form only - stats has NO top-level Default-project alias (GET /admin/api/stats returns 404 Unknown resource). Readable by any role.
GET
/
admin
/
api
/
projects
/
{pid}
/
stats
Traffic and delivery stats for one project
curl --request GET \
--url https://app.hookie.ai/admin/api/projects/{pid}/stats \
--cookie hookie_session=const options = {method: 'GET', headers: {cookie: 'hookie_session='}};
fetch('https://app.hookie.ai/admin/api/projects/{pid}/stats', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/projects/{pid}/stats"
headers = {"cookie": "hookie_session="}
response = requests.get(url, headers=headers)
print(response.text){
"events": {
"last_24h": 123,
"last_7d": 123,
"last_30d": 123
},
"submissions_7d": 123,
"deliveries": {
"total_7d": 123,
"delivered_7d": 123,
"failed_7d": 123,
"success_rate": 123,
"avg_ms": 123
},
"ai_runs_7d": 123,
"daily": [
{
"day": "<string>",
"events": 123
}
],
"top_datasets": [
{
"dataset": "<string>",
"n": 123
}
]
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}Authorizations
sessionbearerAuth
The console's sealed session cookie, set by WorkOS AuthKit. Mutating requests also require the X-Requested-With CSRF header.
Path Parameters
Project id (UUID) belonging to the caller workspace.
Response
Event volumes, 7-day delivery health, a zero-filled 14-day daily series and the top datasets of the last 7 days.