Dokumentation
ReferenzCredits

List the actions that consumed credits.

GET
/credits/usage

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.

Authorization

apiKey
headerX-API-Key<token>

API key issued in the Galilea settings.

Query Parameters

scope?string

Whose 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.

Default"personal"
Value in"personal""organization"
period?string

The 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.

Default"month"
Value in"week""month""quarter""year""custom"
anchor?string

Any 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.

Formatdate
from?string

First 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.

Formatdate
to?string

Last 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.

Formatdate
type?CreditUsageType

Reads only actions of this type. Without the parameter every type is read.

Value in"chat""import""search""audit""skillScan""llmGateway""apiKey""workflow"
userId?string

Reads 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.

Formatuuid
limit?integer

Number of rows per page, at most 500.

Default100
offset?integer

Index of the first row of the page.

Default0

Response Body

One page of actions.

application/json
  1. response

One page of the actions that consumed credits, newest first.

count*integer

Number of rows matching the filter.

Range0 <= value
next?|

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    }  ]}