Skip to content

List, retrieve, and delete files saved to storage from HTTP requests. Files are organized in three interchangeable directory structures that 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 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)

This endpoint accepts no request body.

Terminal window
curl -X GET "https://api.hoody.com/api/v1/curl/storage?page=1&limit=20" \
-H "Authorization: Bearer <token>"

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

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)

This endpoint accepts no request body.

Terminal window
curl -X GET "https://api.hoody.com/api/v1/curl/storage/by-job/550e8400-e29b-41d4-a716-446655440000/report.pdf" \
-H "Authorization: Bearer <token>" \
--output report.pdf

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

NameInTypeRequiredDescription
pathpathstringYesRelative path to file in storage

This endpoint accepts no request body.

Terminal window
curl -X DELETE "https://api.hoody.com/api/v1/curl/storage/by-date/2024-01-15/770e8400-e29b-41d4-a716-446655440222" \
-H "Authorization: Bearer <token>"