Skip to main content
New to Corsair? See API access, authentication, and error handling.

Access

assignments.create

access.assignments.create Assigns a role. Gives a user, service account, or directory group a role, for the organization or in a team. Needs access.member.write there, or access.group.write for a directory group. A service account’s roles also need service_account.write where the account belongs. Risk: destructive · Irreversible
Input
Output

assignments.delete

access.assignments.delete Removes a role assignment. Needs access.member.delete where the role applies, or access.group.write for a directory group. A service account’s roles also need service_account.write where the account belongs. Cannot be undone. Risk: destructive · Irreversible
Input Output

assignments.get

access.assignments.get Gets a role assignment. Needs access.member.read where the role applies. Risk: read
Input Output

assignments.list

access.assignments.list Lists role assignments. Needs access.member.read for the organization, or in the team you pass as team_id. Roles held through organization and team membership aren’t listed. Risk: read
Input Output

check

access.check Checks whether you hold permissions. Answers each check as fine-grained authorization decides it. Users and service accounts can call it, with the same access as GET /v1/users/me/access. Returns 503 while authorization is unavailable. Risk: read
Input
Output

identityProviders.create

access.identityProviders.create Adds an identity provider. Adds a predefined or custom identity provider to the organization. For a predefined provider with a per-customer issuer, the issuer must match the provider’s format. A custom provider needs a name and an issuer that no predefined provider uses. Risk: destructive · Irreversible
Input
Output

identityProviders.delete

access.identityProviders.delete Deletes an identity provider. Removes the identity provider from the organization. Returns 409 while a trust rule uses it. Only organization admins can call this endpoint. Cannot be undone. Risk: destructive · Irreversible
Input Output

identityProviders.get

access.identityProviders.get Gets an identity provider. (GET /v1/access/identity_providers/{identity_provider_id}) Risk: read
Input Output

identityProviders.list

access.identityProviders.list Lists identity providers. Lists the organization’s identity providers. Organization and team admins can list them. Risk: read
Input Output

identityProviders.listPredefined

access.identityProviders.listPredefined Lists predefined identity providers. Lists the identity providers Baseten supports, with the issuer format for those where each account, tenant, or cluster has its own issuer. Risk: read
Input: empty object Output

identityProviders.update

access.identityProviders.update Updates an identity provider. Updates the fields you send. The provider and issuer can’t change; a custom provider’s jwks can, and new keys are read before they’re saved. Only organization admins can call this endpoint. Risk: destructive · Irreversible
Input
Output

identityProviders.verify

access.identityProviders.verify Checks an identity provider before adding it. Runs the checks that adding the identity provider runs, without adding it: the issuer’s format, that the organization doesn’t have it yet, and, for a provider with a per-customer issuer or a custom provider, that its signing keys can be read. Risk: read
Input
Output

permissions.list

access.permissions.list Lists permissions and their categories. Every caller gets the same permissions and categories; only available depends on your organization. Users and service accounts can call it, with the same access as GET /v1/users/me/access. Risk: read
Input: empty object Output

roles.create

access.roles.create Creates a custom role. Needs access.role.write for the organization, or in the role’s team while your organization lets team admins manage roles. Unknown, reserved, or unavailable permissions return 400 with the reason in the error details. Risk: write
Input Output

roles.delete

access.roles.delete Deletes a custom role. Needs access.role.delete where the role applies; for a team’s role, for the organization unless it lets team admins manage roles. While any assignment uses the role, it returns 409 with reason ROLE_IN_USE. Built-in roles return 400. Cannot be undone. Risk: destructive · Irreversible
Input Output

roles.get

access.roles.get Gets a role. Needs access.role.read, or access.role.write in the role’s team. Pass team_id to get the role as that team’s role list shows it: access.role.write in that team is then enough, and a role the list leaves out returns 404. Risk: read
Input Output

roles.list

access.roles.list Lists roles. Lists built-in roles and your organization’s custom roles, sorted by name. Needs access.role.read, or access.role.write in the team you pass as team_id. Risk: read
Input Output

roles.update

access.roles.update Updates a custom role. Changes the fields you send. permissions and include_role_ids add to the role’s lists, and the _to_delete fields remove from them. Needs access.role.write where the role applies; for a team’s role, for the organization unless it lets team admins manage roles. Built-in roles return 400. Risk: destructive · Irreversible
Input Output

trustRules.create

access.trustRules.create Creates a trust rule. Creates a rule that lets tokens from an identity provider act as a service account. Organization admins can create rules for any service account, team admins for their own team’s. An organization API key manager key can’t target organization accounts. Risk: destructive · Irreversible
Input Output

trustRules.delete

access.trustRules.delete Deletes a trust rule. New exchanges through the rule fail at once; tokens already issued keep working until they expire. Cannot be undone. Risk: destructive · Irreversible
Input Output

trustRules.get

access.trustRules.get Gets a trust rule. (GET /v1/access/trust_rules/{trust_rule_id}) Risk: read
Input Output

trustRules.list

access.trustRules.list Lists trust rules. Lists the trust rules you administer: every rule for an organization admin, and rules for your teams’ service accounts for a team admin. Risk: read
Input Output

trustRules.update

access.trustRules.update Updates a trust rule. Updates the fields you send. Changes apply to new exchanges only. The identity provider can’t change. Risk: destructive · Irreversible
Input Output

trustRules.verify

access.trustRules.verify Checks a trust rule’s condition and audience. Runs the checks that creating or updating a trust rule runs on its condition and audience, without saving anything: that the condition compiles and pins the claims the identity provider requires. A failed check returns 200 with valid false and the reason. Risk: read
Input Output

Api Keys

create

apiKeys.create Creates an API key. Creates an API key with the provided name and type. The API key is returned in the response. Returns the new key’s secret once. Risk: destructive · Irreversible
Input Output

delete

apiKeys.delete Deletes an API key by prefix. Deletes an API key by prefix and returns info about the API key. Cannot be undone. Risk: destructive · Irreversible
Input Output

list

apiKeys.list Lists API keys (metadata only, no plain text keys). Returns metadata for your personal API keys and the workspace and team API keys you can manage. Organization admins also receive every member’s personal API keys, each with an owner identifying the member it belongs to. Prefixes and metadata only: key secrets are never returned. Risk: read
Input Output

Audit Logs

list

auditLogs.list Gets the audit log for the workspace. Returns audit-log entries across the workspace, newest first, covering models, chains, and workspace-level actions. Use the filters to narrow by event type, actor, resource, environment, source, or time window, and the cursor to page. Risk: read
Input Output

Billing

getModelApiCosts

billing.getModelApiCosts Gets daily Model APIs costs. Returns daily Model API costs in USD for the teams you can manage, with optional filtering and grouping by API key, user, model, service tier, and team. Risk: read
Input Output

getToolCallUsage

billing.getToolCallUsage Gets server-side tool call usage. Returns your organization’s server-side tool call usage (web search and fetch tools Baseten executes on your behalf) as daily rows grouped by provider, charge unit (sku), and model. Defaults to teams you can manage; org admins include all organization history. Risk: read
Input Output

getUsageSummary

billing.getUsageSummary Gets billing usage summary for a date range. Returns billing usage within [start_date, end_date): the start date is inclusive and the end date is exclusive. Both dates are normalized to midnight UTC. Includes dedicated model serving, training, and model APIs usage. For multi-team organizations, Model APIs usage is split by team. Risk: read
Input Output

Blobs

getModelCredentials

blobs.getModelCredentials Gets blob credentials for models. (GET /v1/blobs/credentials/model) Risk: read
Input: empty object Output

getTrainingCredentials

blobs.getTrainingCredentials Gets blob credentials for training. (GET /v1/blobs/credentials/train) Risk: read
Input: empty object Output

Chains

delete

chains.delete Deletes a chain by ID. Cannot be undone. Risk: destructive · Irreversible
Input Output

deployments.deactivate

chains.deployments.deactivate Deactivates a chain deployment. Deactivates a chain deployment and returns the deactivation status. Risk: destructive · Irreversible
Input Output

deployments.delete

chains.deployments.delete Deletes a chain deployment by ID. Cannot be undone. Risk: destructive · Irreversible
Input Output

deployments.get

chains.deployments.get Gets a chain deployment by ID. (GET /v1/chains/{chain_id}/deployments/{chain_deployment_id}) Risk: read
Input Output

deployments.getChainletLogs

chains.deployments.getChainletLogs Gets the logs for a chainlet within a chain deployment. Resolves the chainlet (by ID, scoped to the given chain deployment) to its underlying model deployment and returns its logs in the given time range. Risk: read
Input Output

