/projects/{project_id}/branches/{branch_id}/bucketsCreate a bucket on the branchCreates a new branchable object storage bucket on the specified branch. Buckets are managed by the Neon Platform branchable object storage service.
Note: This endpoint is currently in Beta.
Parameters
project_idstringpathrequiredThe Neon project ID
branch_idstringpathrequiredThe Neon branch ID
Request body
requiredapplication/json
access_levelstringAccess level for the bucket. Defaults to `private`. Set to `public_read` to allow anonymous `GetObject`/`HeadObject` on objects in this bucket.
namestringrequiredThe bucket name.
{
"access_level": "private",
"name": "string"
}Responses
bucketobjectrequiredShow child attributes
access_levelstringrequiredControls anonymous access to objects in the bucket. - `private`: all reads and writes require authenticated requests (default). - `public_read`: anonymous `GetObject`/`HeadObject` requests succeed; listing, writes, and deletes still require authenticated requests.
created_atstring · date-timerequiredWhen the bucket was created. For a bucket inherited from an ancestor branch this is the ancestor's creation time (the branch fork never re-creates the bucket).
namestringrequiredThe bucket name (unique within a branch).
{
"bucket": {
"access_level": "private",
"created_at": "2026-06-09T00:00:00Z",
"name": "string"
}
}codestringrequiredmessagestringrequiredError message
request_idstringUnique identifier for the request, useful for debugging. You can set this value manually by including an `X-Request-ID` header in the request. If not provided, the value will be generated automatically.
{
"code": "",
"message": "string",
"request_id": "string"
}codestringrequiredmessagestringrequiredError message
request_idstringUnique identifier for the request, useful for debugging. You can set this value manually by including an `X-Request-ID` header in the request. If not provided, the value will be generated automatically.
{
"code": "",
"message": "string",
"request_id": "string"
}