List webhooks

List webhooks

curl -X GET "https://onfleet.com/api/v2/webhooks" \
       -u "cd3b3de84cc1ee040bf06512d233719c:"
onfleet.webhooks.get()
onfleet.webhooks.get();
$onfleet->webhooks->get()
[
    {
        "id": "ZnVRY8rdfUwNPjHQy2QthtxZ",
        "name": "Webhook 1 - Driver Nearby",
        "count": 7,
        "url": "https://11ec4a02.ngrok.com/onfleet/driverNearby",
        "trigger": 2,
    		"isEnabled": true
    },
    {
        "id": "9zqMxI79mRcHpXE111nILiPn",
        "name": "Webhook 2 - TaskStarted",
        "count": 3,
        "url": "https://11ec4a02.ngrok.com/onfleet/taskStart",
        "trigger": 0,
    		"isEnabled": true      
    },
    {
    		"id": "8KD3PcIMsG*bC0imJ~EjR9GX",
    		"name": "Webhook 3 - TaskCompleted on Zapier",
    		"count": 6,
    		"url": "https://hooks.zapier.com/hooks/catch/4212020/0z5pha/",
   			"trigger": 3,
    		"isEnabled": true
  	}
]

count provides a total number of successful requests made for a webhook. If a webhook failed consecutively for 300 times or more, the isEnabled parameter will be turned to false.