Get Requests Data

Get requests graph

GEThttps://api.portkey.ai/v1/analytics/graphs/requests
Query parameters
Response

OK

Headers
Body
summary*object
data_points*array of object
object*enum

The type of object being returned

analytics-graph
Request
const response = await fetch('https://api.portkey.ai/v1/analytics/graphs/requests?time_of_generation_min=2024-10-05T09%3A24%3A50.272Z&time_of_generation_max=2024-10-05T09%3A24%3A50.272Z', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "summary": {},
  "data_points": [
    {
      "timestamp": "2024-10-05T09:24:50.272Z"
    }
  ],
  "object": "analytics-graph"
}

Last updated