Prospect data model

Updated:

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

FieldTypeRequiredDescription
idstringNounique identifier for the prospect
created_atstring (date-time)Nowhen the prospect was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
updated_atstring (date-time)Nowhen the prospect was last updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
building_idstringNopointer to the Property Building
unit_idsstring[]NoProperty Units the prospect is interested in
unittype_idsstring[]NoProperty Unittypes (floor plans) the prospect is interested in
user_idstringNopointer to the HR Employee (leasing agent) assigned to the prospect (reference to HrisEmployee)
namestringNothe prospect full name
first_namestringNothe prospect first name
last_namestringNothe prospect last name
emailsPropertyEmail[]Noemail addresses of the prospect
emails[].emailstringYesthe email address
emails[].typeenumNothe kind of email address Values: WORK, HOME, OTHER
telephonesPropertyTelephone[]Notelephone numbers of the prospect
telephones[].telephonestringYesthe telephone number
telephones[].typeenumNothe kind of telephone number Values: WORK, HOME, MOBILE, FAX, OTHER
statusenumNothe prospect status in the leasing pipeline Values: NEW, CONTACTED, TOUR_SCHEDULED, TOURED, APPLIED, APPROVED, LEASED, LOST, OTHER
sourcestringNothe lead source, eg. Zillow or Apartments.com
desired_move_in_atstring (date-time)Nothe desired move-in date (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
bedroomsnumberNothe desired number of bedrooms
currencystringNoISO 4217 currency code
max_rent_amountnumberNothe maximum monthly rent
notesstringNofree-text notes about the prospect
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 PropertyProspect = {
	id?: string; // unique identifier for the prospect
	created_at?: string-time; // when the prospect was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
	updated_at?: string-time; // when the prospect was last updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
	building_id?: string; // pointer to the Property Building
	unit_ids?: string[]; // Property Units the prospect is interested in
	unittype_ids?: string[]; // Property Unittypes (floor plans) the prospect is interested in
	user_id?: string; // pointer to the HR Employee (leasing agent) assigned to the prospect (reference to HrisEmployee)
	name?: string; // the prospect full name
	first_name?: string; // the prospect first name
	last_name?: string; // the prospect last name
	emails?: []; // email addresses of the prospect
	telephones?: []; // telephone numbers of the prospect
	status?: 'NEW' | 'CONTACTED' | 'TOUR_SCHEDULED' | 'TOURED' | 'APPLIED' | 'APPROVED' | 'LEASED' | 'LOST' | 'OTHER'; // the prospect status in the leasing pipeline
	source?: string; // the lead source, eg. Zillow or Apartments.com
	desired_move_in_at?: string-time; // the desired move-in date (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
	bedrooms?: number; // the desired number of bedrooms
	currency?: string; // ISO 4217 currency code
	max_rent_amount?: number; // the maximum monthly rent
	notes?: string; // free-text notes about the prospect
	metadata?: []; // custom field values
	raw?: any; // raw data from the integration
} 

Zod

Zod
import { z } from 'zod';

export const ZodPropertyProspect = z.object({
	id: z.string().optional().describe("unique identifier for the prospect"),
	created_at: z.string-time().optional().describe("when the prospect was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"),
	updated_at: z.string-time().optional().describe("when the prospect was last updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"),
	building_id: z.string().optional().describe("pointer to the Property Building"),
	unit_ids: z.array().optional().describe("Property Units the prospect is interested in"),
	unittype_ids: z.array().optional().describe("Property Unittypes (floor plans) the prospect is interested in"),
	user_id: z.string().optional().describe("pointer to the HR Employee (leasing agent) assigned to the prospect (reference to HrisEmployee)"),
	name: z.string().optional().describe("the prospect full name"),
	first_name: z.string().optional().describe("the prospect first name"),
	last_name: z.string().optional().describe("the prospect last name"),
	emails: z.array().optional().describe("email addresses of the prospect"),
	telephones: z.array().optional().describe("telephone numbers of the prospect"),
	status: z.enum("NEW", "CONTACTED", "TOUR_SCHEDULED", "TOURED", "APPLIED", "APPROVED", "LEASED", "LOST", "OTHER").optional().describe("the prospect status in the leasing pipeline"),
	source: z.string().optional().describe("the lead source, eg. Zillow or Apartments.com"),
	desired_move_in_at: z.string-time().optional().describe("the desired move-in date (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"),
	bedrooms: z.number().optional().describe("the desired number of bedrooms"),
	currency: z.string().optional().describe("ISO 4217 currency code"),
	max_rent_amount: z.number().optional().describe("the maximum monthly rent"),
	notes: z.string().optional().describe("free-text notes about the prospect"),
	metadata: z.array().optional().describe("custom field values"),

});

Python

Python
import dataclasses

@dataclasses.dataclass
class PropertyProspectStatus(str, Enum):
	NEW = 'NEW'
	CONTACTED = 'CONTACTED'
	TOUR_SCHEDULED = 'TOUR_SCHEDULED'
	TOURED = 'TOURED'
	APPLIED = 'APPLIED'
	APPROVED = 'APPROVED'
	LEASED = 'LEASED'
	LOST = 'LOST'
	OTHER = 'OTHER'

@dataclasses.dataclass
class PropertyProspect:
	"""unique identifier for the prospect"""
	id: Optional[str]
	"""when the prospect was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"""
	created_at: Optional[str]
	"""when the prospect was last updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"""
	updated_at: Optional[str]
	"""pointer to the Property Building"""
	building_id: Optional[str]
	"""Property Units the prospect is interested in"""
	unit_ids: Optional[List[List[str]]]
	"""Property Unittypes (floor plans) the prospect is interested in"""
	unittype_ids: Optional[List[List[str]]]
	"""pointer to the HR Employee (leasing agent) assigned to the prospect (reference to HrisEmployee)"""
	user_id: Optional[str]
	"""the prospect full name"""
	name: Optional[str]
	"""the prospect first name"""
	first_name: Optional[str]
	"""the prospect last name"""
	last_name: Optional[str]
	"""email addresses of the prospect"""
	emails: Optional[PropertyPropertyProspectEmails]
	"""telephone numbers of the prospect"""
	telephones: Optional[PropertyPropertyProspectTelephones]
	"""the prospect status in the leasing pipeline"""
	status: Optional[PropertyProspectStatus]
	"""the lead source, eg. Zillow or Apartments.com"""
	source: Optional[str]
	"""the desired move-in date (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"""
	desired_move_in_at: Optional[str]
	"""the desired number of bedrooms"""
	bedrooms: Optional[int]
	"""ISO 4217 currency code"""
	currency: Optional[str]
	"""the maximum monthly rent"""
	max_rent_amount: Optional[int]
	"""free-text notes about the prospect"""
	notes: Optional[str]
	"""custom field values"""
	metadata: Optional[PropertyPropertyProspectMetadata]
Are we missing anything? Let us know
Was this page helpful?