Capture a lead
POST
/v1/leadsSubmit a lead from your own UI. MortgageMeter stores the row, fires the agent's notification preferences (email / inbox / push), and forwards to every configured CRM connector.
| Field | Type | Required | Description |
|---|---|---|---|
| agentId | string | yes | The agent the lead is for. |
| name | string | yes | Visitor full name. |
| string | yes | Visitor email (server-side validated). | |
| phone | string | no | Optional E.164-style phone number. |
| context | object | yes | Where the lead originated. |
| calcInputs | object | no | Calculator inputs the visitor entered. |
| calcResult | object | no | Computed result snapshot. |
Example#
curl -X POST https://app.mortgagemeter.ca/api/v1/leads \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "agentId": "...", "name": "Jane Smith", "email": "jane@example.com", "context": { "kind": "calculator", "id": "..." } }'