Welcome to StoreBytes

Your secure and efficient solution for managing and sharing files.

About StoreBytes

StoreBytes is a platform designed to help you manage, store, and share files effortlessly. With a simple interface and powerful API, StoreBytes provides tools to organise your files into buckets, ensuring your data is secure and easily accessible when needed.

If you are a developer seeking a simple file storage solution for your applications, StoreBytes has you covered. Sign Up now or deploy your own instance to get started.

Getting Started with the API

StoreBytes offers a RESTful API for programmatically interacting with your files and buckets. Follow the steps below to integrate the API into your application:

1. Authentication

Use the /api/auth/token endpoint to generate an access token. Include the API key in the request body as JSON:


POST /api/auth/token
{
    "apiKey": "your_api_key_here"
}
        

The response will include an access token valid for 15 minutes. Use this token in the `Authorization` header for all subsequent requests.

2. Uploading Files

Use the /api/files/upload endpoint to upload a file to a bucket:


POST /api/files/upload
Authorization: Bearer your_access_token
Content-Type: multipart/form-data

Form Fields:
- file: The file to upload (binary).
- bucketName: The name of the bucket to upload the file to.
        

3. Retrieving Files

Use the /api/files/{bucketHash}/{fileHash} endpoint to retrieve a file:


GET /api/files/{bucketHash}/{fileHash}