SDK reference · Node SDK

prov.attest.cases.list

prov.attest.cases.list in Node SDK. The triage queue, cases with live overall risk, filterable + sortable.

Signature

prov.attest.cases.list(params?: ListCasesParams): Promise<ListResponse<CaseSummary>>

Parameters

paramsListCasesParams

Request fields

statusenumquery
The object's current status. One of new, in_review, approved, denied, escalated, reopened.
assigneestringquery
The assignee.
sortenumquery
risk (the default) or age. One of risk, age.
limitintegerquery
The most items to return, from 1 to 100. The default is 20.
cursorstringquery
The next_cursor from the previous page.

Returns

Promise<ListResponse<CaseSummary>> The cases, highest risk first.

HTTP operation

GET /v1/attest/cases: List cases

Errors

Example

const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/attest/cases?status=escalated&limit=1`, {
  headers: { Authorization: `Bearer ${process.env.PROVENANCE_KEY}` },
})).json();

Was this page helpful? Send us feedback

LLM? Read llms.txt.