Skip to main content
GET
/
storage
/
fetch-by-path
JavaScript
const response = await fetch('https://api.worqhat.com/storage/fetch-by-path?filepath=documents/invoices/invoice_2025.pdf', {
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY'
  }
});
const data = await response.json();
{
  "success": true,
  "file": {
    "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "filename": "invoice_2025.pdf",
    "path": "org_123/documents/invoices/invoice_2025.pdf",
    "size": 245678,
    "contentType": "application/pdf",
    "uploadedAt": "2025-07-26T03:28:08.123Z",
    "url": "https://storage.worqhat.com/org_123/documents/invoices/invoice_2025.pdf?signature=..."
  }
}

Authorizations

Authorization
string
header
required

API key authentication. Format - "Bearer YOUR_API_KEY"

Query Parameters

filepath
string
required

Path to the file within organization storage

Example:

"documents/invoices/invoice_2025.pdf"

Response

File retrieved successfully

success
boolean
Example:

true

file
object
I