Buckets

Create an upload session

POST/v1/workspaces/{workspaceId}/buckets/{bucketId}/upload-sessions

Returns a signed PUT. Bytes go to the store, not through Spark.

Authentication

Send your Spark API key with every request. The value is the full bearer token Spark returned when you created the key. See Authentication.

Authorization: Bearer <SPARK_API_KEY>

Path parameters

workspaceId

string

The workspace id.

bucketId

string

The storage bucket id.

Request body

key

string

Object key.

lengthBytes

string

Exact object size as a decimal string.

contentType

string (optional)

MIME type.

checksums

object (optional)

Optional checksums such as SHA-256.

Was this page helpful?