Receive a vendor webhook for an integrated account
/integrated-account-webhook/{integrated_account_id}
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
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. |
curl -X POST 'https://api.truto.one/integrated-account-webhook/{integrated_account_id}' \
-H 'Authorization: Bearer <your_api_token>' \
-H 'Content-Type: application/json'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);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())