View as Markdown

SDK reference · Python SDK

prov.mandate.calls.decline_proof_request

prov.mandate.calls.decline_proof_request in Python SDK. Answer a proof request for a call your agent didn't place: the check returns no_proof.

Signature

prov.mandate.calls.decline_proof_request(proof_request_id: str) -> Any

Parameters

proof_request_idstrRequired

Request fields

idstringpathRequired
The proof_request_id from the event.
reasonenumRequired
Always not_ours. One of not_ours.

Returns

Any The declined proof request.

HTTP operation

POST /v1/mandate/calls/proof_requests/{id}/decline: Decline a proof request

Errors

Example

const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/mandate/calls/proof_requests/ccx_01M6XS88R5FRAGAMTCFZBXJVT2/decline`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
  body: JSON.stringify({ "reason": "not_ours" }),
})).json();

Was this page helpful? Send us feedback

LLM? Read llms.txt.