Skip to content

Receive a vendor webhook for an installed integration

POST /environment-integration-webhook/{environment_integration_id}

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_idstring · uuid
required

Response Body

messagestring
Example: Webhook received

Errors

StatusDescription
400The body is not JSON, the integration has no webhook support, or the payload failed verification or transformation.
404The environment integration was not found.
413The body is larger than 1 MiB.
429Too many deliveries to this URL. Retry after the Retry-After header.
curl -X POST 'https://api.truto.one/environment-integration-webhook/{environment_integration_id}' \
  -H 'Authorization: Bearer <your_api_token>' \
  -H 'Content-Type: application/json'
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);
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())