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
required
String
the HTTP method to be used when sending the request to your server. POST, PUT, or PATCH
url
required
String
an HTTPS URL pointing to the endpoint you would like to recive the webhook on.
shared_secret
required
String
the shared secret is a password used to verify that moyasar sent the webhook.
events
optional
Array
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




Updated 18 Aug 2024
Did this page help you?