Skip to main content
Upload an object to Antryk storage.
curl --request POST \
  --url https://storage.apis.antryk.com/api/v1/objects \
  --header 'Content-Type: multipart/form-data' \
  --form 'bucket=upload-final-v1' \
  --form 'key=uploads/po.exe' \
  --form 'accessKey=YOUR_ACCESS_KEY' \
  --form 'secretKey=YOUR_SECRET_KEY' \
  --form 'file=@YOUR_FILENAME'
Send this request as multipart/form-data. Raw JSON bodies will be rejected.

Request Parameters

bucket
string
required
The name of the storage bucket.
key
string
required
The unique identifier or path of the object within the bucket.
accessKey
string
required
The access key for authentication.
secretKey
string
required
The secret key for authentication.
file
file
required
The file to upload as multipart/form-data.

Examples

bucket
string
required
Example: upload-final-v1
key
string
required
Example: uploads/po.exe
accessKey
string
required
Example: YOUR_ACCESS_KEY
secretKey
string
required
Example: YOUR_SECRET_KEY
file
file
required
Example: YOUR_FILENAME

Response

Returns a JSON object with upload confirmation including the object key and metadata.
{
  "success": true,
  "key": "uploads/po.exe",
  "bucket": "upload-final-v1"
}