Upload an object (file) to Antryk Storage using a simple and optimized API. This endpoint allows you to directly upload files to a specific bucket and path by defining them in the URL itself, making the request cleaner and more efficient.Documentation Index
Fetch the complete documentation index at: https://docs.antryk.com/llms.txt
Use this file to discover all available pages before exploring further.
For Node.js applications, it is recommended to use the official
The SDK abstracts authentication, request handling, and validation, allowing you to upload files using simple method calls instead of manually constructing HTTP requests.
@antryk/sdk.The SDK abstracts authentication, request handling, and validation, allowing you to upload files using simple method calls instead of manually constructing HTTP requests.
Send this request as
multipart/form-data. Only the file field should be
included in the body. All other details such as bucket name and object path
must be provided via the URL, and authentication must be passed via
headers.New Upload Approach (Recommended)
This is the recommended and modern approach for uploading files to Antryk Storage:- Only the
fileis sent in the request body. - The bucket name and object path are defined directly in the URL.
- Authentication is handled via headers:
x-access-keyx-secret-key
⚠️ The older approach (sending
bucket, key, accessKey, and secretKey in the body) is still supported for backward compatibility, but it is strongly recommended to migrate to this new method for better performance, security, and maintainability.Request Parameters
The name of the storage bucket. This is specified in the URL path.
The full path (including filename) where the object will be stored inside the
bucket.
Your Antryk access key used for authentication. You can obtain this from the
Antryk Console.
Your Antryk secret key used for authentication. Keep this secure and never
expose it publicly.
The file to upload. Must be sent as
multipart/form-data.Examples
Example:
upload-final-v1Example:
uploads/po.exeExample:
YOUR_ACCESS_KEYExample:
YOUR_SECRET_KEYExample:
YOUR_FILENAMEAdditional Notes
- Ensure the file size and type comply with your bucket configuration and limits.
- The
pathshould include the full directory structure along with the filename. - If a file already exists at the specified path, it may be overwritten depending on your storage settings.
- Always keep your access credentials secure. Avoid exposing them in frontend applications.

