GET/api/health
Returns ai_mode of live or demo, plus provider_host (the API hostname only, never the key).
Five JSON endpoints. This hosted site runs them in JavaScript. With OPENAI_API_KEY set it calls an OpenAI-compatible Chat Completions API; otherwise, or if that call fails, it returns sample copy. A self-hosted Python server uses the same paths, and Swagger lives at /docs there.
Returns ai_mode of live or demo, plus provider_host (the API hostname only, never the key).
MLS description. Body: property_details, tone (luxury, family, investment, casual, professional), length (short, medium, long).
{
"property_details": {"address":"123 Maple Street","beds":4,"baths":3,"sqft":2400,"price":650000},
"tone": "luxury",
"length": "medium"
}
Comparable-sale summary, value range, and a PDF. Response field cma_pdf_url is a download path on the Python server and a PDF data URL on the hosted preview.
{
"address": "456 Oak Avenue",
"comps": [{"address":"100 Maple St","price":635000,"sqft":2350,"beds":4,"baths":3,"sold_date":"2025-05-15"}]
}
Posts for instagram, facebook, twitter, linkedin, or all.
Sequence for buyer, seller, investor, past_client, or cold_lead. num_emails is 1–7.
Preview a sequence for a contact list. Templates: new_listing, price_drop, open_house, follow_up, custom.
pip install -r backend/requirements.txt python backend/server.py # http://localhost:8000 # http://localhost:8000/docs
Source and the longer reference: docs/API_REFERENCE.md.