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. 

  1. Navigate to the workbench.
  2. Sign in by clicking the Login with Salesforce button in the lower right. The API Version will not impact the results of this method.
  3. Once logged in, select Utilities > REST Explorer from the menu bar.
    workbench.png
  4. Click Execute to make a GET requests for the services data:
    execute_workbench.png
  5. In the response, there is a line for limits.
    limits.png
  6. Click into limits and select to view the DailyDurableStreamingApiEvents.DailyDurableStreamingApiEvents.png
Powered by Zendesk