deployments.list

chains.deployments.list Gets all chain deployments. (GET /v1/chains/{chain_id}/deployments) Risk: read
Input Output

environments.create

chains.environments.create Creates a chain environment. Creates a chain environment. Returns the resulting environment. Risk: write
Input
Output

environments.get

chains.environments.get Gets a chain environment’s details. Gets a chain environment’s details and returns the chain environment. Risk: read
Input Output

environments.list

chains.environments.list Gets all chain environments. Gets all chain environments for a given chain. Risk: read
Input Output

environments.promote

chains.environments.promote Promotes a chain deployment to an environment. Promotes an existing chain deployment to an environment and returns the promoted chain deployment. Risk: destructive
Input Output

environments.update

chains.environments.update Updates a chain environment’s settings. Updates a chain environment’s settings and returns the chain environment. Risk: write
Input
Output

environments.updateChainletAutoscaling

chains.environments.updateChainletAutoscaling Updates a chainlet environment’s autoscaling settings. Updates a chainlet environment’s autoscaling settings and returns the updated chainlet environment settings. Risk: write
Input
Output

environments.updateChainletInstanceTypes

chains.environments.updateChainletInstanceTypes Updates a chainlet environment’s instance type settings. Updates a chainlet environment’s instance type settings. The chainlet environment setting must exist. When updated, a new chain deployment is created and deployed. It is promoted to the chain environment according to promotion settings on the environment. Risk: write
Input
Output

get

chains.get Gets a chain by ID. (GET /v1/chains/{chain_id}) Risk: read
Input Output

getAuditLogs

chains.getAuditLogs Gets the audit log for a chain. Returns audit-log entries for a single chain, newest first. Use the filters to narrow by event type, actor, chain deployment, environment, source, or time window, and the cursor to page. Risk: read
Input Output

list

chains.list Gets all chains. (GET /v1/chains) Risk: read
Input: empty object Output

Deployments

activate

deployments.activate Activates a deployment. Activates a deployment if not already activated. Starts replicas, which bill while they run. Risk: destructive
Input Output

create

deployments.create Adds a new deployment to a model. (POST /v1/models/{model_id}/deployments) Risk: destructive
Input
Output

deactivate

deployments.deactivate Deactivates a deployment. Deactivates a deployment if not already deactivated. Scales the deployment to zero: it stops serving until activated again. Risk: destructive · Irreversible
Input Output

delete

deployments.delete Deletes a model’s deployment by ID. Deletes a model’s deployment by ID and returns the tombstone of the deployment. Cannot be undone. Risk: destructive · Irreversible
Input Output

development.activate

deployments.development.activate Activates a development deployment. Activates a development deployment if not already activated. Starts replicas, which bill while they run. Risk: destructive
Input Output

development.deactivate

deployments.development.deactivate Deactivates a development deployment. Deactivates a development deployment if not already deactivated. Scales the development deployment to zero: it stops serving until activated again. Risk: destructive · Irreversible
Input Output

development.get

deployments.development.get Gets a model’s development deployment. Gets a model’s development deployment and returns the deployment. Risk: read
Input Output

development.promote

deployments.development.promote Promotes a development deployment to production. Creates a new production deployment from the development deployment and returns the deployment that is building. Risk: destructive
Input
Output

development.retry

deployments.development.retry Retries a failed development deployment. Retries a failed development deployment and returns the retry status and updated deployment. Risk: destructive
Input Output

development.updateAutoscaling

deployments.development.updateAutoscaling Updates a development deployment’s autoscaling settings. Updates a development deployment’s autoscaling settings and returns the update status. Risk: write
Input Output

get

deployments.get Gets a model’s deployment by ID. Gets a model’s deployment by ID and returns the deployment. Risk: read
Input Output

getConfig

deployments.getConfig Gets a deployment’s config. Returns the deployment’s config. output_format query param picks the shape: ‘raw’ (config.yaml text), ‘parsed’ (dict with defaults), or ‘both’ (default). Risk: read
Input Output

getDownloadUrl

deployments.getDownloadUrl Gets a presigned download URL for a deployment’s truss. Gets a presigned URL to download the truss tar file for a deployment. Risk: read
Input Output

getHotLoad

deployments.getHotLoad Gets a deployment’s RL weight-sync status. Lists each replica’s lifecycle status and RL weight-sync state, with the revision of the deployment’s newest target. A replica is done with a target when its hotload_stage is done and its revision equals the deployment’s revision. loading_state is null for a replica that has not reported a state. Risk: read
Input Output

getLogs

deployments.getLogs Gets the logs for a model deployment. Gets all the logs for a model deployment in the given time range, which defaults to the last 30 minutes. A failed or older deployment may only have logs from before that window; pass start_epoch_millis to widen it back to the build/deploy time. Risk: read
Input Output

getMetrics

deployments.getMetrics Gets the metrics for a model deployment. Gets the metrics for a model deployment in the given time range. Risk: read
Input Output

getPatchState

deployments.getPatchState Gets a development deployment’s patch state. Returns the patch point the deployment is recorded as running and the latest staged-but-unsynced point, if any. The watch client computes its next patch off the pending point when present, else the running point. Risk: read
Input Output

list

deployments.list Gets all deployments of a model. (GET /v1/models/{model_id}/deployments) Risk: read
Input Output

production.activate

deployments.production.activate Activates a production deployment. Activates a production deployment if not already activated. Starts replicas, which bill while they run. Risk: destructive
Input Output

production.deactivate

deployments.production.deactivate Deactivates a production deployment. Deactivates a production deployment if not already deactivated. Scales the production deployment to zero: it stops serving until activated again. Risk: destructive · Irreversible
Input Output

production.get

deployments.production.get Gets a model’s production deployment. Gets a model’s production deployment and returns the deployment. Risk: read
Input Output

production.retry

deployments.production.retry Retries a failed production deployment. Retries a failed production deployment and returns the retry status and updated deployment. Risk: destructive
Input Output

production.updateAutoscaling

deployments.production.updateAutoscaling Updates a production deployment’s autoscaling settings. Updates a production deployment’s autoscaling settings and returns the update status. Risk: write
Input Output

promote

deployments.promote Promotes a deployment to production. Promotes an existing deployment to production and returns the same deployment. Risk: destructive
Input
Output

replicas.get

deployments.replicas.get Gets a replica in a deployment. Returns lifecycle information without metrics, including for terminated replicas. Returns 404 if the replica does not exist in the specified deployment. Returns 400 if multiple replicas match the replica ID. Risk: read
Input Output

replicas.list

deployments.replicas.list Lists replicas for a deployment. Includes terminated replicas and lifecycle information without metrics. Replicas are ordered by creation time, oldest first, with replica ID as a tie-breaker. For subsequent pages, pass pagination.cursor as cursor with unchanged filters. Cursors expire after one hour. Risk: read
Input Output

replicas.terminate

deployments.replicas.terminate Terminates a replica in a deployment. Terminates a deployment replica and returns the termination status. Returns 404 if no replica matches the replica ID. Returns 400 without requesting termination if multiple replicas match the replica ID. Cannot be undone. Risk: destructive · Irreversible
Input Output

retry

deployments.retry Retries a failed deployment. Retries a failed deployment and returns the retry status and updated deployment. Risk: destructive
Input Output

setHotLoad

deployments.setHotLoad Sets the snapshot a deployment’s replicas hot-load. Stores the request as the deployment’s RL weight-sync target; every replica loads it, and the newest request wins. Returns 400 if the body is not a JSON object of at most 16384 bytes as compact JSON, or has an invalid identity or incremental_snapshot_metadata. Risk: write
Input
Output

signSshCertificate

deployments.signSshCertificate Signs an SSH certificate for an inference model. Signs a short-lived SSH certificate granting access to a running inference model pod. Returns the signed SSH certificate, a JWT token for SSH proxy authentication, the proxy address to connect through, and the certificate expiry time. Risk: destructive · Irreversible
Input Output

stagePatch

deployments.stagePatch Stages a patch against a development deployment. Persists a patch durably without applying it; call the sync endpoint to apply staged patches to the running deployment. The target must be a development deployment (its archive created with is_development set to true); patching any other deployment is rejected. Risk: write
Input
Output

startups.getSummary

deployments.startups.getSummary Gets the startup summary for a model deployment. Gets the distribution of replica startup durations, in total and per phase, in the given time range. Risk: read
Input Output

startups.list

deployments.startups.list Lists the startups of a model deployment. Lists replica startups in the given time range, newest first by default. Pass the cursor from a response to fetch the next page. Risk: read
Input Output

syncPatches

