Skip to main content
GET
/
api
/
v1
/
files
/
{file_id}
/
metadata
Get file metadata
curl --request GET \
  --url https://api.uplint.dev/api/v1/files/{file_id}/metadata \
  --header 'Authorization: Bearer <token>'
{
  "status": "SUCCESS",
  "message": "File metadata retrieved",
  "data": {
    "file_id": "6612f1a2c3b4d5e6f7890abc",
    "original_filename": "report.pdf",
    "content_type": "application/pdf",
    "size_bytes": 843776,
    "context_key": "patient_reports",
    "checksum": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
    "metadata": {
      "department": "radiology"
    },
    "download_count": 3,
    "last_downloaded_at": "2026-02-10T10:30:00Z"
  },
  "timestamp": "2026-02-10T12:00:00Z"
}

Authorizations

Authorization
string
header
required

Pass an API key or JWT token. API keys can be sent as Authorization: Bearer <key> or Authorization: <key>.

Path Parameters

file_id
string
required

The file's unique identifier.

Response

File metadata.

status
enum<string>
Available options:
SUCCESS
message
string
data
object
timestamp
string<date-time>