Skip to content

List buckets

GET
/orgs/{orgId}/buckets
curl --request GET \
--url https://example.com/api/v1/orgs/example/buckets \
--header 'Authorization: Bearer <token>'

Lists buckets in the organization that the caller (and token bucket scope, if any) can access.

orgId
required

Organization ID.

string

Accessible buckets in creation order

Media typeapplication/json
object
items
required
Array<object>

Connected S3-compatible bucket and its health, caps, and access.

object
access
required

Who inside the organization can reach a bucket.

object
everyone
required

When true, every non-guest member of the organization can access the bucket.

boolean
grants
required

Explicit team and member grants on the bucket.

Array<object>

Per-member or per-team bucket access grant.

object
id
required

Team ID or organization member ID.

string
kind
required
string
Allowed values: team member
level
required

Bucket permission level: share (browse, download, upload, delete, and create links) or read (browse and download only).

string
Allowed values: share read
basePath
required

Optional key prefix inside the provider bucket that Sendcrate treats as root.

Any of:
string
bucketName
required

Underlying bucket name at the S3 provider.

string
caps
required

S3 operations declared permitted for a bucket’s credentials.

object
del
required

Key can delete objects (s3:DeleteObject).

boolean
list
required

Key can list keys (s3:ListBucket).

boolean
pub
required

Key can publish objects via ACL or bucket policy for public links.

boolean
read
required

Key can read objects (s3:GetObject).

boolean
write
required

Key can write objects (s3:PutObject).

boolean
endpoint
required

S3 API endpoint URL used by Sendcrate.

Any of:
string
eventsSeen
required

ISO-8601 UTC timestamp of the last verified provider webhook event, or null.

Any of:
string
eventsValue
required

Optional provider event-notification metadata value.

Any of:
string
id
required
string
keyAdded
required

ISO-8601 UTC timestamp when credentials were last added or rotated.

Any of:
string
keyIdTail
required

Last 6 characters of the stored S3 access key ID for identification.

Any of:
string
locked
required

When true, this bucket is defined in sendcrate.yml and its connection settings cannot be edited via the API.

boolean
maxUploadBytes
required

Optional per-object upload limit in bytes enforced before presigning.

Any of:
number
myLevel
required

The caller’s effective permission level on this bucket.

Any of:

Bucket permission level: share (browse, download, upload, delete, and create links) or read (browse and download only).

string
Allowed values: share read
name
required

Display name of the bucket inside Sendcrate.

string
orgId
required
string
pathStyle
required

Whether S3 requests use path-style URLs instead of virtual-hosted-style.

boolean
provider
required

S3-compatible storage provider (aws, r2, spaces, b2, minio).

string
Allowed values: aws r2 spaces b2 minio
providerLabel
required

Human-readable provider name.

string
providerShort
required

Short provider label.

string
publicBaseUrl
required

Optional public CDN or custom base URL fronting the bucket for public links.

Any of:
string
reachability
required

Network reachability of the bucket endpoint from recipients: public (internet-reachable) or internal (private network only; disables direct and non-CDN public links).

string
Allowed values: public internal
region
required
Any of:
string
rootShared
required

Whether an active share link targets the entire bucket root.

boolean
stagingAbortRule
required

Whether the probed lifecycle config aborts incomplete multipart uploads under .sendcrate/staging/, or null if unknown.

Any of:
boolean
stagingLifecycle
required

Whether the probed lifecycle config expires objects under .sendcrate/staging/, or null if unknown.

Any of:
boolean
status
required

Last observed connection health of the bucket (ok, limited, unreachable).

string
Allowed values: ok limited unreachable
statusNote
required

Diagnostic message explaining a limited or unreachable status.

Any of:
string
webhookUrl
required

Signed provider event webhook URL for providers that push events, or null.

Any of:
string

Example

{
"items": [
{
"access": {
"grants": [
{
"kind": "team",
"level": "share"
}
]
},
"myLevel": "share",
"provider": "aws",
"reachability": "public",
"status": "ok"
}
]
}

Authentication required or credentials invalid.

Media typeapplication/json

Standard REST error envelope.

object
code
required

Machine-readable error code.

string
data

Optional structured error details.

message
required

Human-readable error explanation.

string

Example generated

{
"code": "example",
"data": "example",
"message": "example"
}

Insufficient role, bucket grant, or token scope.

Media typeapplication/json

Standard REST error envelope.

object
code
required

Machine-readable error code.

string
data

Optional structured error details.

message
required

Human-readable error explanation.

string

Example generated

{
"code": "example",
"data": "example",
"message": "example"
}

Unexpected server error. Quote data.requestId when you report it.

Media typeapplication/json

Error returned when Sendcrate or one of its providers fails (5xx).

object
code
required
string
Allowed values: INTERNAL_SERVER_ERROR PROVIDER_FAILED
data
object
debug

Error chain with stack traces. Present only when the server runs in development mode.

Array
requestId

Request reference to quote when you report the error.

string
message
required

Human-readable error explanation.

string

Example

{
"code": "INTERNAL_SERVER_ERROR"
}