Syncgateway API to get all existing channels

How can i use the sync gateway API to get all the existing channels? Is there any solution for this or i have to query N1QL?

Just wondering why would you want to get the all channels? probably a business case will help to get the answer of your question