Welcome, @evra! So glad to hear you’re interested in this kind of integration.
In this document, you’ll find the description of the Interaction Types (Discovery, State Refresh, Command, etc.) and their structure.
However, I suggest you take a look at the sample below, you can configure it and see the requests’ payload as a reference for your new project.