View as Markdown

SDK reference · Node SDK

prov.authorize.calls

prov.authorize.calls in the Node SDK: 6 methods. provenance.authorize.calls: the answering side.

Methods

check

prov.authorize.calls.check(params: CallCheckParams): Promise<CallCheck>

Check an incoming call: which agent, which operator, whether a person approved it, the scope and a signed receipt.

Calls POST /v1/authorize/call_checks.

get

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

Read a check; wait long-polls a pending check or confirmation (seconds, at most 60).

Calls GET /v1/authorize/call_checks/{id}.

request

prov.authorize.calls.request(id: string, params: CallRequestParams): Promise<CallCheck>

Ask for more during the call: within_scope, or a confirmation to the person behind the agent while the call holds.

Calls POST /v1/authorize/call_checks/{id}/requests.

guestConfirmation

prov.authorize.calls.guestConfirmation(id: string, params: GuestConfirmationParams): Promise<CallCheck>

Send a confirmation straight to the guest contact you hold, for a caller not on Provenance.

Calls POST /v1/authorize/call_checks/{id}/guest_confirmations.

relayCode

prov.authorize.calls.relayCode(id: string): Promise<CallRelayCode>

The last resort: a code and a short address the caller relays to its person.

Calls POST /v1/authorize/call_checks/{id}/relay_codes.

receipt

prov.authorize.calls.receipt(id: string): Promise<Receipt<CallReceiptClaims>>

The signed receipt of a verified call.

Calls GET /v1/authorize/call_checks/{id}/receipt.

Was this page helpful? Send us feedback

LLM? Read llms.txt.