# Receive a vendor webhook for an integrated account

> Source: https://truto.one/docs/api-reference/admin/inbound-webhooks/receive-account-webhook/

`POST /integrated-account-webhook/{integrated_account_id}`

Resource: **Inbound webhooks**

The URL to register with the vendor for webhooks about one integrated account. Truto verifies the request as the integration's `webhook` config says, maps it, and sends your webhooks the resulting `record:*` events. The vendor's verification handshake, where the integration defines one, is answered here too.

**Auth:** none. Requests are checked by the integration's signature verification.

## Path parameters

- **`integrated_account_id`** _(string, required)_

## Errors

| Status | Description |
| :----- | :---------- |
| `400` | The integration has no webhook support, or the payload failed verification or transformation. |
| `404` | The integrated account was not found. |
| `413` | The body is larger than 1 MiB. |
| `429` | Too many deliveries to this URL. Retry after the `Retry-After` header. |

## Code examples

### curl

```bash
curl -X POST 'https://api.truto.one/integrated-account-webhook/{integrated_account_id}' \
  -H 'Authorization: Bearer <your_api_token>' \
  -H 'Content-Type: application/json'
```

### JavaScript

```javascript
const response = await fetch('https://api.truto.one/integrated-account-webhook/{integrated_account_id}', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer <your_api_token>',
    'Content-Type': 'application/json',
  },
});

const data = await response.json();
console.log(data);
```

### Python

```python
import requests

url = "https://api.truto.one/integrated-account-webhook/{integrated_account_id}"
headers = {
    "Authorization": "Bearer <your_api_token>",
    "Content-Type": "application/json",
}
params = {
}

response = requests.post(url, headers=headers, params=params)
print(response.json())
```
