SDK reference · Python SDK
prov.authorize.calls.get
prov.authorize.calls.get in Python SDK. Read a check; wait long-polls a pending check or confirmation (seconds, at most 60).
Signature
prov.authorize.calls.get(check_id: str, wait: Optional[int] = …) -> AnyParameters
check_idstrRequiredwaitOptional[int]
Request fields
idstringpathRequired- The check's ID (
ccx_). waitintegerquery- Seconds to wait for the check to settle. Default 0.
Returns
Any 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();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.get(f"{api}/v1/authorize/call_checks/ccx_01M6XS88PYFZ9T119KKNHFF5KD?wait=10", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}).json()