Create a webhook
URL
Headers
Name
Type
Description
Body
Name
Type
Description
Example request
curl -X POST https://api.complycube.com/v1/webhooks \
-H 'Authorization: <YOUR_API_KEY>' \
-H 'Content-Type: application/json' \
-d '{
"description": "This is my webhook, I like it a lot",
"url": "https://yoursite.com/my/webhook/endpoint",
"enabled": true,
"events": [
"check.pending",
"check.completed"
]
}'const { ComplyCube } = require("@complycube/api");
const complycube = new ComplyCube({ apiKey: "<YOUR_API_KEY>" });
const webhook = await complycube.webhook.create({
description: "This is my webhook, I like it a lot",
url: "https://yoursite.com/my/webhook/endpoint",
enabled: true,
events: [
"check.pending",
"check.completed"
]
});
