🚀 New! Kestra raises $3 million to grow Learn more

Example flow for a webhook trigger.

id: webhook
namespace: io.kestra.demo.flows

description: |
  Example flow for a webhook trigger.
  To start this flow, just send a curl request:
  curl http://localhost:8080/api/v1/executions/webhook/io.kestra.demo.flows/webhook/1KERKzRQZSMtLdMdNI7Nkr
  This endpoint doesn't need any login / password and is secured by `key` that is different for every flow

  - id: out
    type: io.kestra.core.tasks.debugs.Return
    format: "{{ trigger | json }}"

  - id: webhook
    type: io.kestra.core.models.triggers.types.Webhook
    # the required key to start this flow - might be passed as a secret
    key: 1KERKzRQZSMtLdMdNI7Nkr