List buckets
const url = 'https://example.com/api/v1/orgs/example/buckets';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Organization ID.
Responses
Section titled “Responses”Accessible buckets in creation order
object
Connected S3-compatible bucket and its health, caps, and access.
object
Who inside the organization can reach a bucket.
object
When true, every non-guest member of the organization can access the bucket.
Explicit team and member grants on the bucket.
Per-member or per-team bucket access grant.
object
Team ID or organization member ID.
Bucket permission level: share (browse, download, upload, delete, and create links) or read (browse and download only).
Underlying bucket name at the S3 provider.
S3 operations declared permitted for a bucket’s credentials.
object
Key can delete objects (s3:DeleteObject).
Key can list keys (s3:ListBucket).
Key can publish objects via ACL or bucket policy for public links.
Key can read objects (s3:GetObject).
Key can write objects (s3:PutObject).
When true, this bucket is defined in sendcrate.yml and its connection settings cannot be edited via the API.
Display name of the bucket inside Sendcrate.
Whether S3 requests use path-style URLs instead of virtual-hosted-style.
S3-compatible storage provider (aws, r2, spaces, b2, minio).
Human-readable provider name.
Short provider label.
Network reachability of the bucket endpoint from recipients: public (internet-reachable) or internal (private network only; disables direct and non-CDN public links).
Whether an active share link targets the entire bucket root.
Last observed connection health of the bucket (ok, limited, unreachable).
Example
{ "items": [ { "access": { "grants": [ { "kind": "team", "level": "share" } ] }, "myLevel": "share", "provider": "aws", "reachability": "public", "status": "ok" } ]}Authentication required or credentials invalid.
Standard REST error envelope.
object
Machine-readable error code.
Optional structured error details.
Human-readable error explanation.
Example generated
{ "code": "example", "data": "example", "message": "example"}Insufficient role, bucket grant, or token scope.
Standard REST error envelope.
object
Machine-readable error code.
Optional structured error details.
Human-readable error explanation.
Example generated
{ "code": "example", "data": "example", "message": "example"}Unexpected server error. Quote data.requestId when you report it.
Error returned when Sendcrate or one of its providers fails (5xx).
object
object
Error chain with stack traces. Present only when the server runs in development mode.
Request reference to quote when you report the error.
Human-readable error explanation.
Example
{ "code": "INTERNAL_SERVER_ERROR"}