Skip to main content
POST
Create API Box Snapshot

Authorizations

Authorization
string
header
required

Use a Continuous API key. Send it in the Authorization header as a Bearer token.

Headers

Idempotency-Key
string

Optional key for retrying this create safely. A retry with the same key and request returns the original result with its status; the same key with a different request returns 409 idempotency_conflict. Without a key, each request creates a new resource. The key is recorded before the build starts, so a retry never starts a second build.

Maximum string length: 256

Body

multipart/form-data
request
object
required

Build options as JSON.

document
file[]

Vendor documentation the builder and reviewer read before they start, as repeated file parts: UTF-8 text (.md, .txt, .html, .json, .yaml, .xml, .csv) or PDF (.pdf). The documents share the request body limit with the spec.

spec
file

OpenAPI, WSDL or GraphQL document, UTF-8 encoded, at most 64 MiB.

Response

Accepted

build
object | null
required

The build's latest progress report, or null before the first report. A settled Snapshot keeps its last report. A build waiting for its live credentials resumes with POST /v1/apibox-snapshots/{id}/resume.

composition
object | null
required

What a ready Snapshot serves, or null.

created_at
string<date-time>
required

Snapshot creation time.

credential_ids
string[]
required

Workspace credentials the build was allowed to call real systems with. Empty when none.

error
object | null
required

Why the build failed or was canceled, or null.

hidden_limitations
integer<int64>
required

Limitations the Snapshot records beyond those listed in limitations.

Required range: x >= 0
id
string
required

API Box Snapshot ID.

Pattern: ^abs_[0-9A-HJKMNP-TV-Z]{26}$
instructions
string
required

The instructions the build followed, or empty when none were given.

limitations
object[]
required

Behavior the Snapshot does not serve like the real system, most important first, whether it was built or published. Empty when none.

metadata
any
required

Customer JSON metadata, or null.

name
string
required

Snapshot name. The ID is its identity, and names need not be unique.

Maximum string length: 128
research
object | null
required

The build's research stage, or null when research did not run.

source
enum<string>
required

catalog for a Snapshot Continuous publishes, build for one built or published into the workspace.

Available options:
catalog,
build
spec_kind
enum<string> | null
required

The specification the Snapshot was built from, or null until the build has read it.

Available options:
openapi,
wsdl,
graphql,
null
status
enum<string>
required

pending while waiting for capacity; building while the build runs; ready when API Boxes can start from it; failed when the build failed; canceled when a cancel request took effect.

Available options:
pending,
building,
ready,
failed,
canceled