curl --request GET \
--url https://app.thinnest.ai/api/v1/usage/daily \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.thinnest.ai/api/v1/usage/daily', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.thinnest.ai/api/v1/usage/daily"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)Get Daily Usage
Replies, calls and call minutes for every UTC day in the window — the Usage page’s chart, quiet days as zeros. Give a rolling days, or a from/to range of up to 366 days reaching back at most 730 days; a to past today is cut to today. Any key may call this, a read-only key included.
curl --request GET \
--url https://app.thinnest.ai/api/v1/usage/daily \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.thinnest.ai/api/v1/usage/daily', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.thinnest.ai/api/v1/usage/daily"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)Authorizations
Your API key (ta_live_…) from Settings → API keys, sent as Authorization: Bearer <key>. Keep it on a server: it can message every customer you have. A key is full, build or read-only; a request its level does not allow is refused with 403.
Headers
Developers only: the customer workspace this request acts in — its org_… id from POST /customers. Leave it out to act in your own workspace.
"org_3fKq9TzQ1mN8vB2xR7cLpA"
Query Parameters
A rolling window ending today (UTC). Not with from/to.
1 <= x <= 90First UTC day, YYYY-MM-DD. Needs to.
Last UTC day, YYYY-MM-DD. Needs from.
Response
Daily usage.
The clock the days are counted in. Always UTC, as on the Usage chart.
UTC First day counted.
Last day counted (a to past today is cut to today).
Show child attributes
Show child attributes
Every day in the range, quiet days as zeros.
Show child attributes
Show child attributes