New firmware sonoff restfull API for integrate with HA

Hello, Do you know that sonoff introduce a new restfull API for integrate with HA? i am trying to integrate with this code in the configuration.yaml but i don´t find my error. Can you help me? Thanks!

here explain how to http://developers.sonoff.tech/sonoff-diy-mode-api-protocol.html

i can do works through postman but not in HA

You need to share your configuration for your REST calls if you want help