Adding a webhook
POST /webhooks

Adds a new webhook to the account. For all the account events Qminders servers will call provided url with the payload of the event.

Request

  curl -X POST https://api.qminder.com/v1/webhooks \
  -H "X-Qminder-REST-API-Key: SECRET_KEY" \
  --data "url=https://www.example.com"
          
Request parameter Description
url URL of the server to call.

Response

 {
                "statusCode": 200,
                "id": 827,
                "secret": "wfdfghfhfgdsfderthyndf4356hyfds"
                } 
Response field Type Description
id Number ID of a created webhook
secret String Secret to validate the legimity of the payload
Deleting
DELETE /webhooks/ id

Deletes the webhook.

Request

  curl -X DELETE https://api.qminder.com/v1/webhooks/45 \
  -H "X-Qminder-REST-API-Key: SECRET_KEY"
          

Response

 {
    "statusCode": 200
  }