API
Webhooks

Create Webhook

1min
This API endpoint lets you register webhooks and the events you would like to listen to. You can create a global event listener by omitting the event key, this will let you listen to all of the currently available events and all the events to be added in the future.
POST
Request
Body Parameters
http_method
String
required
the HTTP method to be used when sending the request to your server. POST, PUT, or PATCH
url
String
required
an HTTPS URL pointing to the endpoint you would like to recive the webhook on.
shared_secret
String
required
the shared secret is a password used to verify that moyasar sent the webhook.
events
Array
optional
an array of events to get notified about. leave empty to listen to all events or pick some from the webhooks reference.
Curl
Responses
200