Is there an API endpoint for Flex events

As per the subject, it would be good to know when these events occur so I can update my HomeAssistant automation.