Endpoints
Create an endpoint
Create a Frontier Gateway endpoint: a routing slug and the Baseten deployment it points to.
Create an endpoint. An endpoint is a globally-unique routing slug plus the target it points to. Once created, requests that reach the gateway with this slug route to the target you specify. For the conceptual walkthrough, see Endpoints.
Authentication
Workspace API key with management scope, passed as
Authorization: Api-Key $BASETEN_API_KEY (or Bearer; both are accepted).Body
Globally-unique routing slug, formatted
{org_prefix}/{name}. The org_prefix must be a prefix your organization owns, registered by the Baseten team during onboarding. Both segments are URL-safe. You can change the slug later with Update an endpoint.The endpoint’s upstream targets. Exactly one target is supported at this time: send a list of length one. Sending an empty list or more than one target returns
400.Each entry takes:provider(string, required): Upstream provider for the target. One ofBASETEN,ANTHROPIC, orOPENAI.model_id(string): The Baseten model the slug routes to. Use forBASETENtargets.secret_id(string): Baseten secret holding the provider credential. Required for external providers (ANTHROPIC,OPENAI).target_model(string): Upstream model name to send. Required for external providers; optional forBASETEN.
Response
Stable identifier for the endpoint. Use this in every per-endpoint path parameter.
The endpoint’s routing slug.
The endpoint’s configured targets. Each entry echoes
provider plus the fields you set: model_id for Baseten targets, or secret_id and target_model for external providers.RFC 3339 UTC timestamp of creation.
RFC 3339 UTC timestamp of the last update.
Errors
| Status | Meaning |
|---|---|
400 Bad Request | Invalid payload, slug prefix your organization doesn’t own, duplicate slug, or a targets list that’s empty or has more than one entry. |
403 Forbidden | Workspace isn’t onboarded to Frontier Gateway, or the caller doesn’t have management scope. |