How to perform external api call when a content type item is published and send data to external api?

Are you able to capture the data of published item and able to call external api in controller ?
I am not sure the webhook is calling my controller function