Create webhook endpoint
curl --request POST \
--url https://api.turos.app/v1/webhook_endpoints \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"destinationUrl": "https://example.com/hooks/secapi"
}
'import requests
url = "https://api.turos.app/v1/webhook_endpoints"
payload = { "destinationUrl": "https://example.com/hooks/secapi" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({destinationUrl: 'https://example.com/hooks/secapi'})
};
fetch('https://api.turos.app/v1/webhook_endpoints', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "webhook_endpoint",
"id": "wh_2ZK8Q1W9F4M6P7R3",
"createdAt": "2026-06-25T15:00:00.000Z",
"updatedAt": "2026-06-25T15:00:00.000Z",
"livemode": false,
"orgId": "org_example_123",
"description": "Production monitor matches",
"destinationUrl": "https://example.com/hooks/secapi",
"subscribedEventTypes": [
"monitor.match",
"webhook.test"
],
"status": "active",
"lastDeliveredAt": null,
"signingSecret": "whsec_example_reveal_once_on_create_or_rotate"
}Webhook endpoints
Create webhook endpoint
Create a signed webhook endpoint for Delivery events.
POST
/
v1
/
webhook_endpoints
Create webhook endpoint
curl --request POST \
--url https://api.turos.app/v1/webhook_endpoints \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"destinationUrl": "https://example.com/hooks/secapi"
}
'import requests
url = "https://api.turos.app/v1/webhook_endpoints"
payload = { "destinationUrl": "https://example.com/hooks/secapi" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({destinationUrl: 'https://example.com/hooks/secapi'})
};
fetch('https://api.turos.app/v1/webhook_endpoints', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "webhook_endpoint",
"id": "wh_2ZK8Q1W9F4M6P7R3",
"createdAt": "2026-06-25T15:00:00.000Z",
"updatedAt": "2026-06-25T15:00:00.000Z",
"livemode": false,
"orgId": "org_example_123",
"description": "Production monitor matches",
"destinationUrl": "https://example.com/hooks/secapi",
"subscribedEventTypes": [
"monitor.match",
"webhook.test"
],
"status": "active",
"lastDeliveredAt": null,
"signingSecret": "whsec_example_reveal_once_on_create_or_rotate"
}Authorizations
Body
application/json
Response
Webhook endpoint created. The signing secret is revealed once on create/rotate.