# prov.authorize.calls

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

## Methods

### [check](https://provenanceauth.com/docs/sdks/node/authorize-calls/check.md)

```ts
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](https://provenanceauth.com/docs/sdks/node/authorize-calls/get.md)

```ts
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](https://provenanceauth.com/docs/sdks/node/authorize-calls/request.md)

```ts
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](https://provenanceauth.com/docs/sdks/node/authorize-calls/guest-confirmation.md)

```ts
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](https://provenanceauth.com/docs/sdks/node/authorize-calls/relay-code.md)

```ts
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](https://provenanceauth.com/docs/sdks/node/authorize-calls/receipt.md)

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

The signed receipt of a verified call.

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