Barcelona Home Hunter API
This page describes the public lead submission endpoint for Barcelona Home Hunter. It allows buyer requirements to be submitted for people looking to purchase property in Barcelona.
Endpoint
POST https://barcelonahomehunter.com/wp-json/bhh/v1/lead
Purpose
Submit buyer preferences such as budget, preferred location, property type, and notes to connect with Barcelona Home Hunter for curated property guidance.
Required Fields
- name — buyer name
- email — valid buyer email address
Optional Fields
- budget — approximate purchase budget
- location — preferred Barcelona neighborhoods or areas
- notes — extra buyer requirements
Example Request
{
"name": "John Doe",
"email": "john@example.com",
"budget": "500000",
"location": "Gracia, Eixample, or Poblenou",
"notes": "Looking for a 2-bedroom apartment with good transport links."
}
Example Response
{
"success": true,
"message": "Lead received successfully."
}