SDK reference · Node SDK

prov.attest.captureRequests.files

prov.attest.captureRequests.files in Node SDK. Time-limited links to the images that count (expiresIn 60–3600 s, default 900).

Signature

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

Parameters

idstringRequired
params{ expiresIn?: number }

Request fields

idstringpathRequired
The capture request's ID (capr_…).
expires_inintegerquery
Seconds each link works (default 900, at most 3600).

Returns

Promise<ListResponse<CaptureFile> & { imagesDeletedAt: string | null }> The files.

HTTP operation

GET /v1/attest/capture_requests/{id}/files: List the images with time-limited links

Errors

Example

const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/attest/capture_requests/capr_01M6VQBD873JECJ1PKTECEGXNH/files`, {
  headers: { Authorization: "Bearer prv_test_capture_C4pT9vQ2bW7mK3sYd8cFjLh6gAe1nR5x" },
})).json();

Was this page helpful? Send us feedback

LLM? Read llms.txt.