Get Object Metadata

Get the Content-Type and custom metadata of an object.
EndpointMethodAdmin Required
/api/v1/objects/metadataGETNo

Returns the Content-Type and custom (x-amz-meta-*) metadata of the current version of an object in a bucket you own.

Query Parameters

bucket
string required
Name of the bucket.
key
string required
Object key.

Response

{
    "contentType": "image/png",
    "metadata": {
        "author": "julian"
    }
}

metadata is an empty object if no custom metadata has been set.

Errors

StatusReason
400Missing bucket or key parameter
404Bucket not found (or not owned by you), or object not found