
TriggerWorkflow
TriggerWorkflow
yaml
type: "io.kestra.plugin.n8n.webhook.TriggerWorkflow"Examples
yaml
id: n8n_webhook_trigger
namespace: company.team
tasks:
- id: trigger_workflow
type: io.kestra.plugin.n8n.webhook.TriggerWorkflow
method: POST
uri: https://n8n.example.com/webhook/213e8fbc-f843-428c-9860-ab9f64e5ef3b
yaml
id: n8n_webhook_trigger_with_auth
namespace: company.team
tasks:
- id: trigger_workflow
type: io.kestra.plugin.n8n.webhook.TriggerWorkflow
options:
auth:
type: BASIC
username: "{{ secret('N8N_WEBHOOK_USERNAME') }}"
password: "{{ secret('N8N_WEBHOOK_PASSWORD') }}"
method: POST
uri: https://n8n.example.com/webhook/213e8fbc-f843-428c-9860-ab9f64e5ef3b
yaml
id: n8n_webhook_trigger_with_body
namespace: company.team
tasks:
- id: trigger_workflow
type: io.kestra.plugin.n8n.webhook.TriggerWorkflow
body:
keyOne: valueOne
method: POST
uri: http://n8n:5678/webhook/213e8fbc-f843-428c-9860-ab9f64e5ef3b
Properties
method*Requiredstring
Possible Values
GETPOSTPUTDELETEPATCHuri*Requiredstring
bodyobject
contentTypestring
Default
BINARYPossible Values
TEXTJSONXMLBINARYfromstring
headersobject
optionsNon-dynamic
Definitions
io.kestra.core.http.client.configurations.HttpConfiguration
allowFailedbooleanstring
Default
falseallowedResponseCodesarray
SubTypeinteger
auth
io.kestra.core.http.client.configurations.BasicAuthConfiguration
type*Requiredobject
passwordstring
usernamestring
io.kestra.core.http.client.configurations.BearerAuthConfiguration
type*Requiredobject
tokenstring
basicAuthPasswordDeprecatedstring
basicAuthUserDeprecatedstring
connectTimeoutDeprecatedstring
Format
durationconnectionPoolIdleTimeoutDeprecatedstring
Format
durationdefaultCharsetstring
Default
UTF-8java.nio.charset.Charset
followRedirectsbooleanstring
Default
truelogLevelDeprecatedstring
Possible Values
ALLTRACEDEBUGINFOWARNERROROFFNOT_SPECIFIEDlogsarray
SubTypestring
Possible Values
REQUEST_HEADERSREQUEST_BODYRESPONSE_HEADERSRESPONSE_BODYmaxContentLengthDeprecatedinteger
proxy
io.kestra.core.http.client.configurations.ProxyConfiguration
addressstring
passwordstring
portintegerstring
typestring
Default
DIRECTPossible Values
DIRECTHTTPSOCKSusernamestring
proxyAddressDeprecatedstring
proxyPasswordDeprecatedstring
proxyPortDeprecatedinteger
proxyTypeDeprecatedstring
Possible Values
DIRECTHTTPSOCKSproxyUsernameDeprecatedstring
readIdleTimeoutDeprecatedstring
Format
durationreadTimeoutDeprecatedstring
Format
durationssl
io.kestra.core.http.client.configurations.SslOptions
insecureTrustAllCertificatesbooleanstring
timeout
io.kestra.core.http.client.configurations.TimeoutConfiguration
connectTimeoutstring
Format
durationreadIdleTimeoutstring
Default
PT5MFormat
durationqueryParametersobject
waitbooleanstring
Default
true