All endpoints
ROAS & Break-Even Calculator
POST
/api/v1/tools/roas-break-even-calculatorCalculate ROAS and the break-even ROAS from ad spend, revenue and contribution margin.
Authentication
Requires an API key in the X-API-Key header.
Try it
POST
/api/v1/tools/roas-break-even-calculatorParameters
adSpendnumberrequiredTotal ad spend.
revenuenumberrequiredRevenue generated by that ad spend.
contributionMarginPercentnumberoptionalContribution margin before ad spend, as a percent of revenue. Default 0.
contributionPerSalenumberoptionalOptional per-sale contribution margin in currency, used to compute breakEvenCpa.
Request body
{
"adSpend": 1000,
"revenue": 3500,
"contributionMarginPercent": 40
}Response codes
200Success.400Invalid request — check your body or parameters.401Missing or invalid API key.403The API key is not scoped to this endpoint.429Rate limit exceeded — retry after a short wait.
Language
cURL
Request
curl -X POST https://utilerio.com/api/v1/tools/roas-break-even-calculator \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"adSpend":1000,"revenue":3500,"contributionMarginPercent":40}'Response
{ "roas": 3.5, "breakEvenRoas": 2.5, "isProfitable": true, "breakEvenCpa": null }
