Building data model

Updated:

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

FieldTypeRequiredDescription
idstringNounique identifier for the building
created_atstring (date-time)Nowhen the building was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
updated_atstring (date-time)Nowhen the building was last updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
namestringNothe building or community name
descriptionstringNofree-text description of the building
typeenumNothe normalized building type Values: MULTIFAMILY, SINGLE_FAMILY, CONDO, TOWNHOUSE, STUDENT, SENIOR, AFFORDABLE, COMMERCIAL, MIXED_USE, OTHER
is_activebooleanNowhether the building is active
addressobjectNopostal address of 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
latitudenumberNolatitude of the building
longitudenumberNolongitude of the building
timezonestringNoIANA time zone of the building
unit_countnumberNonumber of units in the building
year_builtnumberNothe year the building was built
emailsPropertyEmail[]Noemail addresses of the building office
emails[].emailstringYesthe email address
emails[].typeenumNothe kind of email address Values: WORK, HOME, OTHER
telephonesPropertyTelephone[]Notelephone numbers of the building office
telephones[].telephonestringYesthe telephone number
telephones[].typeenumNothe kind of telephone number Values: WORK, HOME, MOBILE, FAX, OTHER
image_urlsstring[]NoURLs of the building pictures
web_urlstringNothe building website URL
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 PropertyBuilding = {
	id?: string; // unique identifier for the building
	created_at?: string-time; // when the building was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
	updated_at?: string-time; // when the building was last updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
	name?: string; // the building or community name
	description?: string; // free-text description of the building
	type?: 'MULTIFAMILY' | 'SINGLE_FAMILY' | 'CONDO' | 'TOWNHOUSE' | 'STUDENT' | 'SENIOR' | 'AFFORDABLE' | 'COMMERCIAL' | 'MIXED_USE' | 'OTHER'; // the normalized building type
	is_active?: boolean; // whether the building is active
	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 building
	latitude?: number; // latitude of the building
	longitude?: number; // longitude of the building
	timezone?: string; // IANA time zone of the building
	unit_count?: number; // number of units in the building
	year_built?: number; // the year the building was built
	emails?: []; // email addresses of the building office
	telephones?: []; // telephone numbers of the building office
	image_urls?: string[]; // URLs of the building pictures
	web_url?: string; // the building website URL
	metadata?: []; // custom field values
	raw?: any; // raw data from the integration
} 

Zod

Zod
import { z } from 'zod';

export const ZodPropertyBuilding = z.object({
	id: z.string().optional().describe("unique identifier for the building"),
	created_at: z.string-time().optional().describe("when the building was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"),
	updated_at: z.string-time().optional().describe("when the building was last updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"),
	name: z.string().optional().describe("the building or community name"),
	description: z.string().optional().describe("free-text description of the building"),
	type: z.enum("MULTIFAMILY", "SINGLE_FAMILY", "CONDO", "TOWNHOUSE", "STUDENT", "SENIOR", "AFFORDABLE", "COMMERCIAL", "MIXED_USE", "OTHER").optional().describe("the normalized building type"),
	is_active: z.boolean().optional().describe("whether the building is active"),
	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 building"),
	latitude: z.number().optional().describe("latitude of the building"),
	longitude: z.number().optional().describe("longitude of the building"),
	timezone: z.string().optional().describe("IANA time zone of the building"),
	unit_count: z.number().optional().describe("number of units in the building"),
	year_built: z.number().optional().describe("the year the building was built"),
	emails: z.array().optional().describe("email addresses of the building office"),
	telephones: z.array().optional().describe("telephone numbers of the building office"),
	image_urls: z.array().optional().describe("URLs of the building pictures"),
	web_url: z.string().optional().describe("the building website URL"),
	metadata: z.array().optional().describe("custom field values"),

});

Python

Python
import dataclasses

@dataclasses.dataclass
class PropertyBuildingType(str, Enum):
	MULTIFAMILY = 'MULTIFAMILY'
	SINGLE_FAMILY = 'SINGLE_FAMILY'
	CONDO = 'CONDO'
	TOWNHOUSE = 'TOWNHOUSE'
	STUDENT = 'STUDENT'
	SENIOR = 'SENIOR'
	AFFORDABLE = 'AFFORDABLE'
	COMMERCIAL = 'COMMERCIAL'
	MIXED_USE = 'MIXED_USE'
	OTHER = 'OTHER'

@dataclasses.dataclass
class PropertyPropertyBuildingAddress:
	"""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 PropertyBuilding:
	"""unique identifier for the building"""
	id: Optional[str]
	"""when the building was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"""
	created_at: Optional[str]
	"""when the building was last updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"""
	updated_at: Optional[str]
	"""the building or community name"""
	name: Optional[str]
	"""free-text description of the building"""
	description: Optional[str]
	"""the normalized building type"""
	type: Optional[PropertyBuildingType]
	"""whether the building is active"""
	is_active: Optional[bool]
	"""postal address of the building"""
	address: Optional[PropertyPropertyBuildingAddress]
	"""latitude of the building"""
	latitude: Optional[int]
	"""longitude of the building"""
	longitude: Optional[int]
	"""IANA time zone of the building"""
	timezone: Optional[str]
	"""number of units in the building"""
	unit_count: Optional[int]
	"""the year the building was built"""
	year_built: Optional[int]
	"""email addresses of the building office"""
	emails: Optional[PropertyPropertyBuildingEmails]
	"""telephone numbers of the building office"""
	telephones: Optional[PropertyPropertyBuildingTelephones]
	"""URLs of the building pictures"""
	image_urls: Optional[List[List[str]]]
	"""the building website URL"""
	web_url: Optional[str]
	"""custom field values"""
	metadata: Optional[PropertyPropertyBuildingMetadata]
Are we missing anything? Let us know
Was this page helpful?