Bootstrap workspace state
const url = 'https://example.com/api/v1/bootstrap';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/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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Optional bucket ID to preload its initial object listing in parallel.
Optional preferred organization ID to preselect and load buckets for.
Optional folder prefix when preloading bucket objects.
Responses
Section titled “Responses”Aggregated initial workspace state
object
Accessible buckets in the active organization.
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).
Public runtime configuration advertised by the Sendcrate instance.
object
Base URL of the admin application.
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).
Deployment model of this Sendcrate instance: hosted multi-tenant cloud or self-hosted.
Public metadata contributed by enabled plugins, keyed by plugin ID.
object
object
Whether self-service email sign-up (POST /signup) is enabled.
Whether proxied delivery is enabled on this instance.
Base URL used for recipient-facing share links.
SSO providers configured at the instance level.
Whether the self-hosted Instance status endpoint is enabled.
Profile and authentication state of the signed-in user.
object
Whether the account has a password credential configured.
Whether TOTP two-factor authentication is enrolled.
External SSO providers linked to this account.
Preloaded object listing for the active bucket and prefix, or null if unavailable.
Preloaded object listing for the active bucket and prefix.
object
A file or virtual folder returned when browsing a bucket.
object
For folders, whether index.html or index.htm exists at the folder root (eligible for website links).
true for a virtual prefix (key ends with /).
Full object key relative to the bucket’s basePath.
Number of active share links pointing directly at this key.
Base filename or folder segment.
Organizations accessible to the caller.
Organization settings, counts, caller role, and entitlements.
object
Delivery modes permitted for links in this org, or null when all instance-supported modes are allowed.
Whether API tokens can be minted and used for this org.
Whether SSO sign-ins matching a verified identity domain join automatically.
Organization membership role from highest to lowest privilege: owner, admin, member, viewer, guest.
Total buckets connected to this organization.
Effective feature flags and quotas for an organization.
object
Whether the organization can query and export the audit log.
Whether custom share-serving domains are allowed.
Custom denial explanations keyed by entitlement.
object
Whether the organization can invite additional members and create teams.
Whether security policies (requireMfa, allowedModes) can be enforced.
Whether proxied delivery links are allowed.
Whether Google/Microsoft SSO policies can be enabled.
personal workspace created with an account, or shared org.
Whether MCP connections are enabled for this org.
Total members in the organization, including pending invites.
Whether browser sessions must complete MFA before accessing this org.
Whether users on verified identity domains must authenticate via SSO.
Organization membership role from highest to lowest privilege: owner, admin, member, viewer, guest.
Address of the org in named share links (/@<slug>/<name>), unique on the instance.
Whether Google SSO is enabled for this org.
Whether Microsoft SSO is enabled for this org.
Count of active share links visible in the active org.
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.
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"}