Skip to content

Bootstrap workspace state

GET
/bootstrap
curl --request GET \
--url https://example.com/api/v1/bootstrap \
--header 'Authorization: Bearer <token>'

Returns the authenticated user, public instance config, accessible organizations, active organization buckets, active share count, and optionally the initial object listing in a single round-trip.

bucketId

Optional bucket ID to preload its initial object listing in parallel.

string
orgId

Optional preferred organization ID to preselect and load buckets for.

string
prefix

Optional folder prefix when preloading bucket objects.

string

Aggregated initial workspace state

Media typeapplication/json
object
activeBucketId
required

Bucket ID whose objects were preloaded, or null.

Any of:
string
activeOrgId
required

Selected organization ID for which buckets and share count were loaded, or null.

Any of:
string
buckets
required

Accessible buckets in the active organization.

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
instance
required

Public runtime configuration advertised by the Sendcrate instance.

object
appUrl
required

Base URL of the admin application.

string
defaultDelivery
required

How recipients receive bytes: gated (access-checked redirect to short-lived presigned URL, or streamed for internal buckets), proxied (streamed through Sendcrate with exact download counts and instant revocation), direct (raw presigned URL, files only, <= 7 days, immutable), or public (provider ACL/policy or bucket public base URL, permanent).

string
Allowed values: gated proxied direct public
deployment
required

Deployment model of this Sendcrate instance: hosted multi-tenant cloud or self-hosted.

string
Allowed values: cloud self-hosted
ext
required

Public metadata contributed by enabled plugins, keyed by plugin ID.

object
key
additional properties
object
key
additional properties
openSignup
required

Whether self-service email sign-up (POST /signup) is enabled.

boolean
proxiedDelivery
required

Whether proxied delivery is enabled on this instance.

boolean
shareUrl
required

Base URL used for recipient-facing share links.

string
siteHost
required

Wildcard host that serves each website link on its own subdomain, or null when sites are served under /s/.

Any of:
string
ssoProviders
required

SSO providers configured at the instance level.

Array<string>
Allowed values: google microsoft
statusPage
required

Whether the self-hosted Instance status endpoint is enabled.

boolean
me
required

Profile and authentication state of the signed-in user.

object
email
required
string
hasPassword
required

Whether the account has a password credential configured.

boolean
id
required
string
mfaEnabled
required

Whether TOTP two-factor authentication is enrolled.

boolean
name
required
string
photo
required

URL path to the user’s avatar (e.g. /api/v1/me/photo?v=...) or SSO profile photo, or null.

Any of:
string
ssoProviders
required

External SSO providers linked to this account.

Array<string>
Allowed values: google microsoft
objects
required

Preloaded object listing for the active bucket and prefix, or null if unavailable.

Any of:

Preloaded object listing for the active bucket and prefix.

object
hasIndexHtml
boolean
items
required
Array<object>

A file or virtual folder returned when browsing a bucket.

object
hasIndexHtml

For folders, whether index.html or index.htm exists at the folder root (eligible for website links).

boolean
isFolder
required

true for a virtual prefix (key ends with /).

boolean
key
required

Full object key relative to the bucket’s basePath.

string
lastModified
required

ISO-8601 timestamp from S3, or null for folders.

Any of:
string
linkCount
required

Number of active share links pointing directly at this key.

number
name
required

Base filename or folder segment.

string
size
required

Object size in bytes, or null for folders.

Any of:
number
nextCursor
Any of:
string
noList
string
truncated
boolean
orgs
required

Organizations accessible to the caller.

Array<object>

Organization settings, counts, caller role, and entitlements.

object
allowedModes
required

Delivery modes permitted for links in this org, or null when all instance-supported modes are allowed.

Any of:
Array<string>
Allowed values: gated proxied direct public
apiAllowed
required

Whether API tokens can be minted and used for this org.

boolean
autoJoin
required

Whether SSO sign-ins matching a verified identity domain join automatically.

boolean
autoJoinRole
required

Organization membership role from highest to lowest privilege: owner, admin, member, viewer, guest.

string
Allowed values: owner admin member viewer guest
bucketCount
required

Total buckets connected to this organization.

number
entitlements
required

Effective feature flags and quotas for an organization.

object
audit
required

Whether the organization can query and export the audit log.

boolean
buckets
required

Maximum connected buckets, or null when unlimited.

Any of:
integer
<= 9007199254740991
customDomains
required

Whether custom share-serving domains are allowed.

boolean
label
required

Display name of the active plan or license, if any.

Any of:
string
messages
required

Custom denial explanations keyed by entitlement.

object
key
additional properties
string
multiUser
required

Whether the organization can invite additional members and create teams.

boolean
policies
required

Whether security policies (requireMfa, allowedModes) can be enforced.

boolean
proxiedDelivery
required

Whether proxied delivery links are allowed.

boolean
sso
required

Whether Google/Microsoft SSO policies can be enabled.

boolean
id
required
string
kind
required

personal workspace created with an account, or shared org.

string
Allowed values: personal org
mcpAllowed
required

Whether MCP connections are enabled for this org.

boolean
memberCount
required

Total members in the organization, including pending invites.

number
name
required
string
requireMfa
required

Whether browser sessions must complete MFA before accessing this org.

boolean
requireSso
required

Whether users on verified identity domains must authenticate via SSO.

boolean
role
required

Organization membership role from highest to lowest privilege: owner, admin, member, viewer, guest.

string
Allowed values: owner admin member viewer guest
serveDomain
required

Verified custom hostname currently serving share links, or null.

Any of:
string
slug
required

Address of the org in named share links (/@<slug>/<name>), unique on the instance.

string
ssoGoogle
required

Whether Google SSO is enabled for this org.

boolean
ssoMicrosoft
required

Whether Microsoft SSO is enabled for this org.

boolean
shareCount
required

Count of active share links visible in the active org.

integer
<= 9007199254740991

Example

{
"buckets": [
{
"access": {
"grants": [
{
"kind": "team",
"level": "share"
}
]
},
"myLevel": "share",
"provider": "aws",
"reachability": "public",
"status": "ok"
}
],
"instance": {
"defaultDelivery": "gated",
"deployment": "cloud",
"ssoProviders": [
"google"
]
},
"me": {
"email": "alex@acme.io",
"hasPassword": true,
"id": "u_01j9abc",
"mfaEnabled": true,
"name": "Alex Rivera",
"photo": "/api/v1/me/photo?v=2026-11-01T12%3A00%3A00.000Z",
"ssoProviders": [
"google"
]
},
"objects": {
"items": [
{
"isFolder": false,
"key": "reports/q4.pdf",
"lastModified": "2026-11-01T12:00:00.000Z",
"linkCount": 2,
"name": "q4.pdf",
"size": 1048576
}
]
},
"orgs": [
{
"allowedModes": [
"gated"
],
"autoJoinRole": "owner",
"kind": "personal",
"role": "owner"
}
]
}

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"
}

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"
}