# File

A tenant-scoped file record. The list endpoint returns normalized file metadata and
context; the detail endpoint additionally returns source/status and `fileInfo`. Both return `active` and
`updatedAt`.

## List item fields

| Name | Type | Format | Nullable | Description | Example |
|  --- | --- | --- | --- | --- | --- |
| `id` | string | — | No | File identifier. | `"10231"` |
| `name` | string | — | No | File name. | `"2025-tax-return.pdf"` |
| `active` | boolean | — | No | Whether the file is active. The list returns active files only. | `true` |
| `createdAt` | string | date-time (ISO 8601) | No | File creation timestamp. | `"2026-01-10T11:02:33Z"` |
| `updatedAt` | string | date-time (ISO 8601) | Yes | Last modification timestamp. | `"2026-01-10T11:03:00Z"` |
| `sizeBytes` | integer | bytes | Yes | File size. | `284512` |
| `path` | string | — | No | Slash-joined folder names. | `"Clients/Acme Corp/Deliverables"` |
| `downloadUrl` | string | URI | Yes | Temporary download URL when requested and available. | — |
| `downloadUrlExpiresAt` | string | date-time (ISO 8601) | Yes | Expiration time for `downloadUrl`. | `"2026-01-10T11:17:33Z"` |
| `context` | object | [FileContext](#filecontext) | No | Client, project, and uploader context. | — |


## Detail-only fields

| Name | Type | Format | Nullable | Description | Example |
|  --- | --- | --- | --- | --- | --- |
| `filename` | string | — | No | Stored file name. | `"2025-tax-return.pdf"` |
| `fileSource` | string | — | No | Source from which the file originated. | `"DELIVERABLE"` |
| `fileStatus` | string | — | Yes | Current file-processing status. | `"AVAILABLE"` |
| `externalDmsFileId` | string | — | Yes | Identifier in the external document-management system. | `"dms-8492"` |
| `fileInfo` | object | [FileInfo](#fileinfo) | Yes | Size, creator, and timestamp metadata. | — |


## FileContext

| Name | Type | Format | Nullable | Description | Example |
|  --- | --- | --- | --- | --- | --- |
| `clientId` | string | — | Yes | Associated client identifier. | `"4521"` |
| `clientName` | string | — | Yes | Associated client name. | `"Acme Corp"` |
| `projectId` | string | — | Yes | Associated project identifier. | `"8890"` |
| `projectName` | string | — | Yes | Associated project name. | `"2025 Tax Preparation"` |
| `uploadedBy` | string | — | Yes | Display name of the uploader. | `"Jordan Lee"` |


## FileInfo

| Name | Type | Format | Nullable | Description | Example |
|  --- | --- | --- | --- | --- | --- |
| `id` | integer | — | No | File-info identifier. | `10231` |
| `size` | integer | bytes | Yes | File size. | `284512` |
| `createdByStaffId` | integer | — | Yes | Staff uploader identifier. | `301` |
| `createdByContactId` | integer | — | Yes | Contact uploader identifier. | `2001` |
| `createdAt` | string | date-time (ISO 8601) | No | Metadata creation timestamp. | `"2026-01-10T11:02:33Z"` |
| `updatedAt` | string | date-time (ISO 8601) | Yes | Metadata modification timestamp. | `"2026-01-10T11:03:00Z"` |