Buckets
Create a bucket
POST
/v1/workspaces/{workspaceId}/bucketsReserves the name and starts provisioning. Poll the bucket phase or the job.
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
workspaceIdstring
The workspace id.
Request body
namestring
Customer bucket name.
providerStorageProvider (optional)
Object store that holds the bucket bytes. One of: aws, gcp, azure, r2.
locationstring (optional)
Defaults to us. One of: us, eu, asia.
storageClassstring (optional)
Defaults to standard. One of: standard, nearline, coldline, archive.