deployments.syncPatches Syncs staged patches to a development deployment. Applies any staged patches to the running deployment. A 2xx response means the sync reached a verdict: in sync, or a full push is required (needs_full_deploy_reason). A 503 means the sync was not attempted or failed recoverably and should be retried; any other error is terminal. Risk: destructive
Input Output

update

deployments.update Updates a model’s deployment by ID. Updates the mutable fields of a deployment and returns the updated deployment. Risk: write
Input Output

updateAutoscaling

deployments.updateAutoscaling Updates a deployment’s autoscaling settings. Updates a deployment’s autoscaling settings and returns the update status. Risk: write
Input Output

updateBackpressure

deployments.updateBackpressure Updates a deployment’s request backpressure settings. Risk: write
Input Output

Environment Groups

get

environmentGroups.get Gets an environment group by name. Gets a single environment group by name. The team-scoped path targets the team in the path; the top-level path targets the caller’s organization default team. Risk: read
Input Output

list

environmentGroups.list Lists environment groups. Lists environment groups. The team-scoped path targets the team in the path; the top-level path targets the caller’s organization default team. Risk: read
Input: empty object Output

update

environmentGroups.update Updates an environment group’s restriction settings. Sets whether the environment is restricted and replaces the list of users granted manage access. The team-scoped path targets the team in the path; the top-level path targets the caller’s organization default team. Risk: destructive · Irreversible
Input
Output

Environments

activate

environments.activate Activates a deployment associated with an environment. Activates a deployment associated with an environment if not already activated. Starts replicas, which bill while they run. Risk: destructive
Input Output

cancelPromotion

environments.cancelPromotion Cancels a promotion to an environment. Cancels an ongoing promotion to an environment and returns the cancellation status. Risk: destructive · Irreversible
Input Output

create

environments.create Creates an environment. Creates an environment for the specified model and returns the environment. Risk: write
Input
Output

deactivate

environments.deactivate Deactivates a deployment associated with an environment. Deactivates a deployment associated with an environment if not already deactivated. Scales the environment’s deployment to zero: it stops serving until activated again. Risk: destructive · Irreversible
Input Output

delete

environments.delete Deletes an environment. Deletes an environment and returns its tombstone. Any in-progress promotion to the environment is canceled, and the deployment currently serving the environment is scaled down to zero replicas rather than deleted. The production environment cannot be deleted. Cannot be undone. Risk: destructive · Irreversible
Input Output

forceCancelPromotion

environments.forceCancelPromotion Force cancels a rolling promotion. Immediately cancels an in-progress rolling promotion and triggers rollback to the previous version. Risk: destructive · Irreversible
Input Output

forceRollForwardPromotion

environments.forceRollForwardPromotion Force rolls forward a rolling promotion. Immediately completes the rolling promotion, shifting all traffic to the new version. This works even if the promotion is in the process of rolling back. Risk: destructive
Input Output

get

environments.get Gets an environment’s details. Gets an environment’s details and returns the environment. Risk: read
Input Output

getLogs

environments.getLogs Gets the logs for a model environment. Gets logs across all deployments that were active on the environment in the given time range, which defaults to the last 30 minutes. Pass start_epoch_millis to widen the window back to an earlier deployment’s build/deploy time. Risk: read
Input Output

getMetrics

environments.getMetrics Gets the metrics for a model environment. Gets metrics aggregated across every deployment that was active on the environment in the given time range. In series mode the window is split at each promotion so that every point reflects the deployment(s) serving the environment at that time. Risk: read
Input Output

list

environments.list Gets all environments. Gets all environments for a given model. Risk: read
Input Output

pausePromotion

environments.pausePromotion Pauses a rolling promotion. Pauses an in-progress rolling promotion after the current step completes. No further scaling changes are made until resumed. Risk: destructive · Irreversible
Input Output

promote

environments.promote Promotes a deployment to an environment. Promotes an existing deployment to an environment and returns the promoted deployment. Risk: destructive
Input
Output

replicas.get

environments.replicas.get Gets a replica in an environment. Searches deployments active in the environment during the preceding hour. Includes retained terminated replicas. Returns 404 if the replica is outside this scope. Returns 400 if multiple replicas match the replica ID. Risk: read
Input Output

replicas.list

environments.replicas.list Lists replicas for an environment. Includes retained terminated replicas from deployments active in the preceding hour. Orders replicas oldest first, with replica ID breaking ties. Pass pagination.cursor with unchanged filters for subsequent pages. Cursors pin deployment membership and expire after one hour. Risk: read
Input Output

replicas.terminate

environments.replicas.terminate Terminates a replica in an environment. Requests replica termination in the environment’s current deployment. Returns 404 if the environment has no current deployment or no replica matches the replica ID. Returns 400 without requesting termination if multiple replicas in the current deployment match the replica ID. Cannot be undone. Risk: destructive · Irreversible
Input Output

resumePromotion

environments.resumePromotion Resumes a paused rolling promotion. Resumes a paused rolling promotion, continuing from where it was paused. Risk: destructive
Input Output

startups.getSummary

environments.startups.getSummary Gets the startup summary for a model environment. Gets the distribution of replica startup durations, in total and per phase, across every deployment that was active on the environment in the given time range. Risk: read
Input Output

startups.list

environments.startups.list Lists the startups of a model environment. Lists replica startups of every deployment that was active on the environment in the given time range, newest first by default. Pass the cursor from a response to fetch the next page. Risk: read
Input Output

update

environments.update Updates an environment’s settings. Asynchronously updates an environment’s settings. Poll the GET endpoint for the applied state. Risk: write
Input
Output

Explore

listModelMetadata

explore.listModelMetadata Lists model metadata. Lists all live model metadata rows, e.g. for model pickers. Risk: read
Input Output

Gateway

endpoints.create

gateway.endpoints.create Creates a Gateway endpoint. Provisions an endpoint for the given slug and its upstream target. Exactly one target is supported at this time. The slug’s prefix must be one your organization owns. Risk: write
Input
Output

endpoints.delete

gateway.endpoints.delete Deletes a Gateway endpoint. Cannot be undone. Risk: destructive · Irreversible
Input Output

endpoints.get

gateway.endpoints.get Gets a Gateway endpoint. (GET /v1/gateway/endpoints/{endpoint_id}) Risk: read
Input Output

endpoints.list

gateway.endpoints.list Lists Gateway endpoints. (GET /v1/gateway/endpoints) Risk: read
Input: empty object Output

endpoints.update

gateway.endpoints.update Updates a Gateway endpoint. Updates the endpoint’s provided mutable fields. If targets are provided, the full target list is replaced. Exactly one target is supported at this time. Risk: write
Input
Output

events.list

gateway.events.list Lists gateway events. (GET /v1/gateway/events) Risk: read
Input Output

groups.apiKeys.create

gateway.groups.apiKeys.create Creates an API key for a group. Creates a new API key for the given group. Risk: destructive · Irreversible
Input Output

groups.apiKeys.get

gateway.groups.apiKeys.get Gets an API key for a group. (GET /v1/gateway/groups/{group_id}/api_keys/{api_key_prefix}) Risk: read
Input Output

groups.apiKeys.list

gateway.groups.apiKeys.list Lists API keys for a group. (GET /v1/gateway/groups/{group_id}/api_keys) Risk: read
Input Output

groups.apiKeys.register

gateway.groups.apiKeys.register Registers an API key for a group. Registers a Gateway API key with the provided value and name. Risk: destructive · Irreversible
Input Output

groups.create

gateway.groups.create Creates a group. Creates a group and its endpoint configuration. Risk: write
Input
Output

groups.get

gateway.groups.get Gets a group. (GET /v1/gateway/groups/{group_id}) Risk: read
Input Output

groups.list

gateway.groups.list Lists groups. (GET /v1/gateway/groups) Risk: read
Input: empty object Output

groups.update

gateway.groups.update Updates a group. Updates the group’s mutable fields. Risk: write
Input
Output

Grid

connections.create

grid.connections.create Creates a connection. Creates a connection from the team to an upstream provider. Risk: write
Input
Output

connections.delete

grid.connections.delete Deletes a connection. Deletes the connection. The team secret it points at is left in place. Cannot be undone. Risk: destructive · Irreversible
Input Output

connections.get

grid.connections.get Gets a connection. (GET /v1/grid/connections/{connection_id}) Risk: read
Input Output

connections.list

grid.connections.list Lists connections. Lists connections, newest first: the team’s with team_id, else those of every team where you can invoke routes. Risk: read
Input Output

connections.update

