As @aaPanel_Kern mentioned, I recommend that you first review the documentation.
Then enter your dashboard and press F12, check the Fetch/XHR requests sent from the Network tab. You can apply your operations with the API.
I made an example for you. In the image below, the left side is the API and the right side is the image I get from my dashboard.