SDK reference · Node SDK

prov.authorize.calls.get

prov.authorize.calls.get in Node SDK. Read a check; wait long-polls a pending check or confirmation (seconds, at most 60).

Signature

prov.authorize.calls.get(id: string, options?: { wait?: number }): Promise<CallCheck>

Parameters

idstringRequired
options{ wait?: number }

Request fields

idstringpathRequired
The check's ID (ccx_).
waitintegerquery
Seconds to wait for the check to settle. Default 0.

Returns

Promise<CallCheck> The verdict.

HTTP operation

GET /v1/authorize/call_checks/{id}: Retrieve a call check

Errors

Example

const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/call_checks/ccx_01M6XS88PYFZ9T119KKNHFF5KD?wait=10`, {
  headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x" },
})).json();

Was this page helpful? Send us feedback

LLM? Read llms.txt.