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] = …) -> Any

Parameters

approval_idstrRequired
channelOptional[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, email or text; sms and app_push are 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 of app_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

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();

Was this page helpful? Send us feedback

LLM? Read llms.txt.