Get File metadata by source and ID
GET/api/files/{source}/{id}
Headers
| Field | Type | Description |
|---|---|---|
| authtoken | String | Authentication token, generated from admin area |
Parameters
| Field | Type | Description |
|---|---|---|
| source | String | Which file table the id belongs to: project or general |
| id | Number | File unique ID inside that table |
curl -X GET "https://yoursite.com/api/files/source/123" \
-H "authtoken: YOUR_API_TOKEN" Success-Response:
HTTP/1.1 200 OK
{
"id": "12",
"file_name": "file64b1c2-quote.pdf",
"service_type": null,
"description": "Signed quote",
"file_size": "20480",
"created_at": "2026-07-23 09:15:00",
"project_id": "4",
"uploaded_by": "1",
"uploaded_by_user_name": "Jane Doe",
"source": "project"
} Error-Response:
HTTP/1.1 404 Not Found
{ "status": false, "messages": { "error": "No data were found" } }