Skip to content

Using web hooks

Overview

The platform supports webhook integration. To use, create a script that performs some task and then configure the trigger to be a webook. When the webhook is called the script will be executed with the payload from the webhook.

Authentication

Url token

GET|POST https://rest.weave.io/hook/<Org ID>/<Script ID>/<CallToken>

Basic realm

POST https://rest.weave.io/hook/secure/<Org ID>/<Script ID>
<Headers>
Authorization: Basic <Base 64 encoded HookID:CallToken>

Payload

Any payload passed to the script is available via params.get("body"). It will be a string. If the payload is JSON use the utility function FromJson(str) to convert to a Lua table.