cURL
curl --request POST \ --url https://api.example.com/api/storage/buckets \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data ' { "bucketName": "avatars", "isPublic": true } '
{ "message": "Bucket created successfully", "bucket": "avatars" }
Bucket name (alphanumeric, underscore, and hyphen only)
"avatars"
Whether the bucket is publicly accessible
true
Bucket created successfully
"Bucket created successfully"