Mark that the state has changed by API key

I have smart speaker Alice, and it would be great to know that she changed the state of my smart home. The speaker uses the API and API key