List Webhooks

We can list the active web hooks by making a GET call to the v1/environment/webhooks endpoint.

curl -iX GET https://api.shipengine.com/v1/environment/webhooks \
-H 'Content-Type: application/json' \
-H 'API-Key: __YOUR_API_KEY_HERE__'

You can also list a specific web hook if you append the webhook_id to the end of the endpoint.

curl -iX GET https://api.shipengine.com/v1/environment/webhooks/5517 \
-H 'Content-Type: application/json' \
-H 'API-Key: __YOUR_API_KEY_HERE__'

Info

Listing Webhooks

When sending a get webhook request, the response will only list active webhooks.

When listing your webhooks, you'll receive a JSON response similar to the following example.

[
  {
      "webhook_id": "5517",
      "url": "https://www.yourwebhook.com/listener/batch",
      "event": "batch"
  },
  {
      "webhook_id": "5515",
      "url": "https://www.yourwebhook.com/listener/rate",
      "event": "rate"
  },
  {
      "webhook_id": "5516",
      "url": "https://www.yourwebhook.com/listener/track",
      "event": "track"
  }
]