Returns consumption for today, the trailing 7 days and the month to date. Same scope rule and same figures as Get Usage (platform metering operations included): the team with usage:view_all, otherwise the caller’s own usage.
Permission required:usage:view_all (whole team) or usage:view_self (your own only)
curl -X GET 'https://app.memorylake.ai/openapi/memorylake/admin/v1/usage/summary' \ -H 'Authorization: Bearer sk_xxxxxx'
Response
object
Show Usage Summary object
object
The trailing 7 days, today included
Show Usage Summary Window object
integer
Completion tokens produced
string
Last day included, YYYY-MM-DD
integer
Prompt tokens consumed
integer
Number of requests
string
First day included, YYYY-MM-DD
integer
Consumption charged against the balance, in tokens
object
From the first of the current month through today
Show Usage Summary Window object
integer
Completion tokens produced
string
Last day included, YYYY-MM-DD
integer
Prompt tokens consumed
integer
Number of requests
string
First day included, YYYY-MM-DD
integer
Consumption charged against the balance, in tokens
string
Whose consumption the figures cover: team (caller holds usage:view_all) or self (only usage:view_self — the caller’s own usage, including their API keys; API key usage before 2026-05-21 was recorded under the key itself and is not part of the self figures)
string
IANA timezone the days are cut in (Asia/Shanghai)
object
Today
Show Usage Summary Window object
integer
Completion tokens produced
string
Last day included, YYYY-MM-DD
integer
Prompt tokens consumed
integer
Number of requests
string
First day included, YYYY-MM-DD
integer
Consumption charged against the balance, in tokens