Skip to content
Hoody.com

The Storage Management endpoints let you list, retrieve, and delete files saved to storage from HTTP requests. Files are organized in three directory structures that all point to the same physical files via symlinks:

  • by-job/{uuid}/filename — primary location, organized by storage UUID
  • by-domain/{domain}/{uuid} — grouped by source domain
  • by-date/{YYYY-MM-DD}/{uuid} — grouped by download date

Use these endpoints to audit downloaded files, find files by domain or date, or clean up old downloads.

Retrieve a paginated list of all files saved to storage from HTTP requests.

NameInTypeRequiredDescription
pagequeryintegerNo1-based page number
limitqueryintegerNoItems per page (current handler returns all items when omitted)
{
"items": [
{
"created_at": "2024-01-15T10:30:00Z",
"job_id": "550e8400-e29b-41d4-a716-446655440000",
"path": "by-job/550e8400-e29b-41d4-a716-446655440000/report.pdf",
"size": 1048576,
"url": "https://reports.example.com/daily.pdf"
},
{
"created_at": "2024-01-15T09:15:00Z",
"job_id": "660e8400-e29b-41d4-a716-446655440111",
"path": "by-domain/api.example.com/660e8400-e29b-41d4-a716-446655440111",
"size": 524288,
"url": "https://api.example.com/data.json"
}
],
"meta": {
"limit": 50,
"page": 1,
"total": 2
}
}
Terminal window
curl -X GET "https://{projectId}-{containerId}-curl-1.{server}.containers.hoody.com/api/v1/curl/storage?page=1&limit=50" \
-H "Authorization: Bearer <token>"

Retrieve the contents of a file previously saved to storage. The file is returned as a binary stream with Content-Type: application/octet-stream, making it suitable for downloads of any file type.

The {path} parameter accepts any of the three directory structures. Path examples:

  • by-job/550e8400-e29b-41d4-a716-446655440000/report.pdf
  • by-domain/api.example.com/660e8400-e29b-41d4-a716-446655440111
  • by-date/2024-01-15/770e8400-e29b-41d4-a716-446655440222
NameInTypeRequiredDescription
pathpathstringYesRelative path to file in storage (supports nested paths)

The response body is the raw file content as a binary stream, served with Content-Type: application/octet-stream. The body is not JSON.

Terminal window
curl -X GET "https://{projectId}-{containerId}-curl-1.{server}.containers.hoody.com/api/v1/curl/storage/by-job/550e8400-e29b-41d4-a716-446655440000/report.pdf" \
-H "Authorization: Bearer <token>" \
-o report.pdf

Permanently delete a file from storage. This action cannot be undone.

NameInTypeRequiredDescription
pathpathstringYesRelative path to file in storage
recursivequerybooleanNotrue deletes a directory and everything in it (default false)

File deleted successfully.

Terminal window
curl -X DELETE "https://{projectId}-{containerId}-curl-1.{server}.containers.hoody.com/api/v1/curl/storage/by-job/550e8400-e29b-41d4-a716-446655440000/report.pdf" \
-H "Authorization: Bearer <token>"