SDK reference · Node SDK

prov.attest.captureRequests.remind

prov.attest.captureRequests.remind in Node SDK. Remind the person about a pending request: the first message again, marked as a reminder, with a fresh link (201).

Signature

prov.attest.captureRequests.remind(id: string, opts?: { channel?: ReminderPinChannel; recipient?: string; idempotencyKey?: string }): Promise<Reminder>

Parameters

idstringRequired
opts{ channel?: ReminderPinChannel; recipient?: string; idempotencyKey?: string }

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, email or text; sms and app_push are refused); it must be one the request has and its channels allow (400 on channel otherwise). That message goes alone, with no follow-up text. Left out, the plan applies. One of app_notification, text, email.
recipientstring
For a request with several people, one recipient key. A capture request has one: contact.

Returns

Promise<Reminder> The reminder, sent or held until quiet hours end.

HTTP operation

POST /v1/attest/capture_requests/{id}/reminders: Remind the person

Errors

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

Was this page helpful? Send us feedback

LLM? Read llms.txt.