Skip to main content
GET
/
storage
/
fetch
/
{fileId}
JavaScript
const response = await fetch('https://api.worqhat.com/storage/fetch/a1b2c3d4-e5f6-7890-abcd-ef1234567890', {
  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"

Path Parameters

fileId
string<uuid>
required

Unique ID of the file to fetch

Example:

"a1b2c3d4-e5f6-7890-abcd-ef1234567890"

Response

File retrieved successfully

success
boolean
Example:

true

file
object
I