Storage
Create a bucket
POST
/v1/workspaces/{workspaceId}/bucketsCreates a smart bucket. Requires an editor role. Provisioning runs after the call; poll the bucket until its phase is active.
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
The new bucket name.
providerstring
Storage provider: `gcp` or `r2`.
locationstring
Provider region, for example `us-central1`.
searchstring
`enabled` or `disabled`. A missing value means `enabled`. Indexes objects for search.