# prov.authorize.calls.request

prov.authorize.calls.request in Node SDK. Ask for more during the call: `within_scope`, or a confirmation to the person behind the agent while the call holds.

## Signature

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

## Parameters

- `id` (string)
- `params` (CallRequestParams)

## Returns

`Promise<CallCheck>`

## HTTP operation

[`POST /v1/authorize/call_checks/{id}/requests`](https://provenanceauth.com/docs/api/call-checks.md#post-v1-authorize-call-checks-id-requests): Ask for more during a call

## 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)
- [`call_check_not_verified`](https://provenanceauth.com/docs/platform/errors.md#call_check_not_verified)
- [`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 data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/call_checks/ccx_01M6XS88P2M5MCC1VC53DYC1TJ/requests`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
  body: JSON.stringify({
    "action_type": "book",
    "amount": 45000,
    "currency": "USD",
    "description": "Private room for 12, with a deposit",
    "wait": 120
  }),
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
data = httpx.post(f"{api}/v1/authorize/call_checks/ccx_01M6XS88P2M5MCC1VC53DYC1TJ/requests", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
    "action_type": "book",
    "amount": 45000,
    "currency": "USD",
    "description": "Private room for 12, with a deposit",
    "wait": 120
}).json()
```
