{ "opencollection": "1.0.0", "info": { "name": "Leaf Agriculture Leaf API Reference > Alerts API", "version": "1.0.0" }, "items": [ { "info": { "name": "API Reference > Alerts", "type": "folder" }, "items": [ { "info": { "name": "Leaf Agriculture Get all webhooks", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/services/alerts/api/alerts/webhooks", "headers": [ { "name": "Content-Type", "value": "application/json" }, { "name": "Authorization", "value": "Bearer {{leaf_token}}" } ] }, "docs": "Leaf Agriculture Get all webhooks" }, { "info": { "name": "Leaf Agriculture Register a webhook", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/services/alerts/api/alerts/webhooks", "headers": [ { "name": "Content-Type", "value": "application/json" }, { "name": "Authorization", "value": "Bearer {{leaf_token}}" } ] }, "docs": "Register the URL of your webhook, specifying which events do you want to be alerted about.\n\nThe id of the resource created is returned in the Location header." }, { "info": { "name": "Leaf Agriculture Get a webhook", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/services/alerts/api/alerts/webhooks/:webhook_id", "headers": [ { "name": "Content-Type", "value": "application/json" }, { "name": "Authorization", "value": "Bearer {{leaf_token}}" } ], "params": [ { "name": "webhook_id", "value": "", "type": "path" } ] }, "docs": "Leaf Agriculture Get a webhook" }, { "info": { "name": "Leaf Agriculture Delete a webhook", "type": "http" }, "http": { "method": "DELETE", "url": "{{baseUrl}}/services/alerts/api/alerts/webhooks/:webhook_id", "headers": [ { "name": "Content-Type", "value": "application/json" }, { "name": "Authorization", "value": "Bearer {{leaf_token}}" } ], "params": [ { "name": "webhook_id", "value": "", "type": "path" } ] }, "docs": "Leaf Agriculture Delete a webhook" } ] } ], "bundled": true }