Usage report
const url = 'https://api.asklucy.eu/v1/org/usage?from=2026-04-15&to=2026-04-15&group_by=day';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.asklucy.eu/v1/org/usage?from=2026-04-15&to=2026-04-15&group_by=day' \ --header 'Authorization: Bearer <token>'Totals for a period, by day or by user. Dates are inclusive, in UTC.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”group follows the groups from the identity provider. Someone in
several groups counts in each, so the rows can add up to more
than the totals; members in no group are in a row with
group: null.
Responses
Section titled “Responses”OK
object
object
When grouped by day.
object
Zitadel user ID.
service is a customer system’s Zitadel service user; agent is a service agent (its ID is the agt_ ID), the author of its runs’ messages.
object
Decimal amount, e.g. “12.50” (up to 6 decimals for small usage).
Messages sent by people.
Answers Lucy wrote (any final status).
Time code ran in sandboxes.
Web searches Lucy ran (each is billed per call and counts in cost).
Files stored at the end of the period (or day).
What Lucy’s sandbox stores for the conversations counted here (paused workspaces and published pages), as last sampled by the end of the period (or on that day). A snapshot of the stock, not a total over time; sampled hourly.
object
object
Decimal amount, e.g. “12.50” (up to 6 decimals for small usage).
Messages sent by people.
Answers Lucy wrote (any final status).
Time code ran in sandboxes.
Web searches Lucy ran (each is billed per call and counts in cost).
Files stored at the end of the period (or day).
What Lucy’s sandbox stores for the conversations counted here (paused workspaces and published pages), as last sampled by the end of the period (or on that day). A snapshot of the stock, not a total over time; sampled hourly.
Example
{ "group_by": "day", "rows": [ { "user": { "kind": "person" }, "group": { "source": "identity_provider" }, "cost": { "amount": "50.00", "currency": "EUR" } } ], "totals": { "cost": { "amount": "50.00", "currency": "EUR" } }}The request is invalid; errors lists what’s wrong.
RFC 9457 problem details.
object
For quota-exceeded, the window that is used up.
object
Null for a rolling window that hasn’t started.
organization when the organization’s budget is closer to running out than the member’s own limit.
Field-level problems (400 only).
object
JSON pointer into the request body.
Example
{ "type": "https://docs.asklucy.eu/errors/answer-in-progress", "quota": { "window": "five_hours", "limited_by": "personal", "request": { "status": "pending" } }}Headers
Section titled “Headers”Unique per request; quote it to support.
Missing, expired or invalid token.
RFC 9457 problem details.
object
For quota-exceeded, the window that is used up.
object
Null for a rolling window that hasn’t started.
organization when the organization’s budget is closer to running out than the member’s own limit.
Field-level problems (400 only).
object
JSON pointer into the request body.
Example
{ "type": "https://docs.asklucy.eu/errors/answer-in-progress", "quota": { "window": "five_hours", "limited_by": "personal", "request": { "status": "pending" } }}Headers
Section titled “Headers”Unique per request; quote it to support.
The token is valid but lacks the role this needs.
RFC 9457 problem details.
object
For quota-exceeded, the window that is used up.
object
Null for a rolling window that hasn’t started.
organization when the organization’s budget is closer to running out than the member’s own limit.
Field-level problems (400 only).
object
JSON pointer into the request body.
Example
{ "type": "https://docs.asklucy.eu/errors/answer-in-progress", "quota": { "window": "five_hours", "limited_by": "personal", "request": { "status": "pending" } }}Headers
Section titled “Headers”Unique per request; quote it to support.