auths objectAdd a secret value here. All requests must contain an x-pipedream-secret HTTP header in the request, with this value, for the workflow to run. Otherwise we exit early.
return or this.key = 'value', pass input data to your code viaparams, and maintain state across executions with$checkpoint.async (event, steps, params) => {}if (steps.trigger.event.headers["x-pipedream-secret"] !== params.secret) {
$respond({
status: 401,
body: "Token not valid",
})
$end("Missing or bad secret on request")
}
$respond({
status: 200,
body: "Hello, world",
})