grid.connections.update Updates a connection. Updates the connection’s fields. The provider and owning team are immutable; point the connection at a new team secret to change its API key, or rotate the key itself by updating the secret. Risk: write
Input
Output

createToken

grid.createToken Creates a Grid access token. Exchanges your Baseten credentials for a short-lived token that authenticates against the Grid gateway as you, in the given team. Tokens expire after four hours and cannot be renewed; request a new one when needed. Routes keys cannot create tokens. Risk: destructive · Irreversible
Input Output

machineUsers.apiKeys.create

grid.machineUsers.apiKeys.create Creates an API key for a machine user. The machine user’s other API keys stay active. Requires team admin for the machine user’s team. Risk: destructive · Irreversible
Input Output

machineUsers.apiKeys.list

grid.machineUsers.apiKeys.list Lists a machine user’s API keys. Lists the machine user’s active API keys, newest first. Requires team admin for the machine user’s team. Risk: read
Input Output

machineUsers.apiKeys.revoke

grid.machineUsers.apiKeys.revoke Revokes a machine user’s API key. The machine user’s other API keys stay active. Requires team admin for the machine user’s team. Cannot be undone. Risk: destructive · Irreversible
Input Output

machineUsers.create

grid.machineUsers.create Creates a machine user. Creates a team-owned identity for an application, with its own Grid budget. Set api_key to also create its first API key, which the response returns only once. Set the machine user’s spend limit with the user settings endpoint, using its id as the user ID. Requires team admin. Risk: write
Input
Output

machineUsers.delete

grid.machineUsers.delete Deletes a machine user. Revokes the machine user’s API keys and deletes it. Its usage history remains. Requires team admin for the machine user’s team. Cannot be undone. Risk: destructive · Irreversible
Input Output

machineUsers.get

grid.machineUsers.get Gets a machine user. Requires team admin for the machine user’s team. Risk: read
Input Output

machineUsers.list

grid.machineUsers.list Lists machine users. Lists machine users, newest first: the team’s with team_id, which requires team admin for it, else those of every team you administer. Risk: read
Input Output

machineUsers.update

grid.machineUsers.update Updates a machine user. Changes only the fields in the request. Requires team admin for the machine user’s team. Risk: write
Input Output

routeClassifiers.get

grid.routeClassifiers.get Gets a route classifier available for intelligent routes. Risk: read
Input Output

routeClassifiers.list

grid.routeClassifiers.list Lists route classifiers available for intelligent routes. Returns Baseten-managed route classifiers available to your organization, ordered by identifier. Route classifiers cannot be created or modified through this API. Risk: read
Input Output

routes.create

grid.routes.create Creates a route. Creates and derives a name for the provided route configuration. CONNECTION targets reference a connection owned by the route’s team; create the connection first. INTELLIGENT targets reference a route classifier from GET /v1/grid/route_classifiers. Risk: write
Input
Output

routes.delete

grid.routes.delete Deletes a route. Cannot be undone. (DELETE /v1/grid/routes/{route_id}) Risk: destructive · Irreversible
Input Output

routes.get

grid.routes.get Gets a route. (GET /v1/grid/routes/{route_id}) Risk: read
Input Output

routes.getUsage

grid.routes.getUsage Gets daily Grid usage and estimated costs. Buckets are UTC days, and days with no usage are included. Organization admins see all Grid usage in the organization. Team admins see usage in teams they manage. Risk: read
Input Output

routes.list

grid.routes.list Lists routes. Lists routes you can invoke, newest first, optionally filtered by exact name. Without team_id, routes from every team where you can invoke routes. With for_harnesses, exactly one team: team_id, else the team you belong to; when you belong to several and name none, the request fails with a 400. Risk: read
Input Output

routes.update

grid.routes.update Updates a route. The route name, target, and owning team are immutable. Risk: write
Input Output

teamSettings.get

grid.teamSettings.get Gets a team’s Grid settings by team ID or your only team. Returns the settings that apply to the team, including the default models for each coding harness and the team’s spend limits. Any member who can invoke the team’s routes can read them. The team comes from team_id instead of the path. Risk: read
Input Output

teamSettings.update

grid.teamSettings.update Updates a team’s Grid settings by team ID or your only team. Changes only the fields in the request, all or nothing. Requires team admin, and organization admin to change the team-wide spend limit. The team comes from team_id instead of the path. Omit it to use the team you belong to; when you belong to several, the request fails with a 400. Risk: write
Input
Output

teamSettings.users.get

grid.teamSettings.users.get Gets a user’s Grid settings by team ID or your only team. Returns the user’s spend limit for Baseten Grid in the team, their spend in the team this month, and whether that spend reached the limit. Members can read their own settings; team admins can read members’ settings in teams they administer, and organization admins can read anyone’s. Risk: read
Input Output

teamSettings.users.list

grid.teamSettings.users.list Lists members’ Grid settings. Returns each member’s settings in each team, including organization admins and Grid service accounts, one row per team membership. With team_id, one team, which requires team admin for it or organization admin; without it, every team you administer, which is none for members. Risk: read
Input Output

teamSettings.users.update

grid.teamSettings.users.update Updates a user’s Grid settings by team ID or your only team. Changes only the fields in the request. Once the user’s metered spend in the team in a month reaches the spend limit, requests with Routes keys they created in the team are rejected until the limit is raised or the next month starts. Risk: write
Input
Output

Inference

asyncPredict

inference.asyncPredict Queues an async predict on a deployed model and returns its request_id; the result goes to webhookEndpoint. Runs on the model’s GPUs, which bill. Pick the target with environment (default production), deploymentId, development or regionalEnvironment. Risk: destructive
Input
Output

asyncRunRemote

inference.asyncRunRemote Queues an async run_remote on a deployed chain and returns its request_id. Runs the chain’s chainlets, which bill. Pick the target with environment (default production), deploymentId, development or regionalEnvironment. Risk: destructive
Input
Output

cancelAsyncRequest

inference.cancelAsyncRequest Cancels a queued async request (only QUEUED requests can be canceled). Pass modelId or chainId. Cannot be undone. Risk: destructive
Input Output

chatCompletions

inference.chatCompletions Create a chat completion. Creates a chat completion for the provided conversation. This endpoint is fully compatible with the OpenAI Chat Completions API, allowing you to use standard OpenAI SDKs by changing only the base URL and API key. Runs a Model APIs model (OpenAI-compatible); billed per token. Returns one JSON reply (no streaming). Risk: destructive
Input
Output

getAsyncQueueStatus

inference.getAsyncQueueStatus Gets how many async requests are queued and in progress for a deployed model. Pick the target with environment (default production), deploymentId, development or regionalEnvironment. Risk: read
Input Output

getAsyncRequest

inference.getAsyncRequest Gets the status of an async model or chain request (QUEUED, IN_PROGRESS, SUCCEEDED, FAILED, EXPIRED, CANCELED, WEBHOOK_FAILED) and its errors. Pass modelId or chainId. Risk: read
Input Output

messages

inference.messages Create a message. Creates a response message for the provided conversation. Compatible with the Anthropic Messages API, so the Anthropic SDK works against this endpoint by changing base_url and overriding the default x-api-key header with Authorization. Runs a Model APIs model through the Anthropic-compatible Messages API; billed per token. Returns one JSON reply (no streaming). Risk: destructive
Input
Output

predict

inference.predict Calls a deployed model’s predict endpoint and returns its JSON output. Runs on the model’s GPUs, which bill, and can wake a scaled-to-zero deployment. Pick the target with environment (default production), deploymentId, development or regionalEnvironment. Risk: destructive
Input Output: JsonValue

responses

inference.responses Create a response. Creates a model response from an input string or a list of input items. Requests are stateless: Baseten stores no response, so send prior turns back as input rather than referring to an earlier response. Runs a Model APIs model through the Responses API; billed per token. Returns one JSON reply (no streaming). Risk: destructive
Input
Output

runRemote

inference.runRemote Calls a deployed chain’s run_remote entrypoint and returns its JSON output. Runs the chain’s chainlets, which bill. Pick the target with environment (default production), deploymentId, development or regionalEnvironment. Risk: destructive
Input Output: JsonValue

wake

inference.wake Wakes a scaled-to-zero model deployment: starts replicas, which bill while they run. Answers once the wake is accepted. Pick the target with environment (default production), deploymentId, development or regionalEnvironment. Risk: destructive
Input Output

Instance Types

list

instanceTypes.list Gets all available instance types. (GET /v1/instance_types) Risk: read
Input: empty object Output

listPrices

instanceTypes.listPrices Gets prices for available instance types. Risk: read
Input: empty object Output

Library Listings

create

