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
Webhookscreate
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
name
string 
required
description
string 
required
url
string 
required
event
enum<string> 
Webhook event type
required
See the Available event types
Allowed values:
incoming_msgoutgoing_msgchat_assignedchat_closedchat_mentionedtemplate_approvedbroadcast_completebilling_alertnew_contactfor_rulesmessage_status_changed
Example:
incoming_msg
securetoken
string 
required
policy
string 
required
enabled
boolean 
required
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 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 '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
object {0}
Example
{}
🔴500InternelError
🟠400BadRequest
Modified at 2025-05-24 13:29:55
Previous
Get Webhook Details
Next
Delete Webhook
Built with