View as Markdown

SDK reference · Node SDK

prov.attest.captureRequests

prov.attest.captureRequests in the Node SDK: 12 methods. The attest.captureRequests methods.

Methods

create

prov.attest.captureRequests.create(params: CreateCaptureRequestParams): Promise<CaptureRequest>

Create a capture request and send its link (201).

Calls POST /v1/attest/capture_requests.

list

prov.attest.captureRequests.list(params?: ListCaptureRequestsParams): Promise<ListResponse<CaptureRequest>>

Your account's capture requests, newest first.

Calls GET /v1/attest/capture_requests.

get

prov.attest.captureRequests.get(id: string): Promise<CaptureRequest>

One capture request, with each item's attestations, tier and risk score.

Calls GET /v1/attest/capture_requests/{id}.

cancel

prov.attest.captureRequests.cancel(id: string): Promise<CaptureRequest>

Cancel an open request (cancelling a cancelled one returns it unchanged).

Calls POST /v1/attest/capture_requests/{id}/cancel.

result

prov.attest.captureRequests.result(id: string): Promise<CaptureResult>

The signed result of a completed request (every shot's attestation, hash and checks, and the verdict).

Calls GET /v1/attest/capture_requests/{id}/result.

assessment

prov.attest.captureRequests.assessment(id: string, opts?: { raw?: boolean }): Promise<CaptureAssessment | Record<string, unknown>>

Calls GET /v1/attest/capture_requests/{id}/assessment.

context

prov.attest.captureRequests.context(id: string): Promise<CaptureRequestContext>

Each shot's context signals (the same as items[].checks[].context, fetchable on its own).

Calls GET /v1/attest/capture_requests/{id}/context.

files

prov.attest.captureRequests.files(id: string, params?: { expiresIn?: number }): Promise<ListResponse<CaptureFile> & { imagesDeletedAt: string | null }>

Time-limited links to the images that count (expiresIn 60–3600 s, default 900).

Calls GET /v1/attest/capture_requests/{id}/files.

remind

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

Remind the person about a pending request: the first message again, marked as a reminder, with a fresh link (201).

Calls POST /v1/attest/capture_requests/{id}/reminders.

listReminders

prov.attest.captureRequests.listReminders(id: string): Promise<ListResponse<Reminder>>

The request's reminders, oldest first, with how each ended.

Calls GET /v1/attest/capture_requests/{id}/reminders.

cancelReminder

prov.attest.captureRequests.cancelReminder(id: string, reminderId: string): Promise<Reminder>

Cancel a reminder held until quiet hours end, before it goes (reminders.scheduled.id).

Calls DELETE /v1/attest/capture_requests/{id}/reminders/{reminder_id}.

deleteMedia

prov.attest.captureRequests.deleteMedia(id: string): Promise<{ object: "capture_media_deletion"; captureRequestId: string; deleted: number; imagesDeletedAt: string | null }>

Delete the images now; the attestations and checks stay on the case.

Calls DELETE /v1/attest/capture_requests/{id}/media.

Was this page helpful? Send us feedback

LLM? Read llms.txt.