Question
The Salesforce integration relies on the Streaming API. If the daily limits of the streaming API are exceeded, Salesforce returns a rate-limit error to our integration. In this case, our integration will deactivate the data sync to avoid making this rate-limitation problem worse.
How can I check on API usage and the daily rate limit to help avoid this deactivation?
Answer
This information can be obtained from the Salesforce REST API.
- Navigate to the workbench.
- Sign in by clicking the Login with Salesforce button in the lower right. The API Version will not impact the results of this method.
- Once logged in, select Utilities > REST Explorer from the menu bar.
- Click Execute to make a GET requests for the services data:
- In the response, there is a line for limits.
- Click into limits and select to view the DailyDurableStreamingApiEvents.