Skip to main content
POST
Create a presigned upload session for a local OCI image archive.

Authorizations

Authorization
string
header
required

Vers API key (VERS_API_KEY) sent as Authorization: Bearer <key>.

Headers

Idempotency-Key
string<uuid>
required

Tenant-scoped upload reservation identity

Body

application/json
archive_format
string
required

Exact local-image interchange contract. New uploads must explicitly request the server-verified v2 contract: docker_archive_v2 for a plain archive, or docker_archive_v2_gzip for the same archive gzip-compressed in transit, where size_bytes and content_sha256 describe the compressed bytes. The deserializer accepts a missing field only so pre-v2 clients receive an actionable upgrade error from admission rather than a generic JSON decode failure.

Example:

"docker_archive_v2"

content_sha256
string
required

Lowercase hexadecimal SHA-256 of the complete uploaded object.

size_bytes
integer<int64>
required

Response

Upload identity is already owned by an import

Durable v2 replay result. An upload identity that is already owned by an import never receives another writable object contract.

expires_at
string<date-time>
required
headers
object
required

Headers signed into the upload URL. Clients must send every returned header verbatim, including content-length.

method
string
required
outcome
enum<string>
required
Available options:
upload_required
upload_id
string<uuid>
required
url
string
required