Insights REST API
Besides accessing Insights metrics through Admin Portal, Insights Premium users can access their metrics using API.
To read about the available metrics, categories, and their limitations, refer to the general Insights API documentation.
Authentication
The Insights API uses API key authentication. Include your API key in the Authorization header of every request:
curl --header 'PubNub-Version: YYYY-MM-DD' --header 'Authorization: YOUR_API_KEY_HERE' ...
For instructions on how to generate and manage your API key, refer to the Admin API authentication documentation.
...