---
title: Create a bucket
description: Reserves the name and starts provisioning.
doc_version: 0.1.0-preview
last_updated: 2026-09-14
---

# Create a bucket

`POST /v1/workspaces/{workspaceId}/buckets`

Reserves the name and starts provisioning. Poll the bucket phase or the job.

## Authentication

Send `Authorization: Bearer <SPARK_API_KEY>`. Read the key from the
SPARK_API_KEY environment variable. Never print it.

## Path parameters

- `workspaceId` (string) — The workspace id.

## Request body

- `name` (string) — Customer bucket name.
- `provider` (StorageProvider (optional)) — Object store that holds the bucket bytes. One of: aws, gcp, azure, r2.
- `location` (string (optional)) — Defaults to us. One of: us, eu, asia.
- `storageClass` (string (optional)) — Defaults to standard. One of: standard, nearline, coldline, archive.

## Example request

```bash
curl \
  --url "https://api.beta.graphon.ai/v1/workspaces/wspQ7WsH2Np5L/buckets" \
  --header "Authorization: Bearer $SPARK_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{"name":"catalog-assets","provider":"gcp","location":"us","storageClass":"standard"}'
```

## Sitemap

See the full [sitemap](/sitemap.md) for all pages.
