You can manage your webhooks with these endpoints.
View the official documentation here.
- webhook.list(callback)
- webhook.events(callback)
- webhook.create([params], callback)
- webhook.withID(id).details(callback)
- webhook.withID(id).update([params], callback)
- webhook.withID(id).delete(callback)
- webhook.deleteAll(callback)
Get a basic listing of all webhooks associated with an account.
- returns: A list of webhooks that belong to the given account.
Get a listing of all event types that are available for webhooks.
- returns: A list of event types and descriptions.
Create a new webhook.
params<Object> Can have the following fields:- returns: The id of the created webhook.
Get information for a specific webhook belonging to a specific account.
- returns: Details for a single webhook.
- raises: Http404 if no webhook found.
Update an existing webhook.
params<Object> Can have the following fields:- returns: The id of the updated webhook, or
Falseif the update failed. - raises: Http404 if the webhook cannot be found.
Deletes an existing webhook.
- returns:
Trueif the webhook deleted successfully. - raises: Http404 if no webhook found.
Delete all webhooks registered for an account.
- returns:
Trueif the webhooks deleted successfully.