Implement webhooks API functionality.