---
title: "Unit data model"
url: "https://docs.unified.to/property/unit/model"
description: "The Unit data model object in Unified's Unit API: 21 fields, including created_at, updated_at and building_id, with types and enum values."
date: "2026-11-30T21:28:45.423Z"
updated: "2026-11-30T21:28:45.423Z"
---
# Unit data model

Updated: November 30, 2026

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

| Field                    | Type                 | Required | Description                                                                                                                                                  |
| ------------------------ | -------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| id                       | string               | No       | unique identifier for the unit                                                                                                                               |
| created\_at              | string (date-time)   | No       | when the unit was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)                                                                                           |
| updated\_at              | string (date-time)   | No       | when the unit was last updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)                                                                                      |
| building\_id             | string               | No       | pointer to the Property Building                                                                                                                             |
| unittype\_id             | string               | No       | pointer to the Property Unittype (floor plan)                                                                                                                |
| name                     | string               | No       | the unit number or label                                                                                                                                     |
| description              | string               | No       | free-text description of the unit                                                                                                                            |
| address                  | object               | No       | postal address of the unit, when it differs from the building                                                                                                |
| address.address1         | string               | No       | first line of the street address                                                                                                                             |
| address.address2         | string               | No       | second line of the street address                                                                                                                            |
| address.city             | string               | No       | city or locality                                                                                                                                             |
| address.region           | string               | No       | state, province or regional area                                                                                                                             |
| address.region\_code     | string               | No       | state, province or regional area code                                                                                                                        |
| address.postal\_code     | string               | No       | postal or ZIP code                                                                                                                                           |
| address.country          | string               | No       | country name                                                                                                                                                 |
| address.country\_code    | string               | No       | ISO 3166-1 alpha-2 country code                                                                                                                              |
| floor                    | string               | No       | the floor the unit is on                                                                                                                                     |
| bedrooms                 | number               | No       | number of bedrooms                                                                                                                                           |
| bathrooms                | number               | No       | number of bathrooms                                                                                                                                          |
| square\_feet             | number               | No       | the unit size in square feet                                                                                                                                 |
| status                   | enum                 | No       | the occupancy status of the unit Values: VACANT, OCCUPIED, NOTICE, UNAVAILABLE, OTHER                                                                        |
| is\_available            | boolean              | No       | whether the unit is available to lease                                                                                                                       |
| available\_at            | string (date-time)   | No       | when the unit becomes available (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)                                                                                     |
| currency                 | string               | No       | ISO 4217 currency code                                                                                                                                       |
| market\_rent\_amount     | number               | No       | the market rent per month                                                                                                                                    |
| deposit\_amount          | number               | No       | the security deposit                                                                                                                                         |
| amenities                | string\[\]           | No       | the amenity names                                                                                                                                            |
| image\_urls              | string\[\]           | No       | URLs of the unit pictures                                                                                                                                    |
| metadata                 | PropertyMetadata\[\] | No       | custom field values                                                                                                                                          |
| metadata\[\].id          | string               | No       | the custom field identifier                                                                                                                                  |
| metadata\[\].slug        | string               | No       | the custom field key                                                                                                                                         |
| metadata\[\].value       | object               | No       | the custom field value                                                                                                                                       |
| metadata\[\].namespace   | string               | No       | the scope or origin of the custom field                                                                                                                      |
| metadata\[\].format      | enum                 | No       | the data type of the value Values: TEXT, NUMBER, DATE, BOOLEAN, FILE, TEXTAREA, SINGLE\_SELECT, MULTIPLE\_SELECT, MEASUREMENT, PRICE, YES\_NO, CURRENCY, URL |
| metadata\[\].extra\_data | object               | No       | additional data about the custom field                                                                                                                       |

## TypeScript

```typescript
export type PropertyUnit = {
	id?: string; // unique identifier for the unit
	created_at?: string-time; // when the unit was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
	updated_at?: string-time; // when the unit was last updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
	building_id?: string; // pointer to the Property Building
	unittype_id?: string; // pointer to the Property Unittype (floor plan)
	name?: string; // the unit number or label
	description?: string; // free-text description of the unit
	address?: {
		address1?: string; // first line of the street address 
		address2?: string; // second line of the street address 
		city?: string; // city or locality 
		region?: string; // state, province or regional area 
		region_code?: string; // state, province or regional area code 
		postal_code?: string; // postal or ZIP code 
		country?: string; // country name 
		country_code?: string; // ISO 3166-1 alpha-2 country code 
	}; // postal address of the unit, when it differs from the building
	floor?: string; // the floor the unit is on
	bedrooms?: number; // number of bedrooms
	bathrooms?: number; // number of bathrooms
	square_feet?: number; // the unit size in square feet
	status?: 'VACANT' | 'OCCUPIED' | 'NOTICE' | 'UNAVAILABLE' | 'OTHER'; // the occupancy status of the unit
	is_available?: boolean; // whether the unit is available to lease
	available_at?: string-time; // when the unit becomes available (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
	currency?: string; // ISO 4217 currency code
	market_rent_amount?: number; // the market rent per month
	deposit_amount?: number; // the security deposit
	amenities?: string[]; // the amenity names
	image_urls?: string[]; // URLs of the unit pictures
	metadata?: []; // custom field values
	raw?: any; // raw data from the integration
} 
```

