Add Webhook
Set up webhooks to automate workflows and trigger actions based on real-time events.
curl --location 'https://api.maximise.ai/v1/whitelabel-api/add-webhook' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"url": "https://example.com/webhook"
}'const axios = require('axios');
axios.post('https://api.maximise.ai/v1/whitelabel-api/add-webhook',
{
"url": "https://example.com/webhook"
}, {
headers: {accept: 'application/json', Authorization: 'Bearer <token>'}
})
.then(response => {
console.log(response.data);
})
.catch(error => {
console.log(error);
});import requests
import json
url = "https://api.maximise.ai/v1/whitelabel-api/add-webhook"
payload = json.dumps({
"url": "https://example.com/webhook"
})
headers = {
'Authorization': 'Bearer <token>',
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)Example response
Status Code: 200 OK
{
"message": "Webhook added successfully"
}Last updated