Returns this calendar month's (UTC) usage that is billed outside call cost. Each charge is also a negative usage transaction in Get billing. Any role can call it.
Request#
This endpoint takes no path, query or body parameters.
Example request#
curl https://api.tried.com.au/billing/platform-usage \
-H "Authorization: Bearer $TRIED_API_KEY"const res = await fetch("https://api.tried.com.au/billing/platform-usage", {
headers: { Authorization: `Bearer ${process.env.TRIED_API_KEY}` },
});
const usage = await res.json();import os, requests
res = requests.get(
"https://api.tried.com.au/billing/platform-usage",
headers={"Authorization": f"Bearer {os.environ['TRIED_API_KEY']}"},
)
usage = res.json()Response#
200 OK
{
"from": 1759276800000,
"contact_memory": {
"conversations": 412,
"cost": 4.12,
"unit_price": 0.01
},
"qa": {
"minutes": 132.5,
"free_minutes_remaining": 0,
"cost": 4.875,
"unit_price_per_min": 0.15
},
"conductor": {
"credits": 15,
"cost": 4.5,
"unit_price": 0.3
}
}| Field | Type | Description |
|---|---|---|
from |
integer | Start of the current month (UTC), Unix ms. |
contact_memory |
object | Conversations saved to contact memory, at $0.01 each. |
qa |
object | AI QA minutes analysed. The first 100 minutes each month are free, then $0.15 per minute. free_minutes_remaining counts down from 100. |
conductor |
object | Paid Conductor credits, at $0.30 each. |
Errors#
| Status | When |
|---|---|
401 |
Missing or invalid API key. |
403 |
The key's IP allowlist or scopes reject the request. This route needs the admin scope. |
429 |
Rate limit exceeded. See Rate limits. |
See Errors for the body format.