respondToWebhook.json•5.25 kB
{
"nodeType": "n8n-nodes-base.respondToWebhook",
"displayName": "Respond to Webhook",
"description": "Returns data for Webhook",
"version": [
1,
1.1,
1.2,
1.3,
1.4,
1.5
],
"properties": [
{
"name": "enableResponseOutput",
"displayName": "Enable Response Output Branch",
"type": "boolean",
"default": false,
"description": "Whether to provide an additional output branch with the response sent to the webhook",
"displayOptions": "{ show: { '@version': [{ _cnd: { gte: 1.4 }"
},
{
"name": "generalNotice",
"displayName": "Verify that the \"Webhook\" node's \"Respond\" parameter is set to \"Using Respond to Webhook Node\". <a href=\"https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.respondtowebhook/\" target=\"_blank\">More details",
"type": "notice",
"default": ""
},
{
"name": "credentials",
"displayName": "Credentials",
"type": "credentials",
"default": "",
"displayOptions": {
"show": {
"respondWith": [
"jwt"
]
}
}
},
{
"name": "webhookNotice",
"displayName": "When using expressions, note that this node will only run for the first item in the input data",
"type": "notice",
"default": "",
"displayOptions": {
"show": {
"respondWith": [
"json",
"text",
"jwt"
]
}
}
},
{
"name": "redirectURL",
"displayName": "Redirect URL",
"type": "string",
"default": "",
"description": "The URL to redirect to",
"placeholder": "e.g. http://www.n8n.io",
"required": true,
"displayOptions": {
"show": {
"respondWith": [
"redirect"
]
}
}
},
{
"name": "responseBody",
"displayName": "Response Body",
"type": "json",
"default": "{\\n \"myField\": \"value\"\\n}",
"description": "The HTTP response JSON data",
"typeOptions": {
"rows": 4
},
"displayOptions": {
"show": {
"respondWith": [
"json"
]
}
}
},
{
"name": "payload",
"displayName": "Payload",
"type": "json",
"default": "{\\n \"myField\": \"value\"\\n}",
"description": "The payload to include in the JWT token",
"typeOptions": {
"rows": 4
},
"displayOptions": {
"show": {
"respondWith": [
"jwt"
]
}
}
},
{
"name": "responseDataSource",
"displayName": "Response Data Source",
"type": "options",
"default": "automatically",
"description": "Use if input data will contain a single piece of binary data",
"options": [
{
"name": "Choose Automatically From Input",
"value": "automatically",
"description": "Use if input data will contain a single piece of binary data"
},
{
"name": "Specify Myself",
"value": "set",
"description": "Enter the name of the input field the binary data will be in"
}
],
"displayOptions": {
"show": {
"respondWith": [
"binary"
]
}
}
},
{
"name": "inputFieldName",
"displayName": "Input Field Name",
"type": "string",
"default": "data",
"description": "The name of the node input field with the binary data",
"required": true,
"displayOptions": {
"show": {
"respondWith": [
"binary"
],
"responseDataSource": [
"set"
]
}
}
},
{
"name": "options",
"displayName": "Options",
"type": "collection",
"default": {},
"description": "The HTTP response code to return. Defaults to 200.",
"placeholder": "Add option",
"options": [
{
"name": "responseCode",
"displayName": "Response Code",
"type": "number",
"default": 200,
"description": "The HTTP response code to return. Defaults to 200."
}
],
"typeOptions": {
"minValue": 100,
"maxValue": 599
},
"displayOptions": {
"show": {
"/respondWith": [
"allIncomingItems",
"firstIncomingItem"
]
}
}
}
],
"credentialsConfig": [
{
"name": "jwtAuth",
"required": true
},
{
"name": "enableResponseOutput",
"required": false
},
{
"name": "generalNotice",
"required": false
},
{
"name": "credentials",
"required": true
},
{
"name": "inputFieldName",
"required": true
},
{
"name": "responseKey",
"required": false
}
],
"io": {
"inputs": [
"Main"
],
"outputs": [],
"outputNames": [],
"hints": {}
},
"wiring": {
"role": "generic",
"requires": [],
"optional": [],
"consumedBy": [],
"consumes": [
"Main"
],
"produces": []
}
}