# Get calling config for an account

Fetches calling config for an account.

```http
GET https://api.pozy.ai/v1/whatsapp/calling
```

- Area: WhatsApp / WhatsApp Calling
- Auth: Authorization: Bearer pz_live_...

## Query parameters

- `accountId` (string, required)

## Example request

```bash
curl -X GET "https://api.pozy.ai/v1/whatsapp/calling?accountId=696e0b682d0a31188e7a2ba9" \
  -H "Authorization: Bearer $POZY_API_KEY"
```

```ts
const res = await fetch("https://api.pozy.ai/v1/whatsapp/calling?accountId=696e0b682d0a31188e7a2ba9", {
  headers: { Authorization: `Bearer ${process.env.POZY_API_KEY}` },
});
const data = await res.json();
if (!res.ok) throw new Error(data?.error ?? `Request failed with status ${res.status}`);
console.log(data);
```

```python
import os
import requests

resp = requests.get(
    "https://api.pozy.ai/v1/whatsapp/calling",
    headers={"Authorization": f"Bearer {os.environ['POZY_API_KEY']}"},
    params={
        "accountId": "696e0b682d0a31188e7a2ba9",
    },
    timeout=30,
)
resp.raise_for_status()
print(resp.json())
```

## Response 200

- `phoneNumberDocId`, string
- `phoneNumber`, string
- `callingEnabled`, boolean
- `callDeepLink`, string: Can be null
- `forwardTo`, string: Can be null
- `recordingEnabled`, boolean
- `sipAuthUsername`, string: Can be null
- `sipAuthPasswordConfigured`, boolean
- `callIconCountries`, array of string: Can be null
- `callerIdMode`, string: One of `business`, `platform`
- `callerIdVerified`, boolean
- `maxCallDurationSeconds`, integer: Can be null
- `forwardCallerId`, string: One of `business`, `caller`

```json
{
  "phoneNumberDocId": "6b05d8648c0c920a11842dae",
  "phoneNumber": "+14155550123",
  "callingEnabled": true,
  "callDeepLink": "string",
  "forwardTo": "string",
  "recordingEnabled": true,
  "sipAuthUsername": "acme",
  "sipAuthPasswordConfigured": true,
  "callIconCountries": [
    "string"
  ],
  "callerIdMode": "business",
  "callerIdVerified": true,
  "maxCallDurationSeconds": 1,
  "forwardCallerId": "business"
}
```
