Capture a lead

POST/v1/leads

Submit 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.

FieldTypeRequiredDescription
agentIdstringyesThe agent the lead is for.
namestringyesVisitor full name.
emailstringyesVisitor email (server-side validated).
phonestringnoOptional E.164-style phone number.
contextobjectyesWhere the lead originated.
calcInputsobjectnoCalculator inputs the visitor entered.
calcResultobjectnoComputed 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": "..." } }'