v1

latestOpenAPI 3.1.0MIT2026-07-173438118.7 KB
Files

Get a specific file by ID

Errors

Returns an error if database operations fail or file not found.

get/api/files/{file_id}

Path parameters

file_idstring uuid required

UUID of the file to retrieve details for

Response

File details retrieved with download URL

createdAtstring date-time nullable

File upload timestamp

fileHashstring required

SHA-256 hash of the file

fileSizeinteger required

Size of the file in bytes

filenamestring required

Current filename

idstring uuid required

File's unique identifier

metadataValue

Flexible JSON value that can be an object, array, string, number, boolean, or null

mimeTypestring required

MIME type of the file

originalFilenamestring required

Original filename as uploaded by user

status'uploaded' | 'processing' | 'processed' | 'failed' | 'deleted' required

File processing status for user uploaded files

updatedAtstring date-time nullable

File last update timestamp

userIdstring uuid required

ID of the user who owns this file

Example response

{
  "createdAt": "2023-01-01T00:00:00Z",
  "fileHash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
  "fileSize": 1048576,
  "filename": "document.pdf",
  "id": "b8c9d0e1-2345-6789-b234-678901234567",
  "metadata": {
    "height": 1080,
    "width": 1920
  },
  "mimeType": "application/pdf",
  "originalFilename": "My Important Document.pdf",
  "status": "uploaded",
  "updatedAt": "2023-01-01T00:00:00Z",
  "userId": "c9d0e1f2-3456-789a-c345-789012345678"
}