Skip to Content
LeadsCreate a Lead

Create a Lead

POST /v1/leads

Create a new lead. RentSimple validates the payload, attaches it to your company, and triggers the AI leasing agent to send the first message over the lead’s preferred channel.

Request body

FieldTypeRequiredDescription
companyCodestringyesYour RentSimple company identifier
firstNamestringnoLead’s first name
lastNamestringnoLead’s last name
emailstringconditionalLead’s email. Required if phone is not provided
phonestringconditionalLead’s phone number (E.164). Required if email is not provided
messagestringnoFree-text inquiry from the lead, included in the first outreach
sourcestringnoWhere the lead came from (e.g. Facebook, Zillow, Website)

Reach the lead somewhere. At least one of email or phone is required. RentSimple needs a channel to contact the lead.

Example

Request
curl -X POST https://rentsimple.ai/api/v1/leads \ -H "Authorization: Bearer $RENTSIMPLE_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "companyCode": "aB3xY7", "firstName": "Jordan", "lastName": "Lee", "email": "jordan.lee@example.com", "phone": "+14155550123", "message": "Is the 2-bed at 14 Elm still available for July 1?", "source": "Website" }'
Response — 200 OK
{ "message": "OK" }

Errors

StatusMessageCause
401UnauthorizedMissing or invalid API key
400Invalid companyCodecompanyCode is missing or does not resolve
400Invalid payloadNeither email nor phone was provided
400Missing agent channel priorityNo reply channel could be selected for the agent
400Missing agent emailEmail outreach selected but the agent has no email
400Missing agent phoneText outreach selected but the agent has no phone
Last updated on