SDK reference · Node SDK
prov.account.setReminderSettings
prov.account.setReminderSettings in Node SDK. Any of your time zone (IANA, or null to clear), a lower cap, a longer gap, wider quiet hours, and the automatic schedule per product (turning one on needs Pro or higher: 402 plan_required below).
Signature
prov.account.setReminderSettings(params: { /** #140: the delivery default for new requests: `send`, or `self` (link only). */ delivery?: "send" | "self"; /** #140: which messages a new request may send by default. */ channels?: Array<"app_notification" | "email" | "text">; /** #140 slice 3: the follow-up text default (Pro and above on live; every plan in the sandbox). */ followUpText?: { enabled?: boolean; when?: "not_opened" | "not_finished"; afterMinutes?: number }; defaultTimeZone?: string | null; maxPerRequest?: number; minGapSeconds?: number; quietHours?: { start: number; end: number }; schedules?: Partial<Record<"captureRequest" | "approval" | "checkoutApproval", { enabled?: boolean; after?: string[] }>>; }): Promise<ReminderSettings>Parameters
params{ /** #140: the delivery default for new requests: `send`, or `self` (link only). */ delivery?: "send" | "self"; /** #140: which messages a new request may send by default. */ channels?: Array<"app_notification" | "email" | "text">; /** #140 slice 3: the follow-up text default (Pro and above on live; every plan in the sandbox). */ followUpText?: { enabled?: boolean; when?: "not_opened" | "not_finished"; afterMinutes?: number }; defaultTimeZone?: string | null; maxPerRequest?: number; minGapSeconds?: number; quietHours?: { start: number; end: number }; schedules?: Partial<Record<"captureRequest" | "approval" | "checkoutApproval", { enabled?: boolean; after?: string[] }>>; }Required
Request fields
deliveryenum- The default for new requests that leave
deliveryout:send, orself(link only). Every plan. One ofsend,self. channelsobject- Which messages a new request may send when it leaves
channelsout. Every plan. follow_up_textobject- The follow-up text default for new requests; keys left out keep their saved value. Pro and above on a live deployment (
402 plan_requiredon Free), every plan in the sandbox.Show child attributes
enabledbooleanfalsesends no follow-up text.whenenumnot_opened(the default) ornot_finished. One ofnot_opened,not_finished.after_minutesinteger- A whole number of minutes from 1 to 1440, counted from the notification. On a create it must be shorter than the request's
expires_in(400 parameter_invalidonfollow_up_text.after_minutes); a longer wait from your default is kept, and the text is skipped asexpiredif the request ends first.
default_time_zonestring | null- An IANA time zone, such as
America/Chicago. max_per_requestinteger- At most the deployment's (
limits.max_per_request). min_gap_secondsinteger- At least the deployment's (
limits.min_gap_seconds). quiet_hoursobject- Local hours (0–23). The window must include every hour of the deployment's.
Show child attributes
startintegerRequired- The hour quiet hours start.
endintegerRequired- The hour quiet hours end.
schedulesobject- The products to change; each field of a product's schedule is optional.
Show child attributes
capture_requestobject- One product's automatic reminder schedule.
Show child attributes
enabledboolean- Whether requests created from now on get automatic reminders. Off by default; turning it on needs the Pro plan or higher.
afterarray of strings- Up to three offsets from the request's creation (
10m,24h,3d), increasing, each at least the minimum gap after the one before, at most 7 days. An offset on or after the request's expiry never fires.
approvalobject- One product's automatic reminder schedule.
Show child attributes
enabledboolean- Whether requests created from now on get automatic reminders. Off by default; turning it on needs the Pro plan or higher.
afterarray of strings- Up to three offsets from the request's creation (
10m,24h,3d), increasing, each at least the minimum gap after the one before, at most 7 days. An offset on or after the request's expiry never fires.
checkout_approvalobject- One product's automatic reminder schedule.
Show child attributes
enabledboolean- Whether requests created from now on get automatic reminders. Off by default; turning it on needs the Pro plan or higher.
afterarray of strings- Up to three offsets from the request's creation (
10m,24h,3d), increasing, each at least the minimum gap after the one before, at most 7 days. An offset on or after the request's expiry never fires.
Returns
Promise<ReminderSettings> The reminder settings.
HTTP operation
PUT /v1/account/reminders: Set reminder settings
Errors
Example
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/account/reminders`, {
method: "PUT",
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
body: JSON.stringify({
"delivery": "send",
"channels": [
"app_notification",
"email",
"text"
],
"follow_up_text": {
"after_minutes": 10
},
"default_time_zone": "America/Chicago",
"schedules": {
"capture_request": {
"enabled": true,
"after": [
"24h",
"72h"
]
}
}
}),
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.put(f"{api}/v1/account/reminders", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
"delivery": "send",
"channels": [
"app_notification",
"email",
"text"
],
"follow_up_text": {
"after_minutes": 10
},
"default_time_zone": "America/Chicago",
"schedules": {
"capture_request": {
"enabled": True,
"after": [
"24h",
"72h"
]
}
}
}).json()