SDK reference · Node SDK

prov.attest.captureRequests.list

prov.attest.captureRequests.list in Node SDK. Your account's capture requests, newest first.

Signature

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

Parameters

paramsListCaptureRequestsParams

Request fields

sortenumquery
The order of the list: created, with - in front for descending. Newest first when omitted. A next_cursor carries its order; pass it back with the same sort. One of created, -created.
limitintegerquery
Page size, 1–100 (default 20). Outside the range → 400 parameter_invalid.
cursorstringquery
Opaque; pass a response's next_cursor back to get the next page.
statusenumquery
Only requests in this status. One of pending, in_progress, completed, expired, cancelled.
case_idstringquery
Only requests for this case.
item_typeenumquery
Only requests with an item of this type. One of photo, selfie, id_document, video.
destinationenumquery
Only requests with an item taken in this destination. One of company_app, provenance_app, app_clip, web.
sourceenumquery
Only requests with an item taken from this source. One of browser.
created_gtetimestampquery
Only requests created at or after this time.
created_ltetimestampquery
Only requests created at or before this time.

Returns

Promise<ListResponse<CaptureRequest>> A page of capture requests.

HTTP operation

GET /v1/attest/capture_requests: List capture requests

Errors

Example

const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/attest/capture_requests`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_capture_C4pT9vQ2bW7mK3sYd8cFjLh6gAe1nR5x", "Content-Type": "application/json" },
  body: JSON.stringify({
    "case_id": "CLM-DOCS-CAPTURE-LIST",
    "items": [
      {
        "type": "photo",
        "instructions": "The damage from a step back."
      }
    ],
    "delivery": "self"
  }),
})).json();
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/attest/capture_requests?case_id=CLM-DOCS-CAPTURE-LIST`, {
  headers: { Authorization: "Bearer prv_test_capture_C4pT9vQ2bW7mK3sYd8cFjLh6gAe1nR5x" },
})).json();

Was this page helpful? Send us feedback

LLM? Read llms.txt.