v43

latestOpenAPI 3.1.0raw.githubusercontent.com2026-07-0953227392.1 KB
Model Intelligence

Get file metadata by SHA256

Retrieve file information such as filetype, file size in bytes, and MIME type

get/model-intel/v1/file/{sha256}/metadata

Path parameters

sha256string required
Example:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855

SHA256 hash of the file (64 hexadecimal characters)

Response

File metadata found and returned successfully

sha256string required

SHA256 hash of the file

size_bytesinteger required

File size in bytes

file_typestring

Type of the file

extensionstring

File extension

mime_typestring

MIME type of the file

created_atstring date-time required

Timestamp when the file was created

updated_atstring date-time required

Timestamp when the file was last updated

Example response

{
  "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
  "size_bytes": 1024,
  "file_type": "text",
  "extension": ".txt",
  "mime_type": "text/plain",
  "created_at": "2024-01-15T10:30:00Z",
  "updated_at": "2024-01-15T10:30:00Z"
}