libraryListings.create Creates a new library listing. Creates a new library listing for the authenticated user’s organization. Risk: write
Input Output

delete

libraryListings.delete Deletes a library listing. Deletes a library listing and all of its associated versions. Any versions that are currently live will also be removed. Cannot be undone. Risk: destructive · Irreversible
Input Output

get

libraryListings.get Gets a library listing. Returns a specific library listing by its user-defined identifier. Risk: read
Input Output

list

libraryListings.list Gets all library listings. Returns all library listings for the authenticated user’s organization. Risk: read
Input: empty object Output

update

libraryListings.update Updates a library listing. Updates a library listing. Supported fields are the display name, public visibility, listed status, trending status, and the model-level metadata. An unlisted listing is left out of catalogs but still deploys from its direct link. When metadata is provided, it replaces the stored metadata. Risk: write
Input
Output

versions.create

libraryListings.versions.create Creates a new library listing version. Creates a new library listing version from an existing model version. The model version must be fully built (have an image_uri). If a listing with the given id already exists for the org, a new version is added. Otherwise, a new listing is created. Risk: write
Input Output

versions.delete

libraryListings.versions.delete Deletes a library listing version. Deletes a specific version of a library listing. Deleting a live version will fail with a 400 error; demote the version first by setting another version as live. Cannot be undone. Risk: destructive · Irreversible
Input Output

versions.get

libraryListings.versions.get Gets a library listing version. Returns a specific version of a library listing. Risk: read
Input Output

versions.list

libraryListings.versions.list Gets all versions for a library listing. Returns all versions for a specific library listing. Risk: read
Input Output

versions.update

libraryListings.versions.update Updates a library listing version. Updates a library listing version. Setting is_live to true will demote the current live version. When a benchmark is provided, it replaces the stored benchmark. Risk: write
Input
Output

Llm Models

create

llmModels.create Creates a new BIS-LLM deployment. (POST /v1/llm_models) Risk: destructive
Input
Output

createDeployment

llmModels.createDeployment Creates a new BIS-LLM deployment version. Risk: destructive
Input
Output

Loops

checkpoints.delete

loops.checkpoints.delete Deletes a Loops checkpoint. Deletes a Loops checkpoint by ID and returns its tombstone. The checkpoint disappears from listings and can’t be loaded, sampled, or deployed. Deletion is permanent, and storage for some checkpoints is reclaimed later. Cannot be undone. Risk: destructive · Irreversible
Input Output

checkpoints.deploy

loops.checkpoints.deploy Deploys Loops checkpoints. Creates an inference deployment from one or more Loops sampler checkpoints. Confirm the user intends to create billable resources before calling it. This operation is not idempotent; repeating the request can create another deployment. Risk: destructive
Input Output

checkpoints.getFiles

loops.checkpoints.getFiles Gets Loops checkpoint files. Gets presigned URLs for the files under a Loops checkpoint. Returns a paginated list. Risk: read
Input Output

checkpoints.getSource

loops.checkpoints.getSource Gets where a Loops checkpoint’s files come from. Reports how to fetch a checkpoint’s files: s3 when the files endpoint serves presigned URLs for it, or volume with the ref to pull. Clients that download checkpoints should ask here first. Risk: read
Input Output

checkpoints.list

loops.checkpoints.list Lists Loops checkpoints. Lists Loops checkpoints filtered by run id, base model, or bt:// URI. Provide exactly one filter. Risk: read
Input Output

checkpoints.setTtl

loops.checkpoints.setTtl Sets a Loops checkpoint’s TTL. Sets when a Loops checkpoint expires, counted from now, or removes its TTL so it’s kept until you delete it. An expired checkpoint is deleted within 24 hours. If it’s in use when it expires, it’s deleted within 24 hours after it stops being used. Risk: destructive · Irreversible
Input Output

checkpoints.validate

loops.checkpoints.validate Validates a Loops checkpoint bt:// URI. Returns whether the caller can manage and use this checkpoint. Risk: read
Input Output: empty object

deployments.deactivate

loops.deployments.deactivate Deactivates a Loops deployment. Shuts down a Loops deployment by ID. Saved checkpoints remain accessible. Resolving the base model to a deployment ID is the caller’s responsibility: list deployments and pick the active one. Risk: destructive · Irreversible
Input Output

deployments.get

loops.deployments.get Gets a Loops deployment. Fetches a Loops deployment by ID, including its latest status. Risk: read
Input Output

deployments.getDebugArchiveFiles

loops.deployments.getDebugArchiveFiles Gets Loops debug archive files. Gets presigned download URLs for a Loops deployment’s debug archive. Risk: read
Input Output

deployments.getLogs

loops.deployments.getLogs Gets logs for a Loops trainer deployment. Fetches logs from the trainer pods of a Loops deployment. Visible to anyone with training access to the deployment’s team. Risk: read
Input Output

deployments.getMetrics

loops.deployments.getMetrics Gets metrics for a Loops trainer deployment. Returns per-node GPU/CPU/memory utilization and Knative queue-proxy request rate / concurrency / latency for the trainer pods. The sampler half of a Loops deployment is an OracleVersion and uses the existing model-metrics endpoint. Risk: read
Input Output

deployments.list

loops.deployments.list Lists Loops deployments. Lists Loops deployments. Defaults to the caller’s own; pass ?scope=org to list every deployment in the caller’s organization. Returns every deployment regardless of status; clients filter terminal states. Risk: read
Input Output

getCapabilities

loops.getCapabilities Gets Loops server capabilities. Returns the list of models supported by the Loops server, including each model’s maximum context length and whether it supports vision-language inputs. Each entry carries an ‘enabled’ flag saying whether this workspace can run it now, and ‘enablement_details’ explaining why when it cannot. Risk: read
Input Output

runs.create

loops.runs.create Creates a Loops run. Creates a Loops run with an associated sampler in the given session. Risk: destructive
Input
Output

runs.deactivate

loops.runs.deactivate Deactivates a Loops run. Shuts down a Loops run by ID, tearing down both the run and its paired sampler. Succeeds if the run is already inactive. Saved checkpoints remain accessible. Risk: destructive · Irreversible
Input Output

runs.delete

loops.runs.delete Deletes a Loops run. Deletes a Loops run by ID, deactivating it first if it is active, and deletes its checkpoints. Checkpoints still in use, such as deployed ones, are kept and listed in the response; they stay usable until that use stops. Deletion is permanent, and storage for some checkpoints is reclaimed later. Cannot be undone. Risk: destructive · Irreversible
Input Output

runs.get

loops.runs.get Gets a Loops run. Fetches a Loops run by ID. Risk: read
Input Output

runs.list

loops.runs.list Lists Loops runs. Lists Loops runs visible to the requesting user, optionally filtered by run id, base model, and/or session. Defaults to the caller’s own runs; pass ?scope=org to list every run in the caller’s organization. Risk: read
Input Output

samplers.create

loops.samplers.create Creates a Loops sampler. Creates a standalone Loops sampler not linked to a run. Risk: destructive
Input Output

samplers.deactivate

loops.samplers.deactivate Deactivates a standalone Loops sampler. Shuts down a standalone Loops sampler by ID. Succeeds if it is already inactive. A sampler paired to a run always returns 409 with the run’s ID, even if it is inactive. Risk: destructive · Irreversible
Input Output

samplers.get

loops.samplers.get Gets a Loops sampler. Fetches a Loops sampler by ID. Risk: read
Input Output

samplers.list

loops.samplers.list Lists Loops samplers. Lists Loops samplers (paired and standalone), optionally filtered by session. Defaults to the caller’s own; pass ?scope=org to list every sampler in the caller’s organization. Risk: read
Input Output

sessions.create

loops.sessions.create Creates a Loops session. Creates a Loops session scoped to the calling org. Risk: destructive
Input: empty object Output

sessions.get

loops.sessions.get Gets a Loops session. Fetches a Loops session by ID. Risk: read
Input Output

trainers.create

loops.trainers.create Creates a Loops trainer. Creates a trainer-only Loops run in the given session, without a sampler. To sample from it, create a sampler with POST /v1/loops/samplers and pass this run’s ID as run_id to pair the two. List and read the trainer through the /v1/loops/runs endpoints. Risk: destructive
Input
Output

userConfig.get

loops.userConfig.get Gets the caller’s Loops user config. Returns the caller’s Loops user config (per-user accelerator priorities). Null fields mean ‘inherit the org-level allowlist’. Risk: read
Input: empty object Output

userConfig.update

