{ "opencollection": "1.0.0", "info": { "name": "Attentive Access Token Webhooks API", "version": "1.0" }, "request": { "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "items": [ { "info": { "name": "Webhooks", "type": "folder" }, "items": [ { "info": { "name": "List webhooks", "type": "http" }, "http": { "method": "GET", "url": "https://api.attentivemobile.com/v1/webhooks", "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://ui-devel.attentivemobile.com/integrations/oauth-install?client_id={clientId}&redirect_uri={redirectUri}&scope={scope}", "accessTokenUrl": "https://api.attentivemobile.com/v1/authorization-codes/tokens", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Make an API call to this endpoint to list existing webhooks." }, { "info": { "name": "Create webhook", "type": "http" }, "http": { "method": "POST", "url": "https://api.attentivemobile.com/v1/webhooks", "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://ui-devel.attentivemobile.com/integrations/oauth-install?client_id={clientId}&redirect_uri={redirectUri}&scope={scope}", "accessTokenUrl": "https://api.attentivemobile.com/v1/authorization-codes/tokens", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Make an API call to this endpoint to subscribe to a webhook.\n\nEvents are a collection of strings of the following types:\n* `sms.subscribed`\n* `sms.sent`\n* `sms.message_link_click`\n* `email.subscribed`\n* `email.unsubscribed`\n* `email.message_link_click`\n* `email.opened`\n* `custom_attribute.set`\n\nEvent types are case sensitive.\n\nAll events included will be sent to the URL.\n" }, { "info": { "name": "Update webhook", "type": "http" }, "http": { "method": "PUT", "url": "https://api.attentivemobile.com/v1/webhooks/:webhookId", "params": [ { "name": "webhookId", "value": "", "type": "path", "description": "The id of the webhook to update" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://ui-devel.attentivemobile.com/integrations/oauth-install?client_id={clientId}&redirect_uri={redirectUri}&scope={scope}", "accessTokenUrl": "https://api.attentivemobile.com/v1/authorization-codes/tokens", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Make an API call to this endpoint to update a webhook" }, { "info": { "name": "Delete webhook", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.attentivemobile.com/v1/webhooks/:webhookId", "params": [ { "name": "webhookId", "value": "", "type": "path", "description": "id of the webhook to delete" } ], "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://ui-devel.attentivemobile.com/integrations/oauth-install?client_id={clientId}&redirect_uri={redirectUri}&scope={scope}", "accessTokenUrl": "https://api.attentivemobile.com/v1/authorization-codes/tokens", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Make an API call to this endpoint to remove a webhook." } ] } ], "bundled": true }