This API provides an interface to fetch webhook associated to customer account.
This API only accepts GET requests.
https://dev-api.aymakan.com.sa/v2/webhooks/list
https://api.aymakan.net/v2/webhooks/list
The following headers should be sent along with the request
Your account security code / Api TokenA simple GET request should be made to the above mentioned API End Point. Please note that
the request should have the above mentioned two Headers. 
The following response will be returned upon success and if there are any webhooks setup already at account.
{
    "success": 1,
    "data": {
        "webhook": {
          "id": 195,
          "customer_id": 1234,
          "webhook_url": "https://testings.com",
          "call_method": "POST",
          "authorization_key": "X-Custom-Auth",
          "authorization_value": "your-secret-key",
          "active": 1,
          "created_at": "2021-02-07T10:05:08.000000Z",
          "updated_at": "2021-02-07T10:40:34.000000Z"
      }
    }
}{info} The
authorization_keyandauthorization_valuefields will benullif not configured for this webhook. When configured, these credentials are sent as HTTP headers whenever AyMakan calls your webhook URL.
In case of an error, the following response can be returned. This error usually means that there is no existing webhook linked to customer account.
{
    "error": true,
    "message": "WebHook not found."
}Also, an HTTP status of 422 Unprocessable Entity will be returned.
In case of invalid credentials 401 Unauthorized, the following response will be returned.
{
    "error": true,
    "response": "Invalid Credentials"
}