Skip to main content
Retrieve metadata for an object in Antryk storage.
curl --request GET \
  --url https://storage.apis.antryk.com/api/v1/objects/metadata \
  --header 'Content-Type: application/json' \
  --data '{
    "bucket": "upload-final-v1",
    "key": "YOUR_FILENAME",
    "accessKey": "YOUR_ACCESS_KEY",
    "secretKey": "YOUR_SECRET_KEY"
  }'
Request metadata with a raw JSON body (Content-Type: application/json). Multipart uploads are not supported for metadata lookups.

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.

Examples

bucket
string
required
Example: upload-final-v1
key
string
required
Example: YOUR_FILENAME
accessKey
string
required
Example: YOUR_ACCESS_KEY
secretKey
string
required
Example: YOUR_SECRET_KEY

Response

Returns a JSON object containing the object metadata.
{
  "key": "YOUR_FILENAME",
  "bucket": "upload-final-v1",
  "size": 1048576,
  "contentType": "video/mp4",
  "lastModified": "2024-01-15T10:30:00Z"
}