Storage

Start an upload

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

Returns a presigned URL to PUT one object under 8 MiB. Requires an editor role. Upload the bytes to the returned put URL, then confirm with the complete URL.

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 bucket id.

Request body

key

string

The object key.

contentType

string

The object content type.

Was this page helpful?