loops.userConfig.update Patches the caller’s Loops user config. Updates the caller’s Loops user config using JSON Merge Patch (RFC 7396) semantics per field: omit a field to leave it unchanged, send null to clear (inherit the org-level allowlist), or send a list to set the allowlist. Empty lists are rejected. Risk: write
Input Output

Model Apis

get

modelApis.get Gets a Model API. Returns model metadata with added-model details for teams where you can invoke Model APIs. Legacy Default Team fields remain deprecated but unchanged. Pass team_ids to narrow team details; unauthorized teams cause a 403. Risk: read
Input Output

getMetrics

modelApis.getMetrics Gets the metrics for a Model API. Gets the metrics for a Model API in the given time range for the teams you can manage, with each series labeled by team_id. Organization admins receive organization-wide metrics by default. Risk: read
Input Output

getUsage

modelApis.getUsage Gets Model APIs token usage in time buckets. Returns Model APIs token usage for the teams you can manage as a series of contiguous time buckets, broken down by the dimensions you pass in group_by. Risk: read
Input Output

list

modelApis.list Lists Model APIs. Lists model metadata with added-model details for teams where you can invoke Model APIs. Legacy Default Team fields remain deprecated but unchanged. Pass team_ids to narrow team details; unauthorized teams cause a 403. added_only=true returns models added by any team in scope. Risk: read
Input Output

Models

create

models.create Creates a new model from a source. Creates a new model in the caller’s organization. The source field selects how the model is constructed (currently library_listing, which forks an accessible listing from GET /v1/library_models). The deployment isn’t instantly ready; poll the GET endpoint until status is ACTIVE. Risk: destructive
Input
Output

delete

models.delete Deletes a model by ID. Cannot be undone. Risk: destructive · Irreversible
Input Output

get

models.get Gets a model by ID. (GET /v1/models/{model_id}) Risk: read
Input Output

getAuditLogs

models.getAuditLogs Gets the audit log for a model. Returns audit-log entries for a single model, newest first. Use the filters to narrow by event type, actor, deployment, environment, source, or time window, and the cursor to page. Risk: read
Input Output

list

models.list Gets all models. (GET /v1/models) Risk: read
Input Output

prepareUpload

models.prepareUpload Validates a model push payload and issues upload credentials. Risk: read
Input
Output

update

models.update Updates a model by ID. Updates the mutable fields of a model and returns the updated model. Renaming does not change the model ID, endpoints, or deployments. Pushes that still use the old model_name create another model or target a model that now uses that name, so update config.yaml after renaming. Risk: write
Input Output

Organization

get

organization.get Gets the authenticated organization. Returns info about the organization of the user making the request. Risk: read
Input: empty object Output

update

organization.update Updates the authenticated organization. Updates settings of the organization of the user making the request. Only organization admins can call it. Omitted fields are unchanged. Risk: destructive · Irreversible
Input Output

Regions

list

regions.list Lists regions available to the organization. Lists the regions available for new deployments in the caller’s organization. A workspace without region access answers 403 (live 12-01). Risk: read
Input: empty object Output

Sandboxes

create

sandboxes.create Create a sandbox. Create a sandbox with an optional client-provided name, generated by the server when omitted. The request waits briefly for deployment, then returns the created resource. Deployment may continue after the response; inspect status to determine readiness. Risk: destructive
Input
Output

createAccessToken

sandboxes.createAccessToken Creates a sandbox access token. Exchanges your Baseten credentials for a short-lived token that authenticates against the sandbox API. The token carries every team you belong to. Tokens expire after two hours, or when the workload identity access token that requested them expires, whichever is sooner. Risk: destructive · Irreversible
Input Output

delete

sandboxes.delete Delete a sandbox. Permanently delete the sandbox and its local data asynchronously. The returned resource has status DELETING. Cannot be undone. Risk: destructive · Irreversible
Input Output

get

sandboxes.get Get a sandbox. Return the sandbox configuration and status. Risk: read
Input Output

getConfiguration

sandboxes.getConfiguration Get sandbox configuration. Return available Carbon-compatible sandbox regions. Configuration is the same for every team, so no team is selected. Only enabled regions supporting Carbon are returned. This describes regional capability, not the runtime selected for a particular team or sandbox. Risk: read
Input: empty object Output

getLogs

sandboxes.getLogs Get sandbox logs. Returns sandbox runtime logs, newest first, within the half-open range [start_time, end_time). Ranges are limited to 7 days. Follow next_cursor until it is null to retrieve all pages, keeping the same range and limit. Logs before sandbox creation are excluded. Unavailable telemetry returns an error. Risk: read
Input Output

getMetrics

sandboxes.getMetrics Get sandbox metrics. Returns every interval with labeled request counts, CPU cores, and RSS memory bytes. CURRENT returns one snapshot at now, with request counts over the preceding minute and latest gauges. SUMMARY returns one value set over the window. Risk: read
Input Output

images.cleanup

sandboxes.images.cleanup Clean up unused images. Remove unused sandbox image versions. Versions referenced by active deployments are preserved. One call runs for a limited time; when has_more is true, only part of the unused versions were removed and the call should be repeated. Risk: destructive · Irreversible
Input Output

images.delete

sandboxes.images.delete Delete a sandbox image. Delete the image repository and all its tags. Reject deletion if any version is referenced by an active deployment. Return the deleted image. Cannot be undone. Risk: destructive · Irreversible
Input Output

images.get

sandboxes.images.get Get a sandbox image. Return the repository summary and processing status. Use the tag listing endpoint for image versions. Risk: read
Input Output

images.getBuildLogs

sandboxes.images.getBuildLogs Get image build logs. Return one page of logs from the latest recorded build of this image, including failed builds, newest first. Logs may take a short time to appear. Defaults to the last 24 hours; the requested time range must not exceed 7 days. Keep start_time and end_time fixed when paging with offset. Risk: read
Input Output

images.list

sandboxes.images.list List sandbox images. Return one cursor-paginated page of image repository summaries. Tags are listed separately. Pages can be empty when non-sandbox repositories are excluded; follow pagination.cursor while pagination.has_more is true. Prefix search forces ascending name order. Risk: read
Input Output

images.listLibrary

sandboxes.images.listLibrary List built-in sandbox images. Return the built-in sandbox images, the same for every team, so no team is selected. Use the image field directly as the image of a sandbox, without building or pushing it. Hidden and upcoming images are excluded. Risk: read
Input: empty object Output

images.push

sandboxes.images.push Push a sandbox image. With image supplied, import the registry image asynchronously. Otherwise return an upload URL for a ZIP source archive containing its Dockerfile and build context. The uploaded ZIP archive must not exceed 5 GB. Processing starts after upload. No sandbox is created. Risk: destructive
Input Output

images.tags.delete

sandboxes.images.tags.delete Delete an image tag. Delete a specific image version. Reject deletion if the version is referenced by an active deployment. Return the updated repository summary. Use the tag listing endpoint for remaining image versions. Cannot be undone. Risk: destructive · Irreversible
Input Output

images.tags.list

sandboxes.images.tags.list List image tags. Return one cursor-paginated page of image versions. Risk: read
Input Output

list

sandboxes.list List sandboxes. Return a cursor-paginated page of sandboxes. Terminated sandboxes are hidden by default. Risk: read
Input Output

previews.create

sandboxes.previews.create Create a sandbox preview. Expose a port of the sandbox on an HTTPS URL. A public preview is reachable by anyone with the URL. Risk: write
Input
Output

previews.delete

sandboxes.previews.delete Delete a sandbox preview. Delete the preview and revoke its tokens. The URL stops serving immediately. Return the deleted preview, with status TERMINATED, or DELETING while a preview with many tokens finishes in the background. Cannot be undone. Risk: destructive · Irreversible
Input Output

previews.get

sandboxes.previews.get Get a sandbox preview. Return the preview configuration, URL and status. Risk: read
Input Output

previews.list

sandboxes.previews.list List sandbox previews. Return the previews of the sandbox in the paginated list format. cursor and limit are accepted but not applied yet; all previews fit on one page, so has_more is false. Follow pagination.cursor while has_more is true to stay compatible when they are applied. Risk: read
Input Output

previews.tokens.create

sandboxes.previews.tokens.create Create a preview token. Create a token granting access to a private preview until expires_at. Append it to the preview URL as ?preview_token=<token>. Risk: destructive · Irreversible
Input Output

previews.tokens.delete

sandboxes.previews.tokens.delete Delete a preview token. Revoke the token. Requests using it are rejected immediately. Cannot be undone. Risk: destructive · Irreversible
Input Output

previews.tokens.list

