Download OpenAPI specification:
New Western API v1
Endpoint Overview: This endpoint enables you to securely submit new leads to the New Western Lead Ingestion System. Upon submission, leads are automatically queued for review and assigned to a qualified agent, who will contact the lead promptly.
Authentication: An active API key is required to invoke this endpoint. For inquiries regarding API key provisioning, please reach out to the NW Tech Team.
"Seller" | "Investor" | "Agent" | "Wholesaler"| Status | Description | Response Body | How to Handle |
|---|---|---|---|
| 200 OK | Lead successfully submitted | { "leadId": "uuid" } |
Success - store leadId for tracking |
| 400 Bad Request | Invalid request format or validation error | { "statusCode": 400, "message": "Validation failed", "errors": {...} } |
Fix validation errors: email format, phone must be 10 digits, required fields missing, or invalid enum values |
| 401 Unauthorized | Missing or invalid API key | { "message": "Unauthorized" } |
Verify x-api-key header is present and correct |
| 403 Forbidden | API key lacks permission | { "message": "Forbidden" } |
Contact support to verify API key permissions |
| 422 Unprocessable Entity | Business logic validation failed | { "statusCode": 422, "message": "..." } |
Review error message (e.g., duplicate lead detected) |
| 500 Internal Server Error | Server-side error | { "message": "Internal Server Error" } |
Retry with exponential backoff; contact support if persists |
Minimal Request (cURL):
curl -X POST https://stage-api.newwestern.com/v1/leads/submit \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{
"leadType": "Seller",
"data": {
"email": "[email protected]",
"phone": "5551234567"
}
}'
Postman Collections:
Request Requirements: Ensure your request body aligns with the defined schema and includes all mandatory fields. Requests that fail validation will be rejected. Properly formatted JSON payloads improve processing efficiency and expedite lead assignments.
object | |
| leadType required | string Enum: "Seller" "Investor" "Agent" "Wholesaler" Lead Type |
{- "data": {
- "additionalMetaData": {
- "acAge": "string",
- "acType": "string",
- "additionalInfo": "string",
- "address2": "string",
- "agent": "string",
- "applianceColor": "string",
- "applianceWorking": "string",
- "askingPrice": "string",
- "basement": "string",
- "bath": "string",
- "bathroomCountertops": "string",
- "bathroomFloors": "string",
- "bed": "string",
- "bedroomFloors": "string",
- "brokerage": "string",
- "brokerageProgram": "string",
- "centralHvac": "string",
- "comments": "string",
- "condition": "string",
- "countertops": "string",
- "county": "string",
- "crimeScore": "string",
- "date": "string",
- "datePosted": "string",
- "electrical": "string",
- "estRehabScore": "string",
- "estValue": "string",
- "exteriorCondition": "string",
- "fireDamage": "string",
- "flipModel": "string",
- "floodDamage": "string",
- "floodZone": "string",
- "floorCondition": "string",
- "flooring": "string",
- "flooringNotes": "string",
- "foundationDamage": "string",
- "garage": "string",
- "heatAge": "string",
- "heatSource": "string",
- "hoa": "string",
- "homeRenovatedRecently": "string",
- "hotWaterHeater": "string",
- "investorSpecial": "string",
- "kitchenAge": "string",
- "kitchenApplianceCondition": "string",
- "kitchenAppliances": "string",
- "kitchenCounter": "string",
- "kitchenCountertops": "string",
- "kitchenFeatures": "string",
- "kitchenFloor": "string",
- "kitchenFloors": "string",
- "landscaping": "string",
- "landscapingCondition": "string",
- "leadPrice": "string",
- "livingRoomFloors": "string",
- "loanProcess": "string",
- "lotSize": "string",
- "market": "string",
- "marketValue": "string",
- "masterBathFloor": "string",
- "masterBathFloorCondition": "string",
- "maxPrice": "string",
- "mediaLink": "string",
- "minPrice": "string",
- "monthlyHoa": "string",
- "moreQuestions": "string",
- "neighborhoodScore": "string",
- "occupancy": "string",
- "otherFeatures": "string",
- "ownerName": "string",
- "paintCondition": "string",
- "parking": "string",
- "parkingSpots": "string",
- "parkingType": "string",
- "PartnerLeadId": "string",
- "pets": "string",
- "plumbingCondition": "string",
- "plumbingType": "string",
- "pool": "string",
- "poolType": "string",
- "price": "string",
- "primaryResidenceOrInvestment": "string",
- "propertyTypes": "string",
- "reasonForSelling": "string",
- "repairsNeeded": "string",
- "retailValue": "string",
- "roofAge": "string",
- "roofCondition": "string",
- "roofType": "string",
- "searchType": "string",
- "sewage": "string",
- "sfPa": "string",
- "solarPanelOwnership": "string",
- "solarPanels": "string",
- "sqft": "string",
- "stormDamage": "string",
- "timeframe": "string",
- "timeline": "string",
- "wallNotes": "string",
- "waterSource": "string",
- "yearBuilt": "string",
- "yearsOwned": "string",
- "property1": null,
- "property2": null
}, - "agentId": "string",
- "analytics": {
- "fbclid": "string",
- "firstClickLandingPage": "string",
- "gaClientId": "string",
- "gclid": "string",
- "gId": "string",
- "mscklid": "string",
- "utmCampaign": "string",
- "utmContent": "string",
- "utmMedium": "string",
- "utmSource": "string",
- "utmTerm": "string",
- "property1": null,
- "property2": null
}, - "authId": "string",
- "city": "string",
- "email": "string",
- "firstName": "string",
- "lastName": "string",
- "marketId": "string",
- "officeId": "string",
- "phone": "string",
- "questionnaire": {
- "experienceLevel": "Professional - I have purchased 10 investment properties.",
- "financing": [
- "Cash"
], - "hearAboutUs": [
- "Facebook"
], - "hearAboutUsOther": "string",
- "investmentStrategies": [
- "Agent for Investors"
], - "timeframe": "Immediately",
- "property1": null,
- "property2": null
}, - "smsOptIn": true,
- "state": "string",
- "street": "string",
- "zip": "string",
- "property1": null,
- "property2": null
}, - "leadType": "Seller"
}{- "leadId": "string"
}