View as Markdown

SDK reference · Node SDK

prov.mandate.calls.declineProofRequest

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

Signature

prov.mandate.calls.declineProofRequest(id: string): Promise<CallProofRequest>

Parameters

idstringRequired

Request fields

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

Returns

Promise<CallProofRequest> 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.