Consumer rate-alert subscription (double opt-in email)
Consent-first, EMAIL-delivered rate alerts: a borrower (or an AI agent on their behalf) is notified when the live market meets their target (rate/apr/monthly_payment crossing a threshold). Action-discriminated: subscribe creates a pending alert and sends a double-opt-in confirmation email (the alert only activates after the recipient confirms); confirm activates it; list returns a borrower's alerts; unsubscribe is a one-click token unsubscribe. Stores only email + alert criteria; never sold; one-click unsubscribe in every email (CAN-SPAM). This route is the single source of truth; the MCP subscribe_rate_alert/list_rate_alerts/unsubscribe_rate_alert tools call it.
Authentication required: Pass your API key in the X-API-Key header.
Request
- Base URL: https://api.rateapi.dev
- URL: https://api.rateapi.dev/v1/alerts
- Auth: API key in header X-API-Key
Request body
Example request
{
"email": "borrower@example.com",
"state": "CA",
"amount": 450000,
"term_months": 360,
"credit_score": 740,
"target": {
"value": 6
}
}Response
Action result. subscribe returns pending_confirmation; confirm returns active; list returns alerts; unsubscribe returns unsubscribed.
Example response
{
"alert_id": "ra_ab12cd34"
}Changes
No recorded changes to this operation across all 1 revision of this API.