Dokumentation
ReferenzCredits

List the people of the tenant by consumption.

GET
/credits/people

The people of the key's tenant ordered by their consumption in the period, largest first, each with their credits, their share of the organization and their credits per type. The list always describes the organization and is open to a tenant manager or an administrator only; it has no scope.

Paginated like GET /users: count is the number of people with consumption in the period, rank is the place of a person in that full list.

Authorization

apiKey
headerX-API-Key<token>

API key issued in the Galilea settings.

Query Parameters

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"
limit?integer

Number of people per page, at most 500.

Default100
offset?integer

Index of the first person of the page.

Default0

Response Body

One page of people.

application/json
  1. response

One page of the people of the tenant ordered by their consumption in the period, largest first.

count*integer

Number of people with consumption in the period.

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/people?anchor=2026-10-23&from=2026-10-01&to=2026-10-31"
{  "count": 16,  "next": "string",  "previous": "string",  "results": [    {      "rank": 1,      "user": {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "firstName": "string",        "lastName": "string",        "emailAddress": "user@example.com"      },      "credits": 0,      "share": 0,      "byType": {        "property1": 0,        "property2": 0      }    }  ]}