{ "opencollection": "1.0.0", "info": { "name": "Polar AccessLink Cardio load Webhooks API", "version": "v3" }, "items": [ { "info": { "name": "Webhooks", "type": "folder" }, "items": [ { "info": { "name": "Get webhook", "type": "http" }, "http": { "method": "GET", "url": "https://www.polaraccesslink.com/v3/webhooks", "auth": { "type": "basic", "username": "{{username}}", "password": "{{password}}" } }, "docs": "Returns created webhook if exists." }, { "info": { "name": "Create webhook", "type": "http" }, "http": { "method": "POST", "url": "https://www.polaraccesslink.com/v3/webhooks", "body": { "type": "json", "data": "{}" }, "auth": { "type": "basic", "username": "{{username}}", "password": "{{password}}" } }, "docs": "Create new webhook.\n\nWhen creating webhook the AccessLink sends a ping message to the url in request body. The ping message must be answered with 200 OK or otherwise the webhook is not created.\n\nCreated webhook is by default in activated state and will send push notifications about subscribed events. Webhook will be automatically deactivated if push notifications have not been successful for a period of seven (7) days.\n**Note!** Save the *signature_secret_key* from response since this is the onl" }, { "info": { "name": "Activate webhook", "type": "http" }, "http": { "method": "POST", "url": "https://www.polaraccesslink.com/v3/webhooks/activate", "auth": { "type": "basic", "username": "{{username}}", "password": "{{password}}" } }, "docs": "Activate deactivated webhook. Activation is successful if the configured webhook url returns HTTP status 200 (OK) for the issued ping request." }, { "info": { "name": "Deactivate webhook", "type": "http" }, "http": { "method": "POST", "url": "https://www.polaraccesslink.com/v3/webhooks/deactivate", "auth": { "type": "basic", "username": "{{username}}", "password": "{{password}}" } }, "docs": "Deactivate activated webhook. Deactivated webhook does not push notifications about subscribed events." }, { "info": { "name": "Update webhook", "type": "http" }, "http": { "method": "PATCH", "url": "https://www.polaraccesslink.com/v3/webhooks/:webhook-id", "params": [ { "name": "webhook-id", "value": "", "type": "path", "description": "Webhook id to update" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "basic", "username": "{{username}}", "password": "{{password}}" } }, "docs": "Edit webhook event types and/or url.\n\nWhen updating webhook url the AccessLink sends a ping message to the new address. The ping message must be answered with 200 OK or otherwise the webhook is not updated." }, { "info": { "name": "Delete webhook", "type": "http" }, "http": { "method": "DELETE", "url": "https://www.polaraccesslink.com/v3/webhooks/:webhook-id", "params": [ { "name": "webhook-id", "value": "", "type": "path", "description": "Webhook id to delete" } ], "auth": { "type": "basic", "username": "{{username}}", "password": "{{password}}" } }, "docs": "Delete webhook by id." } ] } ], "bundled": true }