Notification when machine state changed

Is it possible to be notified when machine state changed ?

Hi - this is not possible directly. You can approximate it to an extent with the wait endpoint: https://docs.fly.io/machines/api/machines-resource#wait-for-a-machine-to-reach-a-specified-state but this requires you to call an endpoint and wait for the state transition. There’s nothing like a “fire a webhook when a machine transitions state” thing.