Zum Inhalt springen
Leadtime
Deutsch
Esc
↑↓navigieren↵öffnen⌘Jvorschau

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
secretstringrequired

webhookSecret from the automation trigger

Request body
application/json
object
Responses
202

Request processed: accepted true if a run was enqueued; accepted false if the executor cannot run automations

acceptedboolean

True when the automation run was queued; false when the executor is ineligible

404

Webhook not found (invalid or disabled secret)

Try it
Server
Parameters
Bodyapplication/json
Request
curl -X POST "https://leadtime.app/api/public/automations/webhooks/string" \
  -H "Content-Type: application/json" \
  -d '{}'
Response
{
  "accepted": true
}