Trigger automation via webhook
Unauthenticated inbound webhook for automation triggers. No Bearer token required. The secret is webhookSecret from a webhook trigger (returned in automation triggers after create/update). POST with Content-Type: application/json; request body is passed to the agent as context. Returns 202 with { “accepted”: true } when the secret matches an enabled webhook trigger and the automation executor is eligible. Returns 202 with { “accepted”: false } when the secret is valid but the executor is inactive or no longer in the workspace (no run is enqueued).
POST
/automations/webhooks/{secret}Path parameters
secretstringrequiredwebhookSecret from the automation trigger
Request body
application/jsonobjectResponses
202Request processed: accepted true if a run was enqueued; accepted false if the executor cannot run automations
acceptedbooleanTrue when the automation run was queued; false when the executor is ineligible
404Webhook not found (invalid or disabled secret)
Request
curl -X POST "https://leadtime.app/api/public/automations/webhooks/string" \
-H "Content-Type: application/json" \
-d '{}'const response = await fetch("https://leadtime.app/api/public/automations/webhooks/string", {
method: "POST",
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify({})
});import requests
response = requests.post(
"https://leadtime.app/api/public/automations/webhooks/string",
headers={
"Content-Type": "application/json"
},
json={},
)Response
{
"accepted": true
}Webhook not found (invalid or disabled secret)