I am sorry, I don’t quite understand what you are looking for. Can you please expand a little bit?
The monday Apps framework, provides you with an ability to use triggers from the monday platform to run actions (the code that you have created).
The API is used to query or mutate data on the monday platform. The API isn’t responsible for triggering an action.
If you don’t what to use the monday apps framework, then you could look at using Webhooks. More information can be found here → https://monday.com/developers/v2#mutations-section-webhooks
This would allow you to run your endpoint based on one of these actions.
I will elaborate on the scenario I am looking for.
Let us consider an example:
I want to perform certain action when New item is created.I can find out that new item is created by creating poll request which runs every 2 mins that queries for any new item.I implemented polling instead of webhook because there are only few webhook events available as of now in the documentation.
In the same way I want to query when an item is moved to a group and when an item is updated but I am unable to find a corresponding query in the developer documentation.
I will really try to push you towards monday apps! It will greatly benefit you.
Firstly, polling is very an inefficient and resource heavy process.
Using the app triggers that I mentioned earlier, would meet your requirements.
This means that you don’t need to poll every 2 minutes as it will trigger automatically. You won’t need to store data of old items to check if there is a new item on the board.
Once you have created your recipe, you can then set up this integration on your board.