Information
- OpenAPI version:
3.1.1
REST API for managing Sendcrate organizations, buckets, objects, uploads, share links, and governance settings.
sk_live_… API token in Settings → Developers and send Authorization: Bearer sk_live_…. Tokens are bound to one organization and may optionally be restricted to specific buckets./api/auth/* use Better Auth’s session cookie (__Secure-better-auth.session_token over HTTPS, better-auth.session_token over HTTP).sessionCookie (account administration, token management, ownership transfer, and billing changes) require a browser session and reject API tokens with 403. Bucket-scoped tokens are rejected with 403 on org-wide resources (members, teams, domains, guest lists, audit log, org settings).List endpoints (/shares, /audit, /objects) use cursor pagination: pass cursor from the previous response’s nextCursor, and stop when nextCursor is null or absent.
POST /orgs/{orgId}/buckets/{bucketId}/uploads with the destination key and exact byte size. Objects <= 16 MiB return mode: "single" with one presigned PUT URL; larger objects return mode: "multipart" with per-part URLs.POST /orgs/{orgId}/buckets/{bucketId}/uploads/{id}/complete (including part ETags for multipart) to verify and promote the staged object, or POST .../abort to clean up.gated: Access-checked page/redirect to short-lived presigned URL (streams directly for internal buckets).proxied: Streams every byte through Sendcrate with exact download counts and instant revocation.direct: Raw presigned URL (files only, <= 7 days, immutable after creation).public: Permanent provider ACL/policy or bucket publicBaseUrl link.All /api/v1/* error responses return { code, message, data? } with the matching HTTP status. Schema validation errors (400) include data.issues. A storage, DNS, mail, or payment provider failure returns 502 with a message that says what to check; any other server failure returns 500. Both include data.requestId; quote it when you report a problem. Plan and license denials usually return 402 with data.entitlement; the audit log returns 403 and proxied delivery returns 400 instead.
Authentication endpoints live at /api/auth/* (Better Auth), MCP Streamable HTTP + OAuth at /mcp and /oauth/*, signed bucket webhooks at /hooks/{bucketId}, and the app’s oRPC transport at /rpc/*.
API token minted in Settings → Developers (Authorization: Bearer sk_live_…). Scoped to one organization and optionally to specific buckets; rejected by session-only endpoints.
Security scheme type: http
Bearer format: sk_live_…
Better Auth browser session cookie set by /api/auth/*. Uses the __Secure- prefix when app_url is HTTPS.
Security scheme type: apiKey
Cookie parameter name: better-auth.session_token