{
  "info": {
    "_postman_id": "b2c6c7e2-546d-45af-80cf-5f719488ffd6",
    "name": "Choreo API Management Alerts Latency API",
    "description": "The Choreo API Management API provides programmatic access to manage the full lifecycle of APIs on the WSO2 Choreo platform. It allows API creators to create, publish, version, and manage APIs, configure rate limiting policies, and manage API documentation. Choreo is an AI-native internal developer platform that simplifies building, deploying, and managing cloud-native applications.\n\nContact Support:\n Name: WSO2 Choreo",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "createdAt": "2026-07-28T01:20:38.000Z",
    "updatedAt": "2026-07-28T01:20:38.000Z",
    "lastUpdatedBy": "35240",
    "uid": "35240-b2c6c7e2-546d-45af-80cf-5f719488ffd6"
  },
  "item": [
    {
      "name": "latency",
      "item": [
        {
          "name": "Choreo Get API latency metrics",
          "id": "befb263c-9d20-4c50-82bf-158984a9e24b",
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          },
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/latency?orgId=<string>&apiId=<string>&from=<dateTime>&to=<dateTime>&granularity=1h",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "latency"
              ],
              "query": [
                {
                  "description": "(Required) Organization identifier.",
                  "key": "orgId",
                  "value": "<string>"
                },
                {
                  "description": "Filter by specific API identifier.",
                  "key": "apiId",
                  "value": "<string>"
                },
                {
                  "description": "(Required) ",
                  "key": "from",
                  "value": "<dateTime>"
                },
                {
                  "description": "(Required) ",
                  "key": "to",
                  "value": "<dateTime>"
                },
                {
                  "key": "granularity",
                  "value": "1h"
                }
              ]
            },
            "description": "Retrieve latency metrics for APIs including average, median, P95, and P99 latencies over a given time range."
          },
          "response": [
            {
              "id": "7c701830-4a66-4145-b366-8e3105a8d8f9",
              "name": "Successful response with latency metrics.",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  },
                  {
                    "description": "Added as a part of security scheme: bearer",
                    "key": "Authorization",
                    "value": "Bearer <token>"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/latency?orgId=<string>&apiId=<string>&from=<dateTime>&to=<dateTime>&granularity=1h",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "latency"
                  ],
                  "query": [
                    {
                      "description": "(Required) Organization identifier.",
                      "key": "orgId",
                      "value": "<string>"
                    },
                    {
                      "description": "Filter by specific API identifier.",
                      "key": "apiId",
                      "value": "<string>"
                    },
                    {
                      "description": "(Required) ",
                      "key": "from",
                      "value": "<dateTime>"
                    },
                    {
                      "description": "(Required) ",
                      "key": "to",
                      "value": "<dateTime>"
                    },
                    {
                      "key": "granularity",
                      "value": "1h"
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "responseTime": null,
              "body": "{\n  \"averageLatency\": \"<float>\",\n  \"medianLatency\": \"<float>\",\n  \"p95Latency\": \"<float>\",\n  \"p99Latency\": \"<float>\",\n  \"timeSeries\": [\n    {\n      \"timestamp\": \"<dateTime>\",\n      \"averageLatency\": \"<float>\",\n      \"p95Latency\": \"<float>\",\n      \"p99Latency\": \"<float>\"\n    },\n    {\n      \"timestamp\": \"<dateTime>\",\n      \"averageLatency\": \"<float>\",\n      \"p95Latency\": \"<float>\",\n      \"p99Latency\": \"<float>\"\n    }\n  ]\n}",
              "createdAt": "2026-07-28T01:20:39.000Z",
              "updatedAt": "2026-07-28T01:20:39.000Z",
              "uid": "35240-7c701830-4a66-4145-b366-8e3105a8d8f9"
            },
            {
              "id": "d7e70c6e-e75c-4f74-a401-6153afb10eb6",
              "name": "Bad request.",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "description": "Added as a part of security scheme: bearer",
                    "key": "Authorization",
                    "value": "Bearer <token>"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/latency?orgId=<string>&apiId=<string>&from=<dateTime>&to=<dateTime>&granularity=1h",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "latency"
                  ],
                  "query": [
                    {
                      "description": "(Required) Organization identifier.",
                      "key": "orgId",
                      "value": "<string>"
                    },
                    {
                      "description": "Filter by specific API identifier.",
                      "key": "apiId",
                      "value": "<string>"
                    },
                    {
                      "description": "(Required) ",
                      "key": "from",
                      "value": "<dateTime>"
                    },
                    {
                      "description": "(Required) ",
                      "key": "to",
                      "value": "<dateTime>"
                    },
                    {
                      "key": "granularity",
                      "value": "1h"
                    }
                  ]
                }
              },
              "status": "Bad Request",
              "code": 400,
              "_postman_previewlanguage": "text",
              "header": [],
              "cookie": [],
              "responseTime": null,
              "body": null,
              "createdAt": "2026-07-28T01:20:39.000Z",
              "updatedAt": "2026-07-28T01:20:39.000Z",
              "uid": "35240-d7e70c6e-e75c-4f74-a401-6153afb10eb6"
            },
            {
              "id": "1958661f-bb96-4d2d-ae3e-aa2a36803aa4",
              "name": "Unauthorized.",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "description": "Added as a part of security scheme: bearer",
                    "key": "Authorization",
                    "value": "Bearer <token>"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/latency?orgId=<string>&apiId=<string>&from=<dateTime>&to=<dateTime>&granularity=1h",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "latency"
                  ],
                  "query": [
                    {
                      "description": "(Required) Organization identifier.",
                      "key": "orgId",
                      "value": "<string>"
                    },
                    {
                      "description": "Filter by specific API identifier.",
                      "key": "apiId",
                      "value": "<string>"
                    },
                    {
                      "description": "(Required) ",
                      "key": "from",
                      "value": "<dateTime>"
                    },
                    {
                      "description": "(Required) ",
                      "key": "to",
                      "value": "<dateTime>"
                    },
                    {
                      "key": "granularity",
                      "value": "1h"
                    }
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "text",
              "header": [],
              "cookie": [],
              "responseTime": null,
              "body": null,
              "createdAt": "2026-07-28T01:20:39.000Z",
              "updatedAt": "2026-07-28T01:20:39.000Z",
              "uid": "35240-1958661f-bb96-4d2d-ae3e-aa2a36803aa4"
            }
          ],
          "createdAt": "2026-07-28T01:20:39.000Z",
          "updatedAt": "2026-07-28T01:20:39.000Z",
          "uid": "35240-befb263c-9d20-4c50-82bf-158984a9e24b"
        }
      ],
      "id": "b5e6737e-10c0-4555-9fe5-74b163ec52b0",
      "createdAt": "2026-07-28T01:20:39.000Z",
      "updatedAt": "2026-07-28T01:20:39.000Z",
      "uid": "35240-b5e6737e-10c0-4555-9fe5-74b163ec52b0"
    }
  ],
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{bearerToken}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://console.choreo.dev/api/v1"
    }
  ]
}