Skip to main content

Getting Started with QStorage API

QStorage provides an S3-compatible API that allows you to store and retrieve any amount of data, at any time, from anywhere on the Quilibrium Network. This API reference documentation provides details about the operations and parameters available in the QStorage API.

API Endpoint​

The QStorage API endpoint is:

https://qstorage.quilibrium.com

Authentication​

QStorage uses the same authentication mechanism as Amazon S3. You need to provide your QConsole credentials (access key and secret key) to authenticate your requests.

Quilibrium's native CLI tooling will automatically use the correct endpoint and authentication for QStorage operations.

# Configure your credentials
qcli configure

# Use QStorage commands
qcli s3 ls

Available Operations​

QStorage supports the following basic API operations (see API Reference sections for extensive list):

Object Operations​

Bucket Operations​

S3 Compatibility​

QStorage is designed to be compatible with the Amazon S3 API, which means you can use existing S3 clients and SDKs to interact with QStorage. However, there may be some differences or limitations compared to Amazon S3.

For more information about the Amazon S3 API, you can refer to the Amazon S3 API Reference.

Error Responses​

QStorage returns standard HTTP status codes to indicate the success or failure of an API request. In addition, error responses include an XML error document that provides details about the error.

Example error response:

<?xml version="1.0" encoding="UTF-8"?>
<Error>
<Code>NoSuchBucket</Code>
<Message>The specified bucket does not exist</Message>
<BucketName>non-existent-bucket</BucketName>
<RequestId>4442587FB7D0A2F9</RequestId>
</Error>

Next Steps​

To get started with QStorage, you can:

  1. Create a bucket using the CreateBucket operation
  2. Upload an object using the PutObject operation
  3. Download an object using the GetObject operation
  4. Copy an object using the CopyObject operation
  5. Delete an object using the DeleteObject operation
  6. Delete a bucket using the DeleteBucket operation