SDK reference · Python SDK
prov.attest.capture_requests.remind
prov.attest.capture_requests.remind in Python SDK. Remind the person about a pending request (201).
Signature
prov.attest.capture_requests.remind(request_id: str, channel: str | None = …, recipient: str | None = …, idempotency_key: str | None = …) -> AnyParameters
request_idstrRequiredchannelstr | Nonerecipientstr | Noneidempotency_keystr | None
Request fields
Idempotency-Keystringheader- Retry a create safely: the same key + request returns the stored response (24 h, per caller).
idstringpathRequired- The capture request's ID (
capr_…). channelenum- Pins the channel (
app_notification,emailortext;smsandapp_pushare refused); it must be one the request has and itschannelsallow (400onchannelotherwise). That message goes alone, with no follow-up text. Left out, the plan applies. One ofapp_notification,text,email. recipientstring- For a request with several people, one recipient key. A capture request has one:
contact.
Returns
Any The reminder, sent or held until quiet hours end.
HTTP operation
POST /v1/attest/capture_requests/{id}/reminders: Remind the person
Errors
- authentication_required
- insufficient_scope
- 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/attest/capture_requests/capr_01JCWZ7M3KQ9X2V4B7N8D5F6GH/reminders`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_capture_C4pT9vQ2bW7mK3sYd8cFjLh6gAe1nR5x" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.post(f"{api}/v1/attest/capture_requests/capr_01JCWZ7M3KQ9X2V4B7N8D5F6GH/reminders", headers={"Authorization": "Bearer prv_test_capture_C4pT9vQ2bW7mK3sYd8cFjLh6gAe1nR5x"}).json()