# prov.authorize.calls

prov.authorize.calls in the Python SDK: 6 methods. `client.authorize.calls`: the answering side.

## Methods

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

```python
prov.authorize.calls.check(from_: str, to: str, at: Optional[str] = …, code: Optional[str] = …, challenge: Optional[bool] = …, wait: Optional[int] = …) -> Any
```

Check an incoming call (`from_` is the calling number; `from` is a Python keyword).

Calls `POST /v1/authorize/call_checks`.

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

```python
prov.authorize.calls.get(check_id: str, wait: Optional[int] = …) -> Any
```

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/python/authorize-calls/request.md)

```python
prov.authorize.calls.request(check_id: str, action_type: str, description: str, amount: Optional[int] = …, currency: Optional[str] = …, wait: Optional[int] = …) -> Any
```

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

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

### [guest_confirmation](https://provenanceauth.com/docs/sdks/python/authorize-calls/guest-confirmation.md)

```python
prov.authorize.calls.guest_confirmation(check_id: str, description: str, contact: Optional[dict] = …, delivery: Optional[str] = …, channels: Optional[list] = …, follow_up_text: Optional[dict] = …, reminders: Optional[dict] = …, amount: Optional[int] = …, currency: Optional[str] = …, wait: Optional[int] = …) -> Any
```

Send a confirmation straight to the guest contact you hold (`{"phone":..., "email":...}`, one or both).

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

### [relay_code](https://provenanceauth.com/docs/sdks/python/authorize-calls/relay-code.md)

```python
prov.authorize.calls.relay_code(check_id: str) -> Any
```

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/python/authorize-calls/receipt.md)

```python
prov.authorize.calls.receipt(check_id: str) -> Any
```

The signed receipt of a verified call.

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