Check an installed integration webhook URL
/environment-integration-webhook/{environment_integration_id}
For vendors that check a webhook URL with a GET, such as Meta's
hub.challenge check. Truto runs the integration's
webhook.payload_transform and webhook.handle_verification on the
request (its query string, its headers and the installed
integration's context; the body is empty), and a verify answer is
sent back as for a POST handshake. An integration with no webhook
block gets the 400 a POST gets. Any other GET gets 200 with
an empty body, including one for an integration with no handshake or
a payload_transform or handle_verification that fails (logged by
its kind). A GET is never signature-checked or routed to an
account. A HEAD is answered the same way, without a body.
Auth: none.
Path Parameters
Errors
| Status | Description |
|---|---|
400 | The integration has no webhook support, handle_verification answered verify with update_context or confirm, which a GET can't store, or the environment integration was deleted in the last 10 minutes. |
404 | The environment integration was not found. |
429 | Too many requests. Retry after the Retry-After header. |
500 | The installed integration's config could not be read. Retry. |
503 | The environment's team is being moved, or where it is served can't be read just now. Retry after the Retry-After header. |
curl -X GET '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: 'GET',
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.get(url, headers=headers, params=params)
print(response.json())