How to implement Webhooks in HubSpot, and how do they differ from an API?

Thanks for such amazing and helping post.