function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sergey ZuevSergey Zuev 

How to programmatically check if the Streaming API is enabled?

Is there a way to make an API call to Salesforce that would check if the Streaming API is enabled?

I know how to check it in the UI - using this "Enable Streaming API" checkbox: 
User-added image
But how to do it via an API? Push topics are successfully created even if the Streaming API is turned off.
Raj VakatiRaj Vakati

No, unfortunately, that's not possible directly to check. The only way is the "Push topics" is accessible from the metadata then you can consider that streaming API is enabled .
Sergey ZuevSergey Zuev
Thanks. Strangely enough, push topics were still available in the customer’s Org - even though the streaming API was disabled.
Raj VakatiRaj Vakati
Yeah .. you are correct .. i don't think so there is any other way . Please raise a ticket with Salesforce 
Sergey ZuevSergey Zuev
Thanks for the suggestion - done. ᐧ Cheers, Sergey
Raj VakatiRaj Vakati
Cool! Close this thread !