37 lines
820 B
JavaScript
37 lines
820 B
JavaScript
|
exports.definition = {
|
||
|
name: "Webhook",
|
||
|
event: "web:trigger",
|
||
|
icon: "ri-global-line",
|
||
|
tagline: "Webhook endpoint is hit",
|
||
|
description: "Trigger an automation when a HTTP POST webhook is hit",
|
||
|
stepId: "WEBHOOK",
|
||
|
inputs: {},
|
||
|
schema: {
|
||
|
inputs: {
|
||
|
properties: {
|
||
|
schemaUrl: {
|
||
|
type: "string",
|
||
|
customType: "webhookUrl",
|
||
|
title: "Schema URL",
|
||
|
},
|
||
|
triggerUrl: {
|
||
|
type: "string",
|
||
|
customType: "webhookUrl",
|
||
|
title: "Trigger URL",
|
||
|
},
|
||
|
},
|
||
|
required: ["schemaUrl", "triggerUrl"],
|
||
|
},
|
||
|
outputs: {
|
||
|
properties: {
|
||
|
body: {
|
||
|
type: "object",
|
||
|
description: "Body of the request which hit the webhook",
|
||
|
},
|
||
|
},
|
||
|
required: ["body"],
|
||
|
},
|
||
|
},
|
||
|
type: "TRIGGER",
|
||
|
}
|