# Receive a vendor webhook for an installed integration

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

`POST /environment-integration-webhook/{environment_integration_id}`

Resource: **Inbound webhooks**

The URL to register with the vendor when one webhook covers every account connected through an installed integration (for apps that register one webhook URL for all installs). Truto applies the integration's `webhook.payload_transform`, answers the verification handshake (`webhook.handle_verification`), checks the signature (`webhook.signature_verification`), and routes the events to the matching integrated accounts.

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

## Path parameters

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

## Response body

- **`message`** _(string)_

## Errors

| Status | Description |
| :----- | :---------- |
| `400` | The body is not JSON, the integration has no webhook support, or the payload failed verification or transformation. |
| `404` | The environment integration 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/environment-integration-webhook/{environment_integration_id}' \
  -H 'Authorization: Bearer <your_api_token>' \
  -H 'Content-Type: application/json'
```

### JavaScript

```javascript
const response = await fetch('https://api.truto.one/environment-integration-webhook/{environment_integration_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/environment-integration-webhook/{environment_integration_id}"
headers = {
    "Authorization": "Bearer <your_api_token>",
    "Content-Type": "application/json",
}
params = {
}

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