## Zod

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

export const ZodPropertyUnit = z.object({
	id: z.string().optional().describe("unique identifier for the unit"),
	created_at: z.string-time().optional().describe("when the unit was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"),
	updated_at: z.string-time().optional().describe("when the unit was last updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"),
	building_id: z.string().optional().describe("pointer to the Property Building"),
	unittype_id: z.string().optional().describe("pointer to the Property Unittype (floor plan)"),
	name: z.string().optional().describe("the unit number or label"),
	description: z.string().optional().describe("free-text description of the unit"),
	address: z.object({
			address1: z.string().optional().describe("first line of the street address"),
			address2: z.string().optional().describe("second line of the street address"),
			city: z.string().optional().describe("city or locality"),
			region: z.string().optional().describe("state, province or regional area"),
			region_code: z.string().optional().describe("state, province or regional area code"),
			postal_code: z.string().optional().describe("postal or ZIP code"),
			country: z.string().optional().describe("country name"),
			country_code: z.string().optional().describe("ISO 3166-1 alpha-2 country code")
}).optional().describe("postal address of the unit, when it differs from the building"),
	floor: z.string().optional().describe("the floor the unit is on"),
	bedrooms: z.number().optional().describe("number of bedrooms"),
	bathrooms: z.number().optional().describe("number of bathrooms"),
	square_feet: z.number().optional().describe("the unit size in square feet"),
	status: z.enum("VACANT", "OCCUPIED", "NOTICE", "UNAVAILABLE", "OTHER").optional().describe("the occupancy status of the unit"),
	is_available: z.boolean().optional().describe("whether the unit is available to lease"),
	available_at: z.string-time().optional().describe("when the unit becomes available (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"),
	currency: z.string().optional().describe("ISO 4217 currency code"),
	market_rent_amount: z.number().optional().describe("the market rent per month"),
	deposit_amount: z.number().optional().describe("the security deposit"),
	amenities: z.array().optional().describe("the amenity names"),
	image_urls: z.array().optional().describe("URLs of the unit pictures"),
	metadata: z.array().optional().describe("custom field values"),

});
```

## Python

```python
import dataclasses

@dataclasses.dataclass
class PropertyUnitStatus(str, Enum):
	VACANT = 'VACANT'
	OCCUPIED = 'OCCUPIED'
	NOTICE = 'NOTICE'
	UNAVAILABLE = 'UNAVAILABLE'
	OTHER = 'OTHER'

@dataclasses.dataclass
class PropertyPropertyUnitAddress:
	"""first line of the street address"""
	address1: Optional[str]
	"""second line of the street address"""
	address2: Optional[str]
	"""city or locality"""
	city: Optional[str]
	"""state, province or regional area"""
	region: Optional[str]
	"""state, province or regional area code"""
	region_code: Optional[str]
	"""postal or ZIP code"""
	postal_code: Optional[str]
	"""country name"""
	country: Optional[str]
	"""ISO 3166-1 alpha-2 country code"""
	country_code: Optional[str]

@dataclasses.dataclass
class PropertyUnit:
	"""unique identifier for the unit"""
	id: Optional[str]
	"""when the unit was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"""
	created_at: Optional[str]
	"""when the unit was last updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"""
	updated_at: Optional[str]
	"""pointer to the Property Building"""
	building_id: Optional[str]
	"""pointer to the Property Unittype (floor plan)"""
	unittype_id: Optional[str]
	"""the unit number or label"""
	name: Optional[str]
	"""free-text description of the unit"""
	description: Optional[str]
	"""postal address of the unit, when it differs from the building"""
	address: Optional[PropertyPropertyUnitAddress]
	"""the floor the unit is on"""
	floor: Optional[str]
	"""number of bedrooms"""
	bedrooms: Optional[int]
	"""number of bathrooms"""
	bathrooms: Optional[int]
	"""the unit size in square feet"""
	square_feet: Optional[int]
	"""the occupancy status of the unit"""
	status: Optional[PropertyUnitStatus]
	"""whether the unit is available to lease"""
	is_available: Optional[bool]
	"""when the unit becomes available (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"""
	available_at: Optional[str]
	"""ISO 4217 currency code"""
	currency: Optional[str]
	"""the market rent per month"""
	market_rent_amount: Optional[int]
	"""the security deposit"""
	deposit_amount: Optional[int]
	"""the amenity names"""
	amenities: Optional[List[List[str]]]
	"""URLs of the unit pictures"""
	image_urls: Optional[List[List[str]]]
	"""custom field values"""
	metadata: Optional[PropertyPropertyUnitMetadata]

```
