Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

The San Francisco Compute Company Deployments API

Deployment automations that maintain a fleet of instances, including spot deployments that buy capacity up to a maximum price.

The San Francisco Compute Company Deployments API is one of 14 APIs that The San Francisco Compute Company publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Deployments. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an API reference, and authentication docs.

This API exposes 5 operations across 2 paths, and defines 43 schemas. It is described by OpenAPI 3.1.0, at version 0.1.0.

Requests are made against a single base URL, https://api.sfcompute.com.

5 operations 2 paths 43 schemas 1 DELETE2 GET1 PATCH1 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
0.1.0
Base URL
https://api.sfcompute.com/preview/v2
Authentication
HTTP Bearer
Resource Areas
1

Authentication & Security 1

The San Francisco Compute Company Deployments API declares 1 security scheme for authenticating requests. It accepts HTTP bearer tokens (JWT) (bearer_auth). By default, every request must be authenticated.

  • bearer_auth — Create an API token using sf tokens create or at https://sfcompute.com/account/api-keys.

Paths & Operations 5

Across 2 paths, the API surfaces 5 operations — 1 DELETE, 2 GET, 1 PATCH, 1 POST. Each is listed below with its method, path, parameters, and response codes.

Deployments 5

Deployment automations that maintain a fleet of instances, including spot deployments that buy capacity up to a maximum price.

POST
/preview/v2/deployments
Create deployment
create_deployment body → 201400401403409422500
GET
/preview/v2/deployments
List deployments
list_deployments 5 params → 200401403422500
DELETE
/preview/v2/deployments/{id}
Delete deployment
delete_deployment 1 param → 204401403404500
GET
/preview/v2/deployments/{id}
Get deployment
get_deployment 1 param → 200401403404500
PATCH
/preview/v2/deployments/{id}
Update deployment
patch_deployment 1 param body → 200400401403404422500

Schemas 43

The contract defines 43 schemas that model the data the API accepts and returns. The most detailed are CreateSpotDeploymentRequest (7 properties), PatchDeploymentRequest (6 properties), SpotDeploymentScope (6 properties), DeploymentScope (6 properties). Each schema is shown below with its type and property counts.

InstanceSkuId
Accepts the canonical prefix below; additional legacy prefixes are aliased for read compatibility. Writes always emit the canonical form.
InternalServerError
object
1 property 1 required
DeploymentId
string
ResourcePathOrId_SpotDeploymentId
string
A resource path like 'sfc:spotdeployment:acme:prod:my-spotdeployment' or an ID. Resource paths are human-readable but not stable - they change when resources a…
DeploymentScope
object
6 properties 6 required
SpotDeploymentId
string
UnprocessableEntityError
object
1 property 1 required
CreateDeploymentResourceRequest
ListDeploymentsResponse
object
4 properties 3 required
AutomationStatus
string
ErrorDetail
object
3 properties 2 required
SpotDeploymentResponse
A spot deployment buys compute up to a maximum price and runs instances on the secured pool.
WorkspaceId
string
DeploymentResource
ConflictError
object
1 property 1 required
ResourcePathOrId_PoolId
string
A resource path like 'sfc:pool:acme:prod:my-pool' or an ID. Resource paths are human-readable but not stable - they change when resources are renamed or moved.…
BadRequestError
object
1 property 1 required
NameTemplate
string
A name template using {{variable}} syntax. Available variables: {{adjective}} (~128 random adjectives), {{noun}} (~128 random nouns), {{nanoid(N)}} (N-characte…
UnauthorizedError
object
1 property 1 required
deploymentResourcePath_DeploymentId
string
A resource path for a deployment resource. Format: sfc:deployment: : : .
PatchDeploymentRequest
object
6 properties
spot_deploymentResourcePath_SpotDeploymentId
string
A resource path for a spotdeployment resource. Format: sfc:spotdeployment: : : .
PoolId
string
ReconciliationStatus
object
2 properties 2 required
NotFoundError
object
1 property 1 required
DeploymentsCursor
string
PoolSummary
object
A pool referenced by id and name.
2 properties 2 required
CreateSpotDeploymentRequest
object
A spot deployment buys capacity for a specific instance SKU at or below a maximum rate, then maintains a target number of instances on that capacity.
7 properties 5 required
SpotDeploymentScope
object
6 properties 6 required
CreateDeploymentRequest
object
A generic deployment maintains a target number of instances using capacity already owned in a pool. It does not buy additional capacity.
6 properties 4 required
DeploymentResponse
CapacityId
Accepts the canonical prefix below; additional legacy prefixes are aliased for read compatibility. Writes always emit the canonical form.
Name
string
InstanceTemplateId
Accepts the canonical prefix below; additional legacy prefixes are aliased for read compatibility. Writes always emit the canonical form.
CapacitySummary
object
2 properties 2 required
InstanceSkuSummary
object
A summary of an instance SKU - its id and human-recognizable alias - embedded on resources that reference a SKU.
3 properties 3 required
DollarsPerNodeHour
string
Price rate in dollars per node-hour.
ResourcePathOrId_DeploymentId
string
A resource path like 'sfc:deployment:acme:prod:my-deployment' or an ID. Resource paths are human-readable but not stable - they change when resources are renam…
InstanceTemplateSummary
object
2 properties 2 required
ResourcePathOrId_InstanceTemplateId
string
A resource path like 'sfc:instancetemplate:acme:prod:my-instancetemplate' or an ID. Resource paths are human-readable but not stable - they change when resourc…
ResourcePathOrId_WorkspaceId
string
A resource path like 'sfc:workspace:acme:my-workspace' or an ID. Resource paths are human-readable but not stable - they change when resources are renamed or m…
UnixEpoch
integer
Unix timestamp.
ForbiddenError
object
1 property 1 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

the-san-francisco-compute-company-deployments-api-openapi.yml Raw ↑

Other APIs The San Francisco Compute Company publishes across the network.

The San Francisco Compute Company Account API
The San Francisco Compute Company Feature Flags API
The San Francisco Compute Company Images API
The San Francisco Compute Company Instance SKU Catalog API
The San Francisco Compute Company Instance SKUs API
The San Francisco Compute Company Instance Templates API
The San Francisco Compute Company Instances API
The San Francisco Compute Company Orderbook API
The San Francisco Compute Company Orders API
The San Francisco Compute Company Pools API
The San Francisco Compute Company Procurements API
The San Francisco Compute Company Users API