Capture ROI calculator lead
const url = 'https://api.ultimateteam.ai/api/v1/sales/roi/leads';const options = { method: 'POST', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"company_name":"","email":"example","roi_input":{"current_tool_spend":0,"employee_count":1,"hours_finance":5,"hours_marketing":10,"hours_operations":8,"industry":"general","monthly_revenue":1},"roi_projection":{"annual_cost_savings":1,"annual_revenue_increase":1,"annual_time_savings_hours":1,"monthly_cost_savings":1,"monthly_revenue_increase":1,"monthly_time_savings_hours":1,"monthly_time_value":0,"monthly_tool_savings":0,"payback_months":1,"recommended_plan":"example","recommended_plan_price":1,"roi_multiple":1}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.ultimateteam.ai/api/v1/sales/roi/leads \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "company_name": "", "email": "example", "roi_input": { "current_tool_spend": 0, "employee_count": 1, "hours_finance": 5, "hours_marketing": 10, "hours_operations": 8, "industry": "general", "monthly_revenue": 1 }, "roi_projection": { "annual_cost_savings": 1, "annual_revenue_increase": 1, "annual_time_savings_hours": 1, "monthly_cost_savings": 1, "monthly_revenue_increase": 1, "monthly_time_savings_hours": 1, "monthly_time_value": 0, "monthly_tool_savings": 0, "payback_months": 1, "recommended_plan": "example", "recommended_plan_price": 1, "roi_multiple": 1 } }'Capture a prospect’s email and ROI calculation results, email the ROI report to the prospect, and notify sales. report_delivered is true only when the email provider confirmed acceptance. Public endpoint.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Lead capture form submission from ROI calculator.
Attributes: email: Prospect email address. company_name: Optional company name. roi_input: The ROI calculation inputs used. roi_projection: The ROI projection results shown.
object
Optional company name
Prospect email address
Business metrics input for ROI calculation.
Attributes: monthly_revenue: Current monthly revenue in USD. employee_count: Number of employees. hours_marketing: Weekly hours spent on marketing/sales. hours_finance: Weekly hours spent on finance/accounting. hours_operations: Weekly hours spent on operations/admin. current_tool_spend: Monthly spend on existing SaaS tools in USD. industry: Business industry vertical for benchmark selection.
object
Monthly spend on existing SaaS tools in USD
Number of employees
Weekly hours spent on finance/accounting
Weekly hours spent on marketing/sales activities
Weekly hours spent on operations/admin
Business industry vertical (e-commerce, professional_services, saas, restaurant, contractor, general)
Current monthly revenue in USD
Projected ROI results from UltimateTeam deployment.
Attributes: monthly_revenue_increase: Projected additional monthly revenue in USD. monthly_tool_savings: Cash reduction in existing tool spend in USD (the only component that nets against tool costs). monthly_time_value: Monetized value of hours saved in USD (labor value, never a cash reduction in tool spend). monthly_cost_savings: monthly_tool_savings + monthly_time_value. monthly_time_savings_hours: Projected monthly hours saved. annual_revenue_increase: Projected additional annual revenue in USD. annual_cost_savings: Projected annual cost savings in USD. annual_time_savings_hours: Projected annual hours saved. roi_multiple: Return on investment multiple (annual value / annual cost). payback_months: Months until ROI breaks even. recommended_plan: Suggested pricing plan based on business size. recommended_plan_price: Monthly price of recommended plan in USD.
object
Responses
Section titled “ Responses ”Successful Response
Response after successful lead capture.
Attributes: success: Whether the lead was captured. lead_id: Unique identifier for the captured lead. report_delivered: True only when the email provider confirmed acceptance of the ROI report; never claimed on failure. message: Confirmation message matching the delivery outcome.
object
Example
{ "report_delivered": false}Validation Error
object
object
object
Examplegenerated
{ "detail": [ { "ctx": {}, "input": "example", "loc": [ "example" ], "msg": "example", "type": "example" } ]}