/buckets/{bucketName}/objects/listList details about all objects within a bucket based on the bucket name. The results can be paginated.
pagenumberJump to a specific page of results.
limitnumberLimit the number of items on a result page.
startDatestringThe starting date for filtering buckets based on the date they were created. This attribute accepts ISO 8601 dates in YYYY-MM-DD format.
endDatestringThe ending date for filtering buckets based on the date they were created. This attribute accepts ISO 8601 dates in YYYY-MM-DD format.
{
"page": 1,
"limit": 10,
"startDate": "2024-10-01",
"endDate": "2024-10-15"
}Successful response
{
"success": true,
"message": "string",
"data": {
"docs": [
{
"org": "org-a01f25f9ae6340bd970144141d331234",
"project": "prj-c3b08d852de54d64a4a15c39ad451234",
"createdBy": "usr-6b5f02d47e6d4682a62262d6174c1234",
"objectKey": "image.png",
"bucket": "bkt-b1627187f6904b9e989304fb2af91234",
"location": "https://cdn.dev.usenebula.io/bucket-name/image.png",
"fileFormat": "image/png",
"fileSize": 14146,
"createdAt": "2024-10-11T00:16:38.112Z",
"updatedAt": "2024-10-12T00:16:38.112Z",
"objectId": "obj-c59e099381424c95a8f075b109a61234"
}
],
"pagination": {
"totalDocs": 15,
"limit": 20,
"page": 1,
"totalPages": 5,
"pagingCounter": 11,
"prevPage": 1,
"nextPage": 3
}
}
}/buckets/{bucketName}/objectsUpload an object into a bucket in the project that the API key belongs to. Files are uploaded using FormData.
objectKeystringrequired
The object key, or filename of the object in your bucket.
objectfilerequired
The local path, filename, and file extension of the object you want to upload.
Successful response
{
"success": true,
"message": "Object successfully uploaded.",
"data": {
"org": "org-a01f25f9ae6340bd970144141d331234",
"project": "prj-c3b08d852de54d64a4a15c39ad451234",
"createdBy": "usr-6b5f02d47e6d4682a62262d6174c1234",
"objectKey": "image.png",
"bucket": "bkt-b1627187f6904b9e989304fb2af91234",
"location": "https://cdn.dev.usenebula.io/bucket-name/image.png",
"fileFormat": "image/png",
"fileSize": 14146,
"createdAt": "2024-10-11T00:16:38.112Z",
"updatedAt": "2024-10-12T00:16:38.112Z",
"objectId": "obj-c59e099381424c95a8f075b109a61234"
}
}/buckets/{bucketName}/objects/{objectKey}Retrieve details about an object based on the object's name and the bucket it's located in.
bucketNamestringrequired
The name of the bucket where the object is.
objectKeystringrequired
The object key, or filename of the object you want details about.
Successful response
{
"success": true,
"message": "Object successfully retrieved.",
"data": {
"org": "org-a01f25f9ae6340bd970144141d331234",
"project": "prj-c3b08d852de54d64a4a15c39ad451234",
"createdBy": "usr-6b5f02d47e6d4682a62262d6174c1234",
"objectKey": "image.png",
"bucket": "bkt-b1627187f6904b9e989304fb2af91234",
"location": "https://cdn.dev.usenebula.io/bucket-name/image.png",
"fileFormat": "image/png",
"fileSize": 14146,
"createdAt": "2024-10-11T00:16:38.112Z",
"updatedAt": "2024-10-12T00:16:38.112Z",
"objectId": "obj-c59e099381424c95a8f075b109a61234"
}
}/buckets/{bucketName}/objects/{objectKey}Permanently removes an object from a bucket. This action cannot be reverted.
bucketNamestringrequired
The name of the bucket where the object is.
objectKeystringrequired
The object key, or filename of the object you want to delete.
No response
{
"success": true,
"message": "Object successfully deleted.",
"data": "string"
}Was this page helpful?