save_search
DEMO. Save a car search and get alerted when new cars match. Returns a search_id (keep it; it is the only way to read or cancel the search) and an expiry (default 30 days, renewable). Check for new cars with get_new_matches, or give a callback_url. Shopper email alerts are optional and need explicit consent. On this demo, email sending is switched off (alerts are logged, not sent) and new arrivals are simulated.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zip | No | Shopper's five-digit ZIP, the center of the search area. | |
| make | No | Make, e.g. Toyota. | |
| trim | No | Trim. | |
| model | No | Model, e.g. RAV4. | |
| state | No | Two-letter state of the selling store. | |
| year_max | No | Newest model year. | |
| year_min | No | Oldest model year. | |
| condition | No | new, used or cpo. | |
| fuel_type | No | e.g. gasoline, hybrid, electric. | |
| price_max | No | Highest advertised price, USD. | |
| body_style | No | e.g. suv, sedan, truck. | |
| drivetrain | No | e.g. awd, fwd. | |
| credit_tier | No | excellent, good, fair or poor, for the payment estimate. | |
| max_mileage | No | Most miles. | |
| term_months | No | Loan term for the payment estimate. | |
| callback_url | No | Optional HTTPS webhook for new matches. Public addresses only; HMAC-signed (X-MoonshotLab-Signature: t=<unix>,v1=<hex HMAC-SHA256 of '<t>.<body>'>). | |
| down_payment | No | Down payment used for the payment estimate, USD. | |
| radius_miles | No | Miles from zip (needs zip). | |
| email_consent | No | true only if the shopper explicitly agreed to alert emails. | |
| shopper_email | No | Optional: shopper's email for alert emails. Only with email_consent=true after the shopper agreed. Every email has a one-click unsubscribe. | |
| expires_in_days | No | Days until the search ends (default 30, max 90). Renew any time. | |
| renew_search_id | No | Pass an existing search_id to renew it instead of saving a new one. | |
| max_monthly_payment | No | Highest estimated monthly payment, USD. |