Groups
Create a group
Create a Frontier Gateway group with its model set, per-model limits, and a place in the hierarchy.
Create a Frontier Gateway group. Groups own the external identifier, the model set, the rate and usage limits, and the inheritance mode. API keys are minted under groups in a separate call. For the conceptual walkthrough, see Manage groups and API keys.
Authentication
string
required
Workspace API key with management scope, passed as
Authorization: Api-Key $BASETEN_API_KEY (or Bearer; both are accepted).Body
object
required
Group identity and display metadata.
name(string, optional, max length 255): Display name for the group.external_entity_id(string, required, length 1-255): Stable identifier you choose. Unique within your workspace. Surfaces asexternalEntityIdon every billing webhook event for keys under this group.
object[]
required
Per-model rate and usage limit configuration. Must be non-empty.Each entry takes:
slug(string, required): Model slug, formattedyour-org/your-model.rate_limits(object[], optional): Short-window limits. Each entry:type(TOKEN,REQUEST),unit(SECOND,MINUTE),threshold(integer>= 1). At most one entry pertypeper slug.usage_limits(object[], optional): Daily-window limits. Each entry:type(TOKEN,REQUEST),unit(DAY),threshold(integer>= 1). At most one entry per (type,unit) per slug.
object
required
Parent linkage and limit enforcement mode. Both fields are immutable after creation.
limit_enforcement(string, required): One ofINDEPENDENTorCASCADING. Must match the parent’s mode ifparent_group_idis set. For semantics, see Inheritance modes.parent_group_id(stringornull, required): Theidof the parent group, ornullfor a root group. Hierarchies are capped at five levels deep.
Response
string
required
Internal Baseten ID for the new group. Use this in every per-group path parameter.
object
required
Echoes the request
metadata.object[]
required
Echoes the request
models after persistence. Same shape as the request body.object[]
required
The per-model limits the runtime enforces after walking the hierarchy. Same shape as
models, with one extra field on every rate_limits and usage_limits entry: source_group (string), the id of the group the limit is anchored to (this group or an ancestor).object
required
Echoes the request
hierarchy. parent_group_id is null for root groups.string
required
RFC 3339 UTC timestamp of creation.
Errors
Previous
List groupsList Frontier Gateway groups in your workspace. Cursor-paginated, with optional lookup by external identifier.
Next