Azeer API
  1. Webhooks
Azeer API
  • API Authentication
  • APIs
    • Agents
      • Create Agent
      • Update Agent
      • Get Agent Details
    • Contacts
      • Create Contact
      • Create Bulk Contacts
    • Messages
      • Send Message
      • Delete Message
      • Delete Bulk Messages
    • Webhooks
      • Webhooks
      • List all webhooks
        GET
      • Get Webhook Details
        GET
      • Create Webhook
        POST
      • Delete Webhook
        DELETE
    • App
      • Create User Session
  1. Webhooks

Create Webhook

POST
https://api.mottasl.ai/v1/webhook
Last modified:2025-05-24 13:29:55
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
}'

Responses

🟢200Success
application/json
Body

Example
{}
🔴500InternelError
🟠400BadRequest
Modified at 2025-05-24 13:29:55
Previous
Get Webhook Details
Next
Delete Webhook
Built with