---
title: "Create a bucket"
method: POST
path: "/agent/storage/buckets"
tags: ["Storage"]
---

# Create a bucket

`POST /agent/storage/buckets`

## Request

- Base URL: `https://edge.network`
- URL: `https://edge.network/agent/storage/buckets`
- Auth: HTTP bearer

Create an S3-compatible storage bucket. Names are 3–63 chars, lowercase, hyphens allowed.

## Headers

- `X-Dry-Run` 'true' | 'false'
- `Idempotency-Key` string

## Request body

- object
  - `name` string, required

## Response `201`

Success.

- object
  - `bucket` StorageBucket, required
    - `name` string, required
    - `objects` number
    - `size_bytes` number
    - `created_at` string, date-time
  - `tell_user` string: Human-readable summary of what happened, for the agent to relay to its operator.

## Other responses

- `400`: Validation error — the response body explains what to fix.
- `401`: Missing or invalid agent access code. The body includes self-signup pointers.
- `429`: Rate limited. Honour Retry-After and the RateLimit-* headers before retrying.

---

[API](https://skmtc.dev/edge/apis/edge-network-agent-api.md) · [All operations](https://skmtc.dev/edge/apis/edge-network-agent-api/llms.txt) · [OpenAPI document](https://skmtc.dev/edge/apis/edge-network-agent-api/revisions/49b5f2adf020?raw)
