POST /v1/objects endpoint lets you upload a file to Virtus Cloud Blob storage. Once uploaded, your file is distributed through the Virtus Cloud CDN and immediately accessible via the URL returned in the response. You control the file’s name, optional prefix, expiration window, and download behavior through query parameters.
Endpoint: POST https://blob.virtuscloud.app/v1/objects
The maximum supported file size is 100 MB. Files smaller than 1 KB are rejected. Support for larger files is planned for a future release.
Authentication
Include your API key in theAuthorization header:
Request Parameters
The request body must usemultipart/form-data encoding.
Body
The file to upload. Send this as a
multipart/form-data field. Maximum size is 100 MB; minimum size is 1 KB.Query Parameters
A name for the uploaded file, without a file extension. Must be 3–32 characters long and contain only letters (
a–z, A–Z), digits (0–9), and underscores (_).An optional organizational prefix for the file. Must be 3–32 characters long and contain only letters (
a–z, A–Z), digits (0–9), and underscores (_). Use prefixes to group related files together.Optional number of days until the file expires and is automatically deleted. Must be an integer between
1 and 365. If omitted, the file does not expire.Set to
true to append a security hash to the file’s URL. This makes the URL harder to guess and prevents unauthorized access via enumeration. Defaults to false.Set to
true to configure the file URL so that browsers automatically trigger a file download instead of rendering the file inline. Defaults to false.Example Request
Response
Indicates whether the request succeeded. Returns
"success" on success or "error" on failure.Example Response
Troubleshooting
- 400 — Bad Request
A File errors:
400 response means one or more of your request parameters failed validation.Object parameter errors: