Download OpenAPI specification:
New Western API v1
Send one lead to New Western. A 200 response with a leadId means the lead was accepted and queued. New Western then processes it and routes it to its team; that happens after the response, so a 200 does not mean the lead has reached an agent yet.
Send your API key in the x-api-key header on every request. A missing or unknown key gets a 403. Your key also identifies you as the partner, so the body does not need to. For a key, contact the NW Tech Team.
leadType: Seller, Investor, Agent or Wholesaler.data.email: a valid email address.data.phone: a US phone number with exactly 10 digits. Formatting such as (555) 123-4567 is fine; +1 is not.Send every other field you have. For Seller and Wholesaler leads, include the contact's name and the full property address (street, city, state, zip).
Every value is a JSON string except smsOptIn. These are the rules the API checks:
| Field | Type | Rule | Example |
|---|---|---|---|
leadType | string | Required. One of Seller, Investor, Agent, Wholesaler (case-sensitive). | "Seller" |
data.email | string | Required. A valid email address. | "[email protected]" |
data.phone | string | Required. Exactly 10 digits. Spaces, dashes, dots and brackets are ignored. No +1. | "5125550186" |
data.zip | string | Exactly 5 digits, or an empty string. No ZIP+4. | "78701" |
data.marketId | string | For internal partners only. a0y followed by 15 letters or digits (18 characters), as provided by New Western. | "For Internal Use Only" |
data.smsOptIn | boolean | true or false, without quotes. | true |
data.questionnaire.* | string | One string per answer, not a list. Most answers must use exact values: see below. | "Immediately" |
| Every other field | string | Free text. Send numbers as text. | "bed": "3", not "bed": 3 |
A value that breaks one of these rules gets a 400, and nothing is saved. Fields that are not in this reference are accepted and kept with the lead, but nothing checks or recognizes them, so a misspelled field name is not reported. authId is for New Western's own apps; partners should leave it out.
This API checks the rules above and answers right away. Salesforce then creates the contact and the property. A lead that breaks one of these rules is accepted here with a 200, then fails or loses data in Salesforce:
| Field | Salesforce rule | If broken |
|---|---|---|
questionnaire.timeframe | Exactly one of:
| The lead fails |
questionnaire.experienceLevel | Exactly one of:
| The lead fails |
questionnaire.financing | One or more of, separated by ;:
| The lead fails |
questionnaire.investmentStrategies | One or more of, separated by ;:
| The lead fails |
additionalMetaData.askingPrice | A plain number, for example "250000". No $, commas or words. | The lead fails |
street, city, state, zip | All four are needed for a property record. | Only a contact is created, with no property |
200: accepted. The body is {"leadId": "..."}. The lead can still fail later in Salesforce if it breaks a rule in the table above.400: the body failed validation, and nothing was saved. The body is {"message": "Invalid request", "issues": [...]}. Each item in issues has the field as a dotted path (for example data.email) and a code, plus the allowed values, the expected type, the format or a minimum/maximum when they apply. It never repeats the value you sent. data.phone and data.zip report only "code": "custom": check them against the Field formats table. When the body is missing or is not valid JSON, issues is left out.403: the x-api-key header is missing or not valid. The body is {"message": "Resource Not Authorized"}.429: too many requests. Wait briefly and retry. The body is {"message": "Resource Not Authorized"}.500: a server error. The body is {"message": "Internal server error"} (or "Internal Server Error" when it comes from the gateway). Retry after a short wait.data.partnerPortalUrl is an optional link to the lead in your partner portal. Send it at the top level of data. Rules:
https:// and has a domain name (not an IP address).%XX, and send an internationalized host in its punycode form (for example, xn--bcher-kva.example).https://user:pass@host).http://, a relative path, or free text), it is dropped and logged. The lead is still accepted and does not get a 400 response.Every lead type accepts the same fields. The request samples show the smallest valid request and one with every field filled in. agentId, marketId and officeId are for internal partners and New Western provides their values, so the examples show "For Internal Use Only" instead; replace or remove them before sending, or marketId gets a 400. Each field and its rules are listed in the request body below.
| leadType required | string Enum: "Seller" "Investor" "Agent" "Wholesaler" Required. String, one of Seller, Investor, Agent or Wholesaler (case-sensitive). Seller: a property owner who may sell. Investor: a buyer of investment properties. Agent: a real estate agent. Wholesaler: a real estate wholesaler. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object The lead's details. Always send this object: data.email and data.phone inside it are required. Fields not listed here are accepted as sent and kept with the lead, so check spelling: a misspelled field is not rejected, it is just not recognized. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{- "leadType": "Seller",
- "data": {
- "agentId": "For Internal Use Only",
- "city": "Austin",
- "firstName": "Jane",
- "lastName": "Doe",
- "marketId": "For Internal Use Only",
- "officeId": "For Internal Use Only",
- "phone": "5125550186",
- "smsOptIn": true,
- "state": "TX",
- "street": "123 Main St",
- "zip": "78701",
- "additionalMetaData": {
- "acAge": "8",
- "acType": "Central AC",
- "additionalInfo": "Tenant-occupied until March",
- "address2": "Unit 4B",
- "agent": "Pat Smith, Lone Star Realty",
- "applianceColor": "Stainless steel",
- "applianceWorking": "Yes, all working",
- "askingPrice": "250000",
- "basement": "Crawl space",
- "bath": "2",
- "bathroomCountertops": "Laminate",
- "bathroomFloors": "Tile, good condition",
- "bed": "3",
- "bedroomFloors": "Carpet, worn",
- "brokerage": "Lone Star Realty",
- "brokerageProgram": "Partner referral program",
- "centralHvac": "Yes, replaced in 2019",
- "comments": "Seller is flexible on the closing date",
- "condition": "Needs cosmetic updates",
- "countertops": "Granite",
- "county": "Travis",
- "crimeScore": "Low",
- "date": "2026-10-21",
- "datePosted": "2026-10-21T15:30:00Z",
- "electrical": "200 amp",
- "estRehabScore": "Medium",
- "estValue": "260000",
- "exteriorCondition": "Siding needs paint",
- "fireDamage": "None",
- "flipModel": "Light cosmetic flip",
- "floodDamage": "None",
- "floodZone": "Zone X (minimal risk)",
- "floorCondition": "Fair",
- "flooring": "Hardwood and tile",
- "flooringNotes": "Hardwood scratched in the living room",
- "foundationDamage": "None known",
- "garage": "2",
- "heatAge": "8",
- "heatSource": "Gas",
- "hoa": "Yes, $150 per month",
- "homeRenovatedRecently": "No",
- "hotWaterHeater": "Gas, 40 gallon",
- "investorSpecial": "Below market value",
- "kitchenAge": "15",
- "kitchenApplianceCondition": "Working, dated",
- "kitchenAppliances": "Stove, refrigerator, dishwasher",
- "kitchenCounter": "Laminate, chipped",
- "kitchenCountertops": "Laminate",
- "kitchenFeatures": "Island",
- "kitchenFloor": "Tile",
- "kitchenFloors": "Tile, cracked in two places",
- "landscaping": "Lawn and two trees",
- "landscapingCondition": "Overgrown",
- "leadPrice": "240000",
- "livingRoomFloors": "Hardwood",
- "loanProcess": "Cash, no loan needed",
- "lotSize": "7200",
- "market": "Austin",
- "marketValue": "265000",
- "masterBathFloor": "Tile",
- "masterBathFloorCondition": "Good",
- "maxPrice": "300000",
- "minPrice": "200000",
- "monthlyHoa": "150",
- "moreQuestions": "Can you close in 30 days?",
- "neighborhoodScore": "Good",
- "occupancy": "Owner-occupied",
- "otherFeatures": "Fenced back yard",
- "ownerName": "Jane Doe",
- "paintCondition": "Needs interior paint",
- "parking": "Garage and driveway",
- "parkingSpots": "2",
- "parkingType": "Attached garage",
- "PartnerLeadId": "PARTNER-123456",
- "pets": "None",
- "plumbingCondition": "No known leaks",
- "plumbingType": "Copper",
- "pool": "No",
- "poolType": "None",
- "price": "250000",
- "primaryResidenceOrInvestment": "Primary residence",
- "propertyTypes": "Single-family home",
- "reasonForSelling": "Relocating for work",
- "repairsNeeded": "Roof and water heater",
- "retailValue": "320000",
- "roofAge": "10",
- "roofCondition": "Missing shingles",
- "roofType": "Asphalt shingles",
- "searchType": "Online",
- "sewage": "Municipal",
- "sfPa": "1850",
- "solarPanelOwnership": "Owned",
- "solarPanels": "No",
- "sqft": "1850",
- "stormDamage": "None",
- "timeframe": "1-3 Months",
- "timeline": "30 days",
- "wallNotes": "Drywall crack in the hallway",
- "waterSource": "Municipal",
- "yearBuilt": "1985",
- "yearsOwned": "12"
}, - "analytics": {
- "fbclid": "IwAR2xYz123",
- "gaClientId": "GA1.2.123456789.1700000000",
- "gclid": "Cj0KCQiA123",
- "gId": "G-ABC123XYZ",
- "mscklid": "a1b2c3d4e5f6",
- "utmCampaign": "spring-sellers",
- "utmContent": "ad-variant-a",
- "utmMedium": "cpc",
- "utmSource": "google",
- "utmTerm": "sell my house fast"
}, - "questionnaire": {
- "experienceLevel": "Advanced - I have purchased 3-5 investment properties.",
- "financing": "Cash",
- "hearAboutUs": "Other",
- "hearAboutUsOther": "A friend recommended you",
- "investmentStrategies": "Flips",
- "timeframe": "Immediately"
}
}
}{- "leadId": "549903dd-b74b-4c4f-a6fa-703be15e5029"
}