Groups
Get group usage
Read current-window consumption against the usage limits configured on a Frontier Gateway group.
Return current-window consumption for a single group, broken down by model. The response only includes models that have
usage_limits configured — rate limits are not surfaced here. Use this endpoint to power per-customer dashboards or to check remaining quota before issuing a workload.
This endpoint is the Frontier Gateway equivalent of the legacy per-API-key usage lookup: usage now hangs off the group, and every API key under the group reports against the same counters.
Authentication
Workspace API key with management scope, passed as
Authorization: Api-Key $BASETEN_API_KEY (or Bearer; both are accepted).Path parameters
Internal Baseten ID of the group. Returned as
id from Create a group and from List groups.Response
The group’s external identifier — the value you passed as
metadata.external_entity_id when creating the group.Per-model usage entries, keyed by the model slug. Only models that have
usage_limits configured on the group’s effective configuration appear here; a group with no configured usage limits returns an empty object.Each value is an array of usage entries, one per configured (type, unit) pair:type(string):TOKENorREQUEST.unit(string): Window size for the limit.DAYis the only supported value.threshold(integer): Configured quota for the window.current_usage(integerornull): Total consumption in the current window.nulluntil the first request lands.reset_at(stringornull): UTC timestamp when the current window resets.nulluntil the first request lands.
Errors
| Status | Meaning |
|---|---|
403 Forbidden | The group exists but isn’t in your workspace, or the caller doesn’t have management scope. |
404 Not Found | No group with this id in your workspace, or it has been deleted. |
Previous
Update groupUpdate a Frontier Gateway group's display name or model configuration. Hierarchy and enforcement mode are immutable.
Next