Get file metadata
Returns a file's name, size, content type and location.
GET
/v1/files/:id
Permission
The key must be granted files.readdocs.documents.read
A key without it gets 403 insufficient_scope, with the missing permission named in details.
Path parameters
| Field | Type | Description |
|---|---|---|
id required |
string | The file to describe. |
Request
curl https://api.veruapis.com/v1/files/:id \
-H "Authorization: Bearer vak_live_..."
Response
| Field | Type | Description |
|---|---|---|
id |
string | |
type |
string |
file
|
title |
string | The display name. |
filename |
string | The name it was uploaded under. |
mime_type |
string | Sniffed from the bytes when it was stored, not taken from what the uploader declared. |
size_bytes |
integer | |
state |
string |
activetrashed
|
owner_id |
string | |
folder_id |
string | Empty for a file in the root. |
created_at |
RFC 3339 | |
updated_at |
RFC 3339 |
{
"data": {
"id": "0192a1c2-6f3e-7a41-b8d2-5e9f0c3a7b41",
"type": "file",
"title": "q3-report.pdf",
"filename": "q3-report.pdf",
"mime_type": "application/pdf",
"size_bytes": 1048576,
"state": "active",
"folder_id": "0192f001-0000-7a41-b8d2-5e9f0c3a7b41",
"created_at": "2026-09-01T10:00:00Z",
"updated_at": "2026-09-01T10:00:00Z"
},
"meta": { "request_id": "req_01j8z9...", "timestamp": "2026-09-02T10:00:00Z" }
}
Worth knowing
Asking for a document here answers 404 rather than a document shape: the id exists, but not in the collection you asked.
Errors
Every failure uses the same shape, with a stable string code you can branch on. See the error reference.
Related
- DELETE Abort an upload
- POST Complete an upload
- POST Create a folder
- POST Start an upload
- DELETE Delete a file
- DELETE Delete a folder
- GET Download a file
- GET Get upload status
- GET List files
- GET List folders
- GET List file permissions
- POST Share a file
- DELETE Revoke file access
- PATCH Rename or move a file
- PATCH Rename or move a folder
- PUT Upload a part