Get file metadata
Files
Get File
Retrieves metadata for a specific file. Does not return the file content.
GET
Get file metadata
Overview
Retrieve metadata for a single file. Use this to get file details before downloading or to verify file properties.Response Fields
| Field | Description |
|---|---|
fileId | Unique file identifier |
fileName | Original file name |
fileType | Type: contract, invoice, document, attachment |
mimeType | MIME type |
size | File size in bytes |
orderId | Associated order ID |
customerId | Associated customer ID |
createdAt | When file was created |
updatedAt | Last modification |
Common Use Cases
- Pre-Download Check: Verify file exists and get metadata
- File Information: Display file details in UI
- Validation: Check file type and size before processing
Example: Display File Info
Related Endpoints
- List Files - Browse all files
- Get File URL - Get download URL
- Delete File - Remove file
Authorizations
API key obtained from FlexPortal dashboard
Headers
Your tenant identifier
Path Parameters
The file ID
Response
File metadata
Available options:
generated, uploaded