Skip to content
POST /webhook/test

Request Body

idstring · uuid

ID of the webhook you want to send the test event to.

Example: f49fa6c3-3d60-4d7e-bc86-16259a5d0db0

Response Body

successboolean
Example: true
curl -X POST 'https://api.truto.one/webhook/test' \
  -H 'Authorization: Bearer <your_api_token>' \
  -H 'Content-Type: application/json' \
  -d '{
  "id": "f49fa6c3-3d60-4d7e-bc86-16259a5d0db0"
}'
const body = {
  "id": "f49fa6c3-3d60-4d7e-bc86-16259a5d0db0"
};

const response = await fetch('https://api.truto.one/webhook/test', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer <your_api_token>',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify(body),
});

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

url = "https://api.truto.one/webhook/test"
headers = {
    "Authorization": "Bearer <your_api_token>",
    "Content-Type": "application/json",
}
params = {
}
payload = {
    "id": "f49fa6c3-3d60-4d7e-bc86-16259a5d0db0"
}

response = requests.post(url, headers=headers, params=params, json=payload)
print(response.json())
import Truto from '@truto/truto-ts-sdk';

const truto = new Truto({
  token: '<your_api_token>',
});

const result = await truto.webhook.test({
  "id": "<webhook_id>"
});

console.log(result);
import asyncio
from truto_python_sdk import TrutoApi

truto_api = TrutoApi(token="<your_api_token>")

async def main():
    result = await truto_api.webhooks.test("<id>")
    print(result)

asyncio.run(main())