Retrieve analytics
curl --request GET \
--url https://woes.dev/api/v1/analytics \
--header 'Authorization: Bearer <token>'const url = 'https://woes.dev/api/v1/analytics';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));import requests
url = "https://woes.dev/api/v1/analytics"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://woes.dev/api/v1/analytics', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "analytics",
"window": 123,
"analytics": {
"agents": {},
"surveys": {},
"widget": {},
"feedback": {}
}
}{
"code": "invalid_request",
"error": "Request body is invalid."
}{
"code": "unauthorized",
"error": "A valid workspace API key is required."
}{
"code": "insufficient_scope",
"error": "This API key is missing the required scope."
}{
"code": "rate_limited",
"error": "Too many API requests. Slow down and try again shortly."
}{
"code": "internal_error",
"error": "The API request could not be completed."
}Retrieve analytics
Reads sanitized workspace analytics aggregates for agents, surveys, widget activity, and customer feedback. Provider/model/cost/debug internals are excluded.
GET
https://woes.dev
/
api
/
v1
/
analytics
Retrieve analytics
curl --request GET \
--url https://woes.dev/api/v1/analytics \
--header 'Authorization: Bearer <token>'const url = 'https://woes.dev/api/v1/analytics';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));import requests
url = "https://woes.dev/api/v1/analytics"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://woes.dev/api/v1/analytics', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "analytics",
"window": 123,
"analytics": {
"agents": {},
"surveys": {},
"widget": {},
"feedback": {}
}
}{
"code": "invalid_request",
"error": "Request body is invalid."
}{
"code": "unauthorized",
"error": "A valid workspace API key is required."
}{
"code": "insufficient_scope",
"error": "This API key is missing the required scope."
}{
"code": "rate_limited",
"error": "Too many API requests. Slow down and try again shortly."
}{
"code": "internal_error",
"error": "The API request could not be completed."
}Authorizations
Workspace API key that starts with woesk_. Paste your own key into the docs playground; never expose it in browser code.
Query Parameters
Maximum number of recent rows sampled per analytics area.
Required range:
1 <= x <= 2000Last modified on July 4, 2026
Was this page helpful?