sandboxes.previews.tokens.list List preview tokens. Return the tokens of a private preview in the paginated list format, including expired tokens until they are removed. cursor and limit are accepted but not applied yet; all tokens fit on one page, so has_more is false. Risk: read
Input Output

previews.update

sandboxes.previews.update Update a sandbox preview. Partially update the preview. Omitted fields remain unchanged; supplied header maps replace their previous values. The URL does not change. Setting ttl or expires_at replaces any previous expiration and restarts it from now. The name and port are immutable; supplying either returns 400. Risk: write
Input
Output

update

sandboxes.update Update a sandbox. Partially update configuration. Omitted fields remain unchanged; supplied arrays and maps replace their previous values. Structured objects update only supplied fields. The name, memory, region, image, ports, filesystem, and volumes are immutable after creation. Risk: write
Input
Output

volumes.create

sandboxes.volumes.create Create a volume. Create a persistent volume that outlives the sandboxes it is mounted in. Mount it at sandbox creation with the volumes field; a volume is mounted in at most one sandbox at a time and must be in the same region. The name is generated when omitted. Volume size and count are limited by the team’s plan. Risk: write
Input Output

volumes.delete

sandboxes.volumes.delete Delete a volume. Permanently delete the volume and its data asynchronously. The returned resource has status DELETING. A volume mounted in a sandbox cannot be deleted (409); delete the sandbox first. Repeating the call while it is deleting returns the same resource. Cannot be undone. Risk: destructive · Irreversible
Input Output

volumes.get

sandboxes.volumes.get Get a volume. Return the volume, its status and the sandbox it is mounted in, if any. Risk: read
Input Output

volumes.list

sandboxes.volumes.list List volumes. Return a cursor-paginated page of persistent volumes, newest first. Keep q and status unchanged when following a cursor. Risk: read
Input Output

volumes.update

sandboxes.volumes.update Update a volume. Grow the volume or replace its labels. size can only increase. The name and region are immutable; supplying either returns 400. Risk: write
Input
Output

Secrets

delete

secrets.delete Deletes a secret by name. Deletes a secret by name in the specified team, or in the caller’s organization default team when no team is specified. Cannot be undone. Risk: destructive · Irreversible
Input Output

list

secrets.list Gets all secrets (metadata only, no plain text keys). Names and dates only: secret values are never returned. Risk: read
Input: empty object Output

upsert

secrets.upsert Upserts a secret. Creates or updates a secret by name. Scoped to the caller’s primary team; use the team-scoped variant to target a specific team. Replaces the value of an existing secret with the same name: try it with a new name or on a test team. Risk: destructive · Irreversible
Input Output

Service Accounts

create

serviceAccounts.create Creates a service account. Creates a service account that workload identity federation tokens act as. It’s enabled at once. Omit team_id for an organization account, which only an organization admin can create. A team admin can create accounts for their own team. Risk: write
Input
Output

delete

serviceAccounts.delete Deletes a service account. Deletes a disabled service account that no trust rule uses. Disable the account and delete its trust rules first. Cannot be undone. Risk: destructive · Irreversible
Input Output

get

serviceAccounts.get Gets a service account. (GET /v1/service_accounts/{service_account_id}) Risk: read
Input Output

getAccess

serviceAccounts.getAccess Gets a service account’s roles and the permissions they grant. Needs service_account.read where the account belongs. Risk: read
Input Output

list

serviceAccounts.list Lists service accounts. Lists the service accounts you administer: every account for an organization admin, and your teams’ accounts for a team admin. Workload identity federation tokens act as service accounts. Risk: read
Input Output

update

serviceAccounts.update Updates a service account. Updates the fields you send. Set disabled to true to stop the account being used, and back to false to restore it. preset_permissions replaces the account’s access as a whole. The owning team can’t change. Risk: destructive · Irreversible
Input
Output

Teams

createApiKey

teams.createApiKey Creates a team API key. Creates a team API key with the provided name and type. The API key is returned in the response. Returns the new key’s secret once. Risk: destructive · Irreversible
Input Output

environmentGroups.get

teams.environmentGroups.get Gets an environment group by name. Gets a single environment group by name. The team-scoped path targets the team in the path; the top-level path targets the caller’s organization default team. Risk: read
Input Output

environmentGroups.list

teams.environmentGroups.list Lists environment groups. Lists environment groups. The team-scoped path targets the team in the path; the top-level path targets the caller’s organization default team. Risk: read
Input Output

environmentGroups.update

teams.environmentGroups.update Updates an environment group’s restriction settings. Sets whether the environment is restricted and replaces the list of users granted manage access. The team-scoped path targets the team in the path; the top-level path targets the caller’s organization default team. Risk: destructive · Irreversible
Input
Output

get

teams.get Gets a team by ID. Returns a team the authenticated user has access to. Risk: read
Input Output

list

teams.list Lists all teams. Returns a list of all teams the authenticated user has access to. Risk: read
Input Output

llmModels.create

teams.llmModels.create Creates a new BIS-LLM deployment. (POST /v1/teams/{team_id}/llm_models) Risk: destructive
Input
Output

loops.runs.create

teams.loops.runs.create Creates a Loops run in a team. Creates a Loops run with an associated sampler in the given session; the run’s infrastructure belongs to the given team. Risk: destructive
Input
Output

loops.runs.list

teams.loops.runs.list Lists a team’s Loops runs. Lists Loops runs in the given team, visible to the requesting user, optionally filtered by run id, base model, and/or session. Risk: read
Input Output

loops.samplers.create

teams.loops.samplers.create Creates a Loops sampler in a team. Creates a standalone Loops sampler not linked to a run; the sampler belongs to the given team. Risk: destructive
Input Output

loops.samplers.list

teams.loops.samplers.list Lists a team’s Loops samplers. Lists Loops samplers (paired and standalone) in the given team, visible to the requesting user, optionally filtered by session. Defaults to the caller’s own; pass ?scope=org to list every sampler in the team. Risk: read
Input Output

loops.sessions.create

teams.loops.sessions.create Creates a Loops session. Creates a Loops session scoped to the calling org. Risk: destructive
Input Output

loops.trainers.create

teams.loops.trainers.create Creates a Loops trainer. Creates a trainer-only Loops run in the given session, without a sampler. To sample from it, create a sampler with POST /v1/loops/samplers and pass this run’s ID as run_id to pair the two. List and read the trainer through the /v1/loops/runs endpoints. Risk: destructive
Input
Output

models.create

teams.models.create Creates a new model from a source. Creates a new model in the caller’s organization. The source field selects how the model is constructed (currently library_listing, which forks an accessible listing from GET /v1/library_models). The deployment isn’t instantly ready; poll the GET endpoint until status is ACTIVE. Risk: destructive
Input
Output

models.list

teams.models.list Gets all models. (GET /v1/teams/{team_id}/models) Risk: read
Input Output

regions.list

teams.regions.list Lists regions available to a team. Lists the regions the team specified in the path can place deployments in. Risk: read
Input Output

secrets.delete

teams.secrets.delete Deletes a secret by name. Deletes a secret by name in the specified team, or in the caller’s organization default team when no team is specified. Cannot be undone. Risk: destructive · Irreversible
Input Output

secrets.list

teams.secrets.list Gets all secrets for a team (metadata only, no plain text keys). Risk: read
Input Output

secrets.upsert

teams.secrets.upsert Upserts a secret in a team. Creates a new secret or updates an existing secret if one with the provided name already exists. The name and creation date of the created or updated secret is returned. This secret belongs to the specified team. Replaces the value of an existing secret with the same name. Risk: destructive · Irreversible
Input Output

trainingProjects.upsert

teams.trainingProjects.upsert Upserts a training project in a specific team. Upserts a training project with the specified metadata for a team. Risk: write
Input
Output

Training

getCapacity

training.getCapacity Gets training GPU capacity. Returns on-demand and spot GPU quotas and current usage for the teams you can view, plus organization-wide totals when you have organization-level access. Risk: read
Input: empty object Output

jobs.create

training.jobs.create Creates a training job. Creates a training job with the specified configuration. Risk: destructive
Input
Output

jobs.delete

training.jobs.delete Deletes a training job. Deletes a training job. Stops it first if still running. Cannot be undone. Risk: destructive · Irreversible
Input Output

jobs.get

training.jobs.get Gets a training job. Gets the details of an existing training job. Risk: read
Input Output

jobs.getAuthCodes

training.jobs.getAuthCodes Gets auth codes for a training job. Gets authentication codes for all nodes of a training job’s interactive sessions. Risk: read
Input Output

jobs.getCheckpointFiles

training.jobs.getCheckpointFiles Gets training job checkpoint files. Gets presigned URLs for all checkpoint files for a training job. Risk: read
Input Output

