Webhooks
Payload
The URL in a webhook will be called by using a POST
HTTP request. The HTTP body contains a JSON payload with the following structure:
Example payload
Code
The entity
attribute contains a representation of the entity equal to the JSON representation you get when requesting the entity using the API. The state
attribute contains the new state of the entity that triggered the push. Notice that the state in the push and the state in the entity can differ. The state of the entity could have changed in the meantime and always contains the current state in the database. The action
attribute contains the name of the event that triggered the push.
Last modified on