API - Managing webhooks

This API is only available for customer that have created the instances through our Customer page. If you signed up via a provider, you can find your API key and documentation in the CloudAMQP Console.

Enter your API key here to update the examples with it
Enter your instance id here to update the examples with it

List webhooks

GET https://customer.cloudamqp.com/api/instances/:id/webhooks

Example:

curl https://YOUR_APIKEY@customer.cloudamqp.com/api/instances/1234/webhooks
[{"id":1,"webhook_uri":"http://www.example.com/endpoint","queue":"push-queue","last_status":null,"retry_interval":1,"concurrency":10,"vhost":"hptqevnp"}]

Create webhook

POST https://customer.cloudamqp.com/api/instances/:id/webhooks
Parameters
  • concurrency
  • retry_interval
  • vhost
  • webhook_uri
  • queue

Example:

curl -XPOST -H "Content-Type: application/json" \
  -d '{
    "concurrency": 10,
    "retry_interval": 1,
    "vhost": "test",
    "webhook_uri": "http://www.example.com/endpoint",
    "queue": "push-queue"
  }' https://YOUR_APIKEY@customer.cloudamqp.com/api/instances/1234/webhooks

Delete webhook

DELETE https://customer.cloudamqp.com/api/instances/:id/webhooks/:webhook_id

Example:

curl -XDELETE https://YOUR_APIKEY@customer.cloudamqp.com/api/instances/1234/webhooks/1