jobs.getDownloadUrls

training.jobs.getDownloadUrls Gets presigned URLs for a training job’s artifacts. Returns presigned S3 URLs for the artifacts uploaded by a training job. Risk: read
Input Output

jobs.getLogs

training.jobs.getLogs Gets the logs for a training job. Gets the logs for a training job with the provided filters. Risk: read
Input Output

jobs.getMetrics

training.jobs.getMetrics Gets the metrics for a training job. (GET /v1/training_projects/{training_project_id}/jobs/{training_job_id}/metrics) Risk: read
Input Output

jobs.getQueueContext

training.jobs.getQueueContext Reconstructs queue context for a training job. Returns the (org, gpu_type) capacity pool the job was gated by, jobs that were holding GPU capacity in that pool when this job was submitted, and every TrainingJobStatus event in [submitted_at, released_at] for those jobs, useful for understanding why a job sat in PENDING. Risk: read
Input Output

jobs.list

training.jobs.list Lists training jobs. Lists the training project’s jobs, newest first. Risk: read
Input Output

jobs.listCheckpoints

training.jobs.listCheckpoints Gets training job checkpoints. Gets the checkpoints for a training job. Risk: read
Input Output

jobs.recreate

training.jobs.recreate Recreates a training job. Creates a new training job with the same configuration as an existing training job. Risk: destructive
Input Output

training.jobs.search Searches training jobs. Searches training jobs for the organization. Send the same filters with every page. Risk: read
Input
Output

jobs.setCheckpointTtl

training.jobs.setCheckpointTtl Sets a training job checkpoint’s TTL. Sets when a training job checkpoint expires, counted from now, or removes its TTL so it never expires. Once a job stops, a TTL can be set only after its checkpoint upload is confirmed as finished, which usually takes a few minutes. Risk: destructive · Irreversible
Input Output

jobs.signSshCertificate

training.jobs.signSshCertificate Signs an SSH certificate for a training job. Signs a short-lived SSH certificate granting access to a specific training job pod. Returns the signed SSH certificate, a JWT token for SSH proxy authentication, the proxy address to connect through, and the certificate expiry time. Risk: destructive · Irreversible
Input Output

jobs.stop

training.jobs.stop Stops a training job. (POST /v1/training_projects/{training_project_id}/jobs/{training_job_id}/stop) Risk: destructive · Irreversible
Input Output

jobs.update

training.jobs.update Updates a training job. Updates mutable fields on a PENDING training job: the queue priority (higher priorities are dequeued first) and the availability model (standard or spot capacity). Changes take effect on the next queue evaluation, which is triggered immediately. Risk: write
Input Output

jobs.updateInteractiveSession

training.jobs.updateInteractiveSession Patches an interactive session. Updates specific fields on a training job’s interactive session. Only provided (non-null) fields are updated. Risk: write
Input Output

projects.delete

training.projects.delete Deletes a training project. Deletes a training project and all associated training jobs. Cannot be undone. Risk: destructive · Irreversible
Input Output

projects.get

training.projects.get Gets a training project. Gets the details of an existing training project. Risk: read
Input Output

projects.getCacheSummary

training.projects.getCacheSummary Gets training project cache summary. Gets the cache summary for the most recent training job in the project. Risk: read
Input Output

projects.list

training.projects.list Lists training projects. Lists the organization’s training projects, newest first. Risk: read
Input Output

projects.upsert

training.projects.upsert Upserts a training project. Upserts a training project with the specified metadata. Risk: write
Input
Output

setCapacity

training.setCapacity Sets a team’s training GPU quota. Sets a team’s GPU quota for a given type. It counts the team’s on-demand jobs, plus its spot jobs when the organization has no separate on-demand quota, and on-demand jobs can borrow past it from the organization’s shared pool when one exists. Risk: destructive
Input Output

Users

get

users.get Gets a user by ID. Returns info about a user in the caller’s workspace. Risk: read
Input Output

getAccess

users.getAccess Gets a user’s roles and the permissions they grant. Needs access.member.read for the organization. Risk: read
Input Output

getMe

users.getMe Gets the authenticated user. Returns info about the user making the request. Risk: read
Input: empty object Output

getMyAccess

users.getMyAccess Gets your roles and the permissions they grant. Lists every role you hold: assigned to you or a directory group you’re in, or held through organization and team membership. Users and service accounts can call it. Once fine-grained authorization decides your organization’s requests, it needs access.self.read. Risk: read
Input: empty object Output

list

users.list Lists users in the workspace. Returns the workspace’s members. Only actual joined members are returned; service accounts, invited users, and pending join requests are excluded. Risk: read
Input Output

Volumes

createAccessToken

volumes.createAccessToken Creates a volume access token. Exchanges your API key for a short-lived token that authenticates against Baseten volume storage. A volume token is needed only to push and pull volume data; other volume operations use your API key directly. Risk: destructive · Irreversible
Input Output

delete

volumes.delete Deletes a volume. Deletes every live version of the volume, after which the volume stops appearing in listings. The data is not erased: each version stays restorable until its recovery deadline passes, and the versions sub-resource still reports them when you pass include_tombstoned. Cannot be undone. Risk: destructive · Irreversible
Input Output

get

volumes.get Gets a volume. Returns a volume with its tags, head version, version counts, and any scheduled expiry. Versions live on the versions sub-resource so they can be paged separately. A volume whose versions have all been deleted or have expired is still returned, with zero live versions. Risk: read
Input Output

list

volumes.list Gets the volumes in a namespace. Returns one row per volume in the namespace, each with its tags, head version, version counts, and any scheduled expiry. Pass namespace to choose the namespace, which is required because the volume service has no cross-namespace inventory. Risk: read
Input Output

listNamespaces

volumes.listNamespaces Gets the volume namespaces in your workspace. Returns the namespaces that hold volumes your API key can read, in lowercase. Namespaces are not created directly: a namespace comes into existence when the first volume is pushed into it. Risk: read
Input Output

syncs.cancel

volumes.syncs.cancel Cancels a volume sync. Requests cancellation of a pending or running sync. Repeated cancellation and cancellation of terminal syncs return the existing state. Once cancellation is accepted, a later completion callback cannot replace the CANCELED state. Risk: destructive · Irreversible
Input Output

syncs.get

volumes.syncs.get Gets a volume sync. (GET /v1/volumes/syncs/{volume_sync_id}) Risk: read
Input Output

syncs.list

volumes.syncs.list Lists volume syncs. Lists volume syncs in the active workspace, newest first. Results may be narrowed by an exact destination ref. Risk: read
Input Output

syncs.start

volumes.syncs.start Starts a volume sync. Starts one durable asynchronous transfer from a remote source into a BDN volume. Risk: destructive
Input
Output

tags.delete

volumes.tags.delete Deletes a volume tag. The version remains available by digest and any other tags. If the tag is absent, the request succeeds with deleted set to false. Deleting head makes references without a tag or digest stop resolving until head is set again. Cannot be undone. Risk: destructive · Irreversible
Input Output

tags.set

volumes.tags.set Sets a volume tag. Setting an existing tag overwrites it. The previous version remains available by digest. Pass expires_at to set the tag’s expiration time. Omit expires_at to clear any expiration time on the tag. Version or volume expiration still deletes the tag. Risk: write
Input Output

update

volumes.update Updates a volume. Updates a volume’s settings, such as its expiration time. Only the settings in the request change. Risk: write
Input Output

versions.delete

volumes.versions.delete Deletes one version of a volume. Deletes the version the address names, along with every tag pointing at it. Addressing the version by tag deletes the version the tag points at, not the tag. The data is not erased: the version stays restorable until the recovery deadline in the response passes. Cannot be undone. Risk: destructive · Irreversible
Input Output

versions.get

volumes.versions.get Gets one version of a volume. Returns a single version of the volume. Address it with :<tag> for a tag, @<digest> for a full content digest or a prefix of at least 12 hexadecimal characters, or head for the version a reference with no tag or digest resolves to. Risk: read
Input Output

versions.list

volumes.versions.list Gets the versions of a volume. Returns every live version of the volume, newest first, each with its digest, size, lifecycle, the tags pointing at it, and any scheduled expiry. Pass include_tombstoned to list deleted and expired versions alongside them. Risk: read
Input Output

versions.restore

volumes.versions.restore Restores a deleted or expired version of a volume. Returns a deleted or expired version to service, provided its recovery deadline has not passed. The tags the version carried are not restored with it, so re-tag it if anything depended on those, and a restored version never expires until something sets a new expiry. Risk: destructive · Irreversible
Input Output