{ "opencollection": "1.0.0", "info": { "name": "Mason Apps Webhooks API", "version": "0.1.0" }, "items": [ { "info": { "name": "Webhooks", "type": "folder" }, "items": [ { "info": { "name": "Get Webhook", "type": "http" }, "http": { "method": "GET", "url": "https://api.getmason.io/v1/webhook", "params": [ { "name": "id", "value": "", "type": "query", "description": "Webhook id" }, { "name": "event_type", "value": "", "type": "query", "description": "Event type on which notifications are triggered to the webhook" } ], "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Get all the registered webhooks" }, { "info": { "name": "Register A Webhook", "type": "http" }, "http": { "method": "POST", "url": "https://api.getmason.io/v1/webhook", "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Register a webhook. Webhooks are supported at workspace level" }, { "info": { "name": "Delete Webhook", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.getmason.io/v1/webhook/:id", "params": [ { "name": "id", "value": "", "type": "path", "description": "Id of webhook to be deleted" } ], "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Delete a webhook" } ] } ], "bundled": true }