Developer API
Integrate DealZen with your marketing stack, external forms, and custom real estate tools.
API Reference
Endpoints
Introduction to DealZen API v2
The DealZen API is organized around REST. Our API has predictable resource-oriented URLs, accepts form-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.
Authentication
Authenticate your API requests using a Bearer token. You can generate an API key from your Super Admin dashboard under Settings > API Keys.
Authorization: Bearer YOUR_API_KEY
Create a Lead
Push a new lead directly into the DealZen AI routing engine from external sources like custom landing pages or Zapier.
Request Example (POST)
curl -X POST https://api.dealzen-crm.app/v2/leads \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Jane Doe",
"email": "[email protected]",
"phone": "+15551234567",
"source": "Custom Landing Page",
"intent_score": 85
}'
Response (200 OK)
{
"status": "success",
"data": {
"lead_id": "LD-98273",
"assigned_to": "agent_45",
"routing_time_ms": 120
}
}