« Back to Documentation Overview

listWebhookAdd – v1.2

 listWebhookAdd(string apikey, string id, string url, array actions, array sources)

Add a new Webhook URL for the given list

Section
List Related
Parameters
apikey a valid API Key for your user account. Get by visiting your API dashboard
id the list id to connect to. Get by calling lists()
url a valid URL for the Webhook - it will be validated. note that a url may only exist on a list once.
actions optional - a hash of actions to fire this Webhook for
booleansubscribeoptional - as subscribes occur, defaults to true
booleanunsubscribeoptional - as subscribes occur, defaults to true
booleanprofileoptional - as profile updates occur, defaults to true
booleancleanedoptional - as emails are cleaned from the list, defaults to true
booleanupemailoptional - when subscribers change their email address, defaults to true
sources optional - a hash of sources to fire this Webhook for
booleanuseroptional - user/subscriber initiated actions, defaults to true
booleanadminoptional - admin actions in our web app, defaults to true
booleanapioptional - actions that happen via API calls, defaults to false
Returns
bool true if the call succeeds, otherwise an exception will be thrown