Skip to Content
Xeonr Developer Docs
UplApiBuckets

Create bucket

POST
/uplim.api.v1.BucketsService/CreateBucket

Creates a new storage bucket with the specified configuration and destination settings.

Required scopes: upl:bucket:manage

Authorization

OAuth2 upl:bucket:manage
AuthorizationBearer <token>

OAuth 2.0 authorization

In: header

Scope: upl:bucket:manage

Header Parameters

Connect-Protocol-Version?number

Define the version of the Connect protocol

Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

bucketName?string

Name for the new bucket

Formathostname
Length3 <= length <= 64
aliases?array<>

Optional aliases for the bucket

Items0 <= items <= 8
description?string

Optional description of the bucket

Lengthlength <= 128
destination?string

Destination for the bucket enum.defined_only = true

Value in"BUCKET_DESTINATION_UNSPECIFIED" | "BUCKET_DESTINATION_DEFAULT" | "BUCKET_DESTINATION_S3_BUCKET" | "BUCKET_DESTINATION_S3_SERVER" | "BUCKET_DESTINATION_UPLIM_LITE"
destinationConfig?|
portalConfig?|

Portal configuration for the bucket

slug?|

Permanent identifier for the bucket (DNS label, immutable, becomes the S3 bucket name). Omit to have one generated — never an error to leave unset. May not begin with "uplint-" (reserved for generated names).

Formathostname
Length2 <= length <= 64
private?|

Create the bucket private: no anonymous traffic, sharing only through presigned URLs and share links. Defaults to false. validate:skip a bool has no bounds

cors?|

Optional CORS configuration. Omit to use the cdn_mode-derived default.

ownerTeam?|

Create the bucket owned by this team (urn:xeonr:auth:team:) instead of by the caller. Requires the caller to hold the upl "admin" team role in that team. Omit for a personal bucket.

Lengthlength <= 128
integrationBucketTypeId?|

Required when type = BUCKET_TYPE_INTEGRATION. Links the bucket to an IntegrationBucketType.

Formatuuid
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://uploads-api.xeonr.io/uplim.api.v1.BucketsService/CreateBucket" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "bucket": "map[aliases:[screenshots i.example.com] bucketId:1042 bucketName:Screenshots createdAt:2026-03-14T11:02:45Z destination:BUCKET_DESTINATION_DEFAULT isPrimary:false lifecycleRuleCount:1 managedBy: ownerTeam:urn:xeonr:auth:team:0f6b5f8c-21f4-4b6e-9b4f-3a6a2c7d8e91 ownerTeamSlug:acme portalConfig:map[cdnMode:false] primaryAlias:i.example.com private:false slug:screenshots totalSpaceBytes:10737418240 type:BUCKET_TYPE_UPLOADS_DIRECTORY updatedAt:2026-10-22T09:30:00Z uploadCount:1284 url:https://i.example.com usedSpaceBytes:734003200]"
}