# prov.authorize.calls.guestConfirmation

prov.authorize.calls.guestConfirmation in Node SDK. Send a confirmation straight to the guest contact you hold, for a caller not on Provenance.

## Signature

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

## Parameters

- `id` (string)
- `params` (GuestConfirmationParams)

## Returns

`Promise<CallCheck>`

## HTTP operation

[`POST /v1/authorize/call_checks/{id}/guest_confirmations`](https://provenanceauth.com/docs/api/call-checks.md#post-v1-authorize-call-checks-id-guest-confirmations): Confirm with the guest

## Errors

- [`parameter_invalid`](https://provenanceauth.com/docs/platform/errors.md#parameter_invalid)
- [`parameter_missing`](https://provenanceauth.com/docs/platform/errors.md#parameter_missing)
- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`insufficient_scope`](https://provenanceauth.com/docs/platform/errors.md#insufficient_scope)
- [`resource_missing`](https://provenanceauth.com/docs/platform/errors.md#resource_missing)
- [`customer_routing_not_allowed`](https://provenanceauth.com/docs/platform/errors.md#customer_routing_not_allowed)
- [`trial_ended`](https://provenanceauth.com/docs/platform/errors.md#trial_ended)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)
- [`calls_not_configured`](https://provenanceauth.com/docs/platform/errors.md#calls_not_configured)

## Example

**Node**

```ts
const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/call_checks`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
  body: JSON.stringify({ "from": "+14155550177", "to": "+14155550123", "code": "123456" }),
})).json();
const checkId = step1.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/call_checks/${checkId}/guest_confirmations`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
  body: JSON.stringify({
    "contact": {
      "phone": "+14155550199",
      "email": "rowan@tarrowby.example"
    },
    "description": "Confirm your table for 2 at 7pm Friday"
  }),
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/authorize/call_checks", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
    "from": "+14155550177",
    "to": "+14155550123",
    "code": "123456"
}).json()
check_id = step1["id"]
data = httpx.post(f"{api}/v1/authorize/call_checks/{check_id}/guest_confirmations", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
    "contact": {
        "phone": "+14155550199",
        "email": "rowan@tarrowby.example"
    },
    "description": "Confirm your table for 2 at 7pm Friday"
}).json()
```
