Unit data model

Updated:

View field support, webhooks, and list parameters for each integration on the Supported Integrations page.

FieldTypeRequiredDescription
idstringNounique identifier for the unit
created_atstring (date-time)Nowhen the unit was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
updated_atstring (date-time)Nowhen the unit was last updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
building_idstringNopointer to the Property Building
unittype_idstringNopointer to the Property Unittype (floor plan)
namestringNothe unit number or label
descriptionstringNofree-text description of the unit
addressobjectNopostal address of the unit, when it differs from the building
address.address1stringNofirst line of the street address
address.address2stringNosecond line of the street address
address.citystringNocity or locality
address.regionstringNostate, province or regional area
address.region_codestringNostate, province or regional area code
address.postal_codestringNopostal or ZIP code
address.countrystringNocountry name
address.country_codestringNoISO 3166-1 alpha-2 country code
floorstringNothe floor the unit is on
bedroomsnumberNonumber of bedrooms
bathroomsnumberNonumber of bathrooms
square_feetnumberNothe unit size in square feet
statusenumNothe occupancy status of the unit Values: VACANT, OCCUPIED, NOTICE, UNAVAILABLE, OTHER
is_availablebooleanNowhether the unit is available to lease
available_atstring (date-time)Nowhen the unit becomes available (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
currencystringNoISO 4217 currency code
market_rent_amountnumberNothe market rent per month
deposit_amountnumberNothe security deposit
amenitiesstring[]Nothe amenity names
image_urlsstring[]NoURLs of the unit pictures
metadataPropertyMetadata[]Nocustom field values
metadata[].idstringNothe custom field identifier
metadata[].slugstringNothe custom field key
metadata[].valueobjectNothe custom field value
metadata[].namespacestringNothe scope or origin of the custom field
metadata[].formatenumNothe data type of the value Values: TEXT, NUMBER, DATE, BOOLEAN, FILE, TEXTAREA, SINGLE_SELECT, MULTIPLE_SELECT, MEASUREMENT, PRICE, YES_NO, CURRENCY, URL
metadata[].extra_dataobjectNoadditional 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

Zod
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]
Are we missing anything? Let us know
Was this page helpful?