Read Alert Rules
GET
/api/v1/alert-rules
const url = 'https://example.com/api/v1/alert-rules';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/v1/alert-rulesResponses
Section titled “Responses”Successful Response
Media typeapplication/json
AlertRulesOut
The user’s three rules, defaults filled in for any rule never saved.
object
budget_overspent
required
BudgetOverspentRule
Fires when a category’s month-to-date spending reaches percent, and again at percent2
when set, of its monthly budget: once per category per month for each level. percent2 must
be sent and is null for a single level. category_id null means every category with a
budget.
bill_due
required
BillDueRule
Fires once per due date for a manual planned item due within days days, or overdue.
object
enabled
required
Enabled
boolean
days
required
Days
integer
Example generated
{ "budget_overspent": { "enabled": true, "category_id": 1, "percent": 1, "percent2": 1 }, "bill_due": { "enabled": true, "days": 1 }, "stale_snapshot": { "enabled": true, "days": 1, "account_id": 1 }}