Skip to content
Esc
↑↓navigate↵open⌘Jpreview
On this page

Spacefast Partner API

API for sharing AI artifacts, managing spaces, claiming anonymous publishes, and operating versions.

The API is versioned in the URL path (/v1). Operations marked deprecated also send RFC 9745 Deprecation and RFC 8594 Sunset headers, plus a Link with rel="deprecation" pointing at the versioning and deprecation policy: https://spacefast.com/docs/api/

Test mode

Your account has two tenants: a live one and a linked test one, each with its own credentials. Test spaces, principals, events, and webhook deliveries are separate from live ones and are never billed. Configure test first, then export that configuration to live with POST /v1/tenants/{tenantId}/promote.

Test mode also simulates failures. Put one of these reserved values into the ordinary input shown below — there is no extra field and no extra route — and the operation produces that failure instead of succeeding. The value may be the whole input or one label inside it (sf-sim-tls-fail.acme.dev).

Value Put it in Result
sf-sim-build-fail space slug the space’s next build fails
sf-sim-domain-pending custom domain name domain verification stays pending
sf-sim-domain-fail custom domain name domain verification fails
sf-sim-tls-fail custom domain name certificate issuance fails
sf-sim-rate-limit space slug (on create) the create returns 429 rate_limited
sf-sim-webhook-retry webhook URL delivery fails and enters the retry schedule
sf-sim-suspend external principal id the principal is suspended
sf-sim-usage-correction space slug the next settled usage sample appends a linked correction

These values only ever fire on a test-mode tenant. A live tenant treats the exact same input as an ordinary slug, domain, URL, or id.

Token issuers

An active token issuer iss is unique across all of Spacefast, so your test and live tenants must each declare a DIFFERENT issuer URL in their own system-space manifest. Declaring the same iss for both fails to activate the second one.

Version 0.8.1
Base URLhttps://api.spacefast.com

Spaces

Create, transfer, and manage spaces.

Publishing

Publish files in one call, then claim the space that came back.

Agent

What an agent may do: scoped context, approvals, and resuming a paused action.

Git

Connected repositories: files, commits, diffs, branches, and syncs.

Builds

Remote source execution, build logs, retries, and cancellation.

Versions

Version lifecycle: upload, finalize, promote, and inspect.

Domains

Space hostnames and optional domain registration and DNS management.

Access

Who can open a space: grants, share links, people, passwords, machine credentials, and access requests.

Variables

Space and team variables resolved at publish time.

Connectors

Services a team connected, the tools they expose, what policy allows, and the runs and artifacts built on them.

Runtime

What a space runs: runtime status, deployed shape, and realtime replay.

Database

The database a space’s runtime owns: schema, rows, migrations, and console.

Tags

Tag manager templates, drafts, releases, and preview sessions.

Activity

Activity feed, logs, analytics, webhooks, and operations.

Teams

Team membership, settings, usage, and entitlements.

Account

Identity, API keys, device login, and event intake.

Docs

Machine-readable documentation index: guides, CLI, API reference, and recipes.

Partner

Partner surface for tenants operating spaces on behalf of their own customers.

Was this page helpful?