---
title: "File data model"
url: "https://docs.unified.to/printing/file/model"
description: "The File data model object in Unified's File API: 13 fields, including created_at, updated_at and name, with types and enum values."
date: "2026-11-24T21:03:15.660Z"
updated: "2026-11-24T21:03:15.660Z"
---
# File data model

Updated: November 24, 2026

An artwork or print file in the print vendor file library

 View field support, webhooks, and list parameters for each integration on the [Supported Integrations](https://docs.unified.to/printing/integrations.md) page. 

| Field                    | Type                 | Required | Description                                                                                                                                                                                                   |
| ------------------------ | -------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| id                       | string               | No       |                                                                                                                                                                                                               |
| created\_at              | string (date-time)   | No       | (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)                                                                                                                                                                      |
| updated\_at              | string (date-time)   | No       | (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)                                                                                                                                                                      |
| name                     | string               | No       | File name                                                                                                                                                                                                     |
| url                      | string               | No       | Source URL the file is downloaded from                                                                                                                                                                        |
| preview\_url             | string               | No       | Preview image URL                                                                                                                                                                                             |
| mime\_type               | string               | No       |                                                                                                                                                                                                               |
| size                     | number               | No       | Size in bytes                                                                                                                                                                                                 |
| width                    | number               | No       | Width in pixels                                                                                                                                                                                               |
| height                   | number               | No       | Height in pixels                                                                                                                                                                                              |
| dpi                      | number               | No       | Resolution in DPI                                                                                                                                                                                             |
| status                   | enum                 | No       | Processing status of the file Values: PENDING, READY, FAILED, OTHER                                                                                                                                           |
| metadata                 | PrintingMetadata\[\] | No       |                                                                                                                                                                                                               |
| metadata\[\].id          | string               | No       | The ID of the custom field definition (from the metadata/metadata endpoint).                                                                                                                                  |
| metadata\[\].slug        | string               | No       | The integration's API name (key) of an existing custom field.                                                                                                                                                 |
| metadata\[\].value       | object               | No       | The field's value, typed by format.                                                                                                                                                                           |
| metadata\[\].namespace   | string               | No       |                                                                                                                                                                                                               |
| metadata\[\].format      | enum                 | No       | The data type of the custom field, which determines how value is formatted. Values: TEXT, NUMBER, DATE, BOOLEAN, FILE, TEXTAREA, SINGLE\_SELECT, MULTIPLE\_SELECT, MEASUREMENT, PRICE, YES\_NO, CURRENCY, URL |
| metadata\[\].extra\_data | object               | No       |                                                                                                                                                                                                               |

## TypeScript

```typescript
export type PrintingFile = {
	id?: string;
	created_at?: string-time; // (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
	updated_at?: string-time; // (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
	name?: string; // File name
	url?: string; // Source URL the file is downloaded from
	preview_url?: string; // Preview image URL
	mime_type?: string;
	size?: number; // Size in bytes
	width?: number; // Width in pixels
	height?: number; // Height in pixels
	dpi?: number; // Resolution in DPI
	status?: 'PENDING' | 'READY' | 'FAILED' | 'OTHER'; // Processing status of the file
	metadata?: [];
	raw?: any; // Raw data from integration
} 
```

## Zod

```typescript
import { z } from 'zod';

export const ZodPrintingFile = z.object({
	id: z.string().optional(),
	created_at: z.string-time().optional().describe("(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"),
	updated_at: z.string-time().optional().describe("(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"),
	name: z.string().optional().describe("File name"),
	url: z.string().optional().describe("Source URL the file is downloaded from"),
	preview_url: z.string().optional().describe("Preview image URL"),
	mime_type: z.string().optional(),
	size: z.number().optional().describe("Size in bytes"),
	width: z.number().optional().describe("Width in pixels"),
	height: z.number().optional().describe("Height in pixels"),
	dpi: z.number().optional().describe("Resolution in DPI"),
	status: z.enum("PENDING", "READY", "FAILED", "OTHER").optional().describe("Processing status of the file"),
	metadata: z.array().optional(),

});
```

## Python

```python
import dataclasses

@dataclasses.dataclass
class PrintingFileStatus(str, Enum):
	PENDING = 'PENDING'
	READY = 'READY'
	FAILED = 'FAILED'
	OTHER = 'OTHER'

@dataclasses.dataclass
class PrintingFile:
	id: Optional[str]
	"""(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"""
	created_at: Optional[str]
	"""(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"""
	updated_at: Optional[str]
	"""File name"""
	name: Optional[str]
	"""Source URL the file is downloaded from"""
	url: Optional[str]
	"""Preview image URL"""
	preview_url: Optional[str]
	mime_type: Optional[str]
	"""Size in bytes"""
	size: Optional[int]
	"""Width in pixels"""
	width: Optional[int]
	"""Height in pixels"""
	height: Optional[int]
	"""Resolution in DPI"""
	dpi: Optional[int]
	"""Processing status of the file"""
	status: Optional[PrintingFileStatus]
	metadata: Optional[PropertyPrintingFileMetadata]

```
