POST https://localedgemarketingco.com/router.php?action=import_lead
All API requests require authentication using a Bearer token in the Authorization header.
Authorization: Bearer YOUR_API_KEY_HEREContent-Type: application/jsonGetting Your API Key:
Rate Limits: API requests are limited to 100 requests per minute per API key.
{
"name": "Jane Smith",
"email": "jane.smith@example.com",
"phone": "5551234567",
"source": "Zillow",
"tags": ["zillow", "buyer", "new"],
"addresses": [
{
"type": "home",
"street": "123 Main St",
"city": "Los Angeles",
"state": "CA",
"zip": "90001"
},
{
"street": "456 Oak Ave",
"city": "San Diego",
"state": "CA",
"zip": "92101"
}
],
"stage": "new",
"type": "buyer"
}
name and at least one of email or phonesource, tags, addresses (array, each with type (optional, defaults to OTHER), street, city, state, zip), stage, type, etc.
{
"success": true,
"lead_id": "uuid-or-id-here",
"action": "created" // or "updated"
}
400 Bad Request - Missing Required Fields:
{
"success": false,
"error": "Missing required field: name",
"code": "MISSING_REQUIRED_FIELD"
}
401 Unauthorized - Invalid API Key:
{
"success": false,
"error": "Invalid or missing API key",
"code": "UNAUTHORIZED"
}
403 Forbidden - API Key Disabled:
{
"success": false,
"error": "API key has been disabled",
"code": "API_KEY_DISABLED"
}
429 Too Many Requests - Rate Limit Exceeded:
{
"success": false,
"error": "Rate limit exceeded. Maximum 100 requests per minute.",
"code": "RATE_LIMIT_EXCEEDED",
"retry_after": 60
}
500 Internal Server Error:
{
"success": false,
"error": "Internal server error occurred",
"code": "INTERNAL_ERROR"
}
You can use tools like Postman, cURL, Zapier, Make, or any programming language that supports HTTP requests.
curl -X POST "https://localedgemarketingco.com/router.php?action=import_lead" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY_HERE" \
-d '{
"name": "Jane Smith",
"email": "jane.smith@example.com",
"phone": "5551234567",
"source": "Zillow",
"tags": ["zillow", "buyer", "new"],
"addresses": [
{
"type": "home",
"street": "123 Main St",
"city": "Los Angeles",
"state": "CA",
"zip": "90001"
},
{
"street": "456 Oak Ave",
"city": "San Diego",
"state": "CA",
"zip": "92101"
}
],
"stage": "new",
"type": "buyer"
}'
OTHER.You can also create leads by sending an email to your CRM's lead inbox. The email parser supports the same fields as the API, using simple text patterns in the email body.
Address (HOME): 123 Main St, Springfield, IL, 62701. The type is optional and will default to OTHER if not provided.Phone:, Phone 2:, Email:, Email 2:, etc. for multiple values.Note:, Note 2:, etc. for multiple notes.Tags: tag1, tag2, tag3.Sample Email Body:
Name: Jane Smith
Stage: prospect
Type: seller
Tags: new, test, emailparser
Source: website
Address: 100 Main St, Springfield, IL, 62701
Address 2: 200 Oak Ave, Shelbyville, IL, 62565
Phone: 5551230001
Phone 2: 5551230002
Phone 3: 5551230003
Email: janesmith001@example.net
Email 2: contact.jane.smith@fakemail.org
Email 3: jsmith.random@nowhere.test
Note: This is a test note for Jane Smith.
Note 2: Second note for testing.
Note 3: Final test note.
user: {user email}
All fields are optional except name and at least one of email or phone. The parser will extract as much information as possible and send it to the API automatically.