Create an event listener to trigger the webhook endpoint once the the event triggered
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/json
Example
{"name":"OrderCreatedWebhook","description":"Webhook triggered when a new order is created","url":"https://example.com/webhook","event":"incoming_msg","securetoken":"abcd1234securetoken","policy":"retry","enabled":true}
Request Code Samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request POST 'https://api.mottasl.ai/v1/webhook' \
--header'Authorization: Bearer <token>' \
--header'Content-Type: application/json' \
--data-raw'{
"name": "OrderCreatedWebhook",
"description": "Webhook triggered when a new order is created",
"url": "https://example.com/webhook",
"event": "incoming_msg",
"securetoken": "abcd1234securetoken",
"policy": "retry",
"enabled": true
}'