List the actions that consumed credits.
The actions of the period that consumed credits, newest first, paginated like
GET /users.
In personal scope a row is one action of the key's user and carries its title: the
title of the chat, the name of the file, the name of the API key with its masked
value, the name of the workflow. In organization scope a row sums up one day of one
person and one type: it carries user and actions and never a title, so the list
never tells what anybody worked on. The same rule holds for the exported table.
Every key reads the consumption of its own user. Only a tenant manager or an
administrator reads a period other than the running month or the organization with
scope=organization.
apiKeyX-API-Key<token>API key issued in the Galilea settings.
scope?stringWhose consumption is read. personal, the default, is the consumption of the key's
user; organization is the whole tenant and is open to a tenant manager or an
administrator only, otherwise the request is refused with 403. Titles of actions
never appear with organization.
"personal""personal""organization"period?stringThe kind of period to read. The service works out its first and last day from
anchor in Europe/Berlin; a caller never sends timestamps. custom reads the days
from from to to. A key of any role other than tenant manager or administrator
reads the running month only: any other value, or month with an anchor outside
the running month, is refused with 403.
"month""week""month""quarter""year""custom"anchor?stringAny day inside the period to read; defaults to today in Europe/Berlin. To read the
period before, send a day inside it, for example the day before period.from of
the last answer. Refused with 400 before 2026-10-01 or after today. Ignored with
period=custom. Nothing booked before 2026-10-01 is readable, for any caller: a
period that begins before it is read from that day on.
datefrom?stringFirst day of a custom period in Europe/Berlin. Required with period=custom and
refused with 400 for every other period. Not before 2026-10-01; a custom period
spans at most 366 days.
dateto?stringLast day of a custom period in Europe/Berlin, inclusive. Required with
period=custom and refused with 400 for every other period. Not after today; at
most 365 days after from.
datetype?CreditUsageTypeReads only actions of this type. Without the parameter every type is read.
"chat""import""search""audit""skillScan""llmGateway""apiKey""workflow"userId?stringReads only the consumption of this person. Valid only with scope=organization;
with scope=personal the request is refused with 400. A person who is not a member
of the key's tenant is answered with 404.
uuidlimit?integerNumber of rows per page, at most 500.
100offset?integerIndex of the first row of the page.
0One page of actions.
application/json- response
One page of the actions that consumed credits, newest first.
count*integerNumber of rows matching the filter.
0 <= valuenext?|URL of the next page, or null on the last one.
previous?|URL of the previous page, or null on the first one.
results*array<>curl -X GET "https://example.com/credits/usage?anchor=2026-10-23&from=2026-10-01&to=2026-10-31"{ "count": 0, "next": "string", "previous": "string", "results": [ { "date": "2019-08-24T14:15:22Z", "type": "chat", "credits": 0, "model": { "model": "gpt-6-luna", "name": "GPT-6 Luna", "provider": { "key": "openai", "name": "OpenAI" } }, "title": "Ticket-Bot k7f2****", "user": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "firstName": "string", "lastName": "string", "emailAddress": "user@example.com" }, "actions": 1 } ]}