{
  "info": {
    "_postman_id": "a455b317-1811-4e1a-a8de-60010a85faec",
    "name": "Choreo API Management Alerts Errors 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:37.000Z",
    "updatedAt": "2026-07-28T01:20:38.000Z",
    "lastUpdatedBy": "35240",
    "uid": "35240-a455b317-1811-4e1a-a8de-60010a85faec"
  },
  "item": [
    {
      "name": "errors",
      "item": [
        {
          "name": "Choreo Get API error analytics",
          "id": "49506c5d-ab80-4a28-8347-3d63eb406b6b",
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          },
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/errors?orgId=<string>&apiId=<string>&from=<dateTime>&to=<dateTime>&granularity=1h",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "errors"
              ],
              "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 error analytics including error counts by status code, error categories, and error trends over time."
          },
          "response": [
            {
              "id": "a0cff87c-5141-4f28-9fe4-005bdc457632",
              "name": "Successful response with error analytics.",
              "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}}/errors?orgId=<string>&apiId=<string>&from=<dateTime>&to=<dateTime>&granularity=1h",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "errors"
                  ],
                  "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  \"totalErrors\": \"<integer>\",\n  \"errorsByStatusCode\": [\n    {\n      \"statusCode\": \"<integer>\",\n      \"count\": \"<integer>\"\n    },\n    {\n      \"statusCode\": \"<integer>\",\n      \"count\": \"<integer>\"\n    }\n  ],\n  \"errorsByCategory\": [\n    {\n      \"category\": \"Throttling\",\n      \"count\": \"<integer>\"\n    },\n    {\n      \"category\": \"Backend\",\n      \"count\": \"<integer>\"\n    }\n  ],\n  \"timeSeries\": [\n    {\n      \"timestamp\": \"<dateTime>\",\n      \"errors\": \"<integer>\"\n    },\n    {\n      \"timestamp\": \"<dateTime>\",\n      \"errors\": \"<integer>\"\n    }\n  ]\n}",
              "createdAt": "2026-07-28T01:20:38.000Z",
              "updatedAt": "2026-07-28T01:20:38.000Z",
              "uid": "35240-a0cff87c-5141-4f28-9fe4-005bdc457632"
            },
            {
              "id": "d26a5e5c-a99e-490e-ad74-0304431e7930",
              "name": "Bad request.",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "description": "Added as a part of security scheme: bearer",
                    "key": "Authorization",
                    "value": "Bearer <token>"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/errors?orgId=<string>&apiId=<string>&from=<dateTime>&to=<dateTime>&granularity=1h",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "errors"
                  ],
                  "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:38.000Z",
              "updatedAt": "2026-07-28T01:20:38.000Z",
              "uid": "35240-d26a5e5c-a99e-490e-ad74-0304431e7930"
            },
            {
              "id": "70a3825a-244f-4d11-a565-e5f1271bc64f",
              "name": "Unauthorized.",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "description": "Added as a part of security scheme: bearer",
                    "key": "Authorization",
                    "value": "Bearer <token>"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/errors?orgId=<string>&apiId=<string>&from=<dateTime>&to=<dateTime>&granularity=1h",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "errors"
                  ],
                  "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:38.000Z",
              "updatedAt": "2026-07-28T01:20:38.000Z",
              "uid": "35240-70a3825a-244f-4d11-a565-e5f1271bc64f"
            }
          ],
          "createdAt": "2026-07-28T01:20:38.000Z",
          "updatedAt": "2026-07-28T01:20:38.000Z",
          "uid": "35240-49506c5d-ab80-4a28-8347-3d63eb406b6b"
        }
      ],
      "id": "3c9cc1b3-20f6-450f-847d-10258986ca2e",
      "createdAt": "2026-07-28T01:20:38.000Z",
      "updatedAt": "2026-07-28T01:20:38.000Z",
      "uid": "35240-3c9cc1b3-20f6-450f-847d-10258986ca2e"
    }
  ],
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{bearerToken}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://console.choreo.dev/api/v1"
    }
  ]
}