The same intelligence that powers our consumer product, exposed as five JSON endpoints. Banks, credit unions, insurers, fintechs and marketplaces use it to tell a customer what a vehicle quote really costs — without building the analysis themselves.
POST /api/public/v1/deal-analysisReturns: deal score · risk factors · negotiation opportunities · explanation
POST /api/public/v1/ownership-forecastReturns: ownership projections · depreciation estimate · maintenance outlook · cost of ownership
POST /api/public/v1/financing-reviewReturns: APR evaluation · loan analysis · payment breakdown · interest projection
POST /api/public/v1/dealer-transparencyReturns: transparency indicators · confidence level · pricing clarity summary
POST /api/public/v1/walk-awayReturns: recommendation · confidence score · supporting reasons
Authorization: Bearer dck_… (or X-API-Key).api_version, request_id, a confidence signal and an estimate disclaimer.curl -X POST https://deal-clarity-coach.lovable.app/api/public/v1/deal-analysis \
-H "Authorization: Bearer dck_test_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"vehicle": { "year": 2024, "make": "Toyota", "model": "RAV4", "condition": "new" },
"quote": {
"selling_price": 34995,
"dealer_fees": 899,
"taxes": 2100,
"registration": 320,
"add_ons": 2495,
"down_payment": 3000,
"apr_percent": 8.4,
"term_months": 72,
"quoted_monthly": 612,
"quoted_otd": 40809,
"state_code": "MD"
}
}'100 analyses / month
30 requests / minute
Free
Sandbox keys only
5,000 analyses / month
120 requests / minute
$0.39 per analysis
50,000 analyses / month
600 requests / minute
$1,499 / month
1,000,000 analyses / month
3,000 requests / minute
Contracted pricing
| Code | Status | Meaning | Fix |
|---|---|---|---|
missing_api_key | 401 | No Authorization header was sent. | Send `Authorization: Bearer dck_...`. |
invalid_api_key | 401 | The key does not exist or was revoked. | Rotate the key in the partner dashboard. |
scope_not_allowed | 403 | The key is not scoped to this product. | Enable the product scope on the key. |
organization_suspended | 403 | The organization is not active. | Contact your Deal Clarity account contact. |
invalid_request | 422 | The request body failed validation. | Read `error.details` and correct the fields listed. |
rate_limited | 429 | Too many requests this minute. | Back off and retry after `Retry-After` seconds. |
quota_exceeded | 429 | The monthly analysis allowance is used up. | Upgrade the tier or wait for the next cycle. |
internal_error | 500 | Unexpected failure on our side. | Retry with backoff; include `request_id` when reporting. |