SDK reference · Python SDK
prov.mandate.approvals.remind
prov.mandate.approvals.remind in Python SDK. Remind the approvers of a pending approval (201): one round to everyone it still waits for, or one person (recipient, a key from reminders.recipients).
Signature
prov.mandate.approvals.remind(approval_id: str, channel: Optional[str] = …, recipient: Optional[str] = …, idempotency_key: Optional[str] = …) -> AnyParameters
approval_idstrRequiredchannelOptional[str]recipientOptional[str]idempotency_keyOptional[str]
Request fields
Idempotency-Keystringheader- Retry a create safely: the same key + request returns the stored response (24 h, per caller).
idstringpathRequired- The approval's ID (
appr_…). channelenum- Pins the channel (
app_notification,emailortext;smsandapp_pushare refused); only the people who have it are reminded. Left out, each person's channel order applies (the Provenance app, a web home, a text, an email). One ofapp_notification,text,email. recipientstring- One person's key from the approval's
reminders.recipients(approver:lnk_…,user:…). Left out, everyone the approval waits for.
Returns
Any The reminder, sent, or held for someone's quiet hours.
HTTP operation
POST /v1/mandate/approvals/{id}/reminders: Remind the approvers
Errors
- authentication_required
- parameter_invalid
- resource_missing
- reminder_not_pending
- reminder_limit_reached
- reminder_already_scheduled
- reminder_too_soon
- reminder_opted_out
- reminder_not_available
- reminder_not_sent
- trial_ended
- spend_cap_reached
Example
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/mandate/approvals/appr_01M6ZG0DENDP7V1YZC3CG74SWD/reminders`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.post(f"{api}/v1/mandate/approvals/appr_01M6ZG0DENDP7V1YZC3CG74SWD/reminders", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}).json()