curl --request GET \
--url https://app.thinnest.ai/api/v1/dashboard \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.thinnest.ai/api/v1/dashboard', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.thinnest.ai/api/v1/dashboard"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"plan": "pro",
"timezone": "Asia/Kolkata",
"counts": {
"agents": 4,
"phoneNumbers": 2,
"whatsappNumbers": 1,
"knowledgeDocuments": 37,
"voiceCampaigns": 3,
"broadcasts": 12,
"apiKeys": 2,
"members": 5,
"contacts": 4820,
"leads": 316
},
"conversations": {
"unread": 14,
"escalated": 3
},
"callsLast30Days": 912,
"wallet": {
"balanceMicro": 1350000000,
"currency": "INR",
"low": false
}
}{
"error": "Send a valid API key as `Authorization: Bearer <key>`."
}{
"error": "Workspace not found."
}{
"error": "Over 240 requests a minute. Slow down and retry."
}Get Dashboard
The console Dashboard’s figures for the whole workspace: how many agents, numbers, knowledge documents, campaigns, keys, members, contacts and leads; conversations unread and waiting on a person; calls in the last 30 days; and the balance as the account card shows it. The period charts are GET /calls/summary and GET /whatsapp/summary. Any key may call this, a read-only key included.
curl --request GET \
--url https://app.thinnest.ai/api/v1/dashboard \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.thinnest.ai/api/v1/dashboard', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.thinnest.ai/api/v1/dashboard"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"plan": "pro",
"timezone": "Asia/Kolkata",
"counts": {
"agents": 4,
"phoneNumbers": 2,
"whatsappNumbers": 1,
"knowledgeDocuments": 37,
"voiceCampaigns": 3,
"broadcasts": 12,
"apiKeys": 2,
"members": 5,
"contacts": 4820,
"leads": 316
},
"conversations": {
"unread": 14,
"escalated": 3
},
"callsLast30Days": 912,
"wallet": {
"balanceMicro": 1350000000,
"currency": "INR",
"low": false
}
}{
"error": "Send a valid API key as `Authorization: Bearer <key>`."
}{
"error": "Workspace not found."
}{
"error": "Over 240 requests a minute. Slow down and retry."
}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"
Response
Dashboard counts.
The workspace's plan.
Your workspace's time zone.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Calls in the last 30 days.
The balance as the account card shows it. null on Free and for a developer's customer.
Show child attributes
Show child attributes