Storage

S3 (Simple Storage Service) is a scalable, durable, and secure cloud storage service designed for storing and retrieving any amount of data, such as files, backups, or media.

GraphQL Gateway

All Storage operations go through a single GraphQL endpoint:

https://cloud-gateway.sabay.com/graphql

Authentication

Every request must carry both headers:

HeaderValue
service-codecloud_user
AuthorizationBearer {token}

Subscription requirement

Every Storage page in the web app loads the account's cloud_s3 subscription once, via sb_listSubscription with the filter serviceCode: "cloud_s3", and uses the first result. If there is no subscription, or its status is PENDING_SUSPEND or SUSPENDED, the Storage page skips all S3 queries. See Subscriptions.

Reference

The operations are grouped as follows:

SectionContents
BucketsCreate, list and delete buckets
CredentialsRead and reset your S3 access keys, and read your project name
UsageSummarise storage and network usage
Bucket SettingsPer-bucket privacy, policy and CORS configuration
Sub-UsersScoped access keys with permissions on specific buckets
Schema-only OperationsOperations in the gateway schema that the web app does not call
Upload FilesConnect to a bucket with an S3 client and upload a file (Node.js)