{
  "info": {
    "_postman_id": "86406a00-b0b1-4edc-8da0-dcd44bace3bc",
    "name": "Amigo Account Metrics API",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "createdAt": "2026-07-28T01:01:35.000Z",
    "updatedAt": "2026-07-28T01:01:35.000Z",
    "lastUpdatedBy": "35240",
    "uid": "35240-86406a00-b0b1-4edc-8da0-dcd44bace3bc"
  },
  "item": [
    {
      "name": "v1",
      "item": [
        {
          "name": "{workspace_id}",
          "item": [
            {
              "name": "metrics",
              "item": [
                {
                  "name": "catalog",
                  "item": [
                    {
                      "name": "List available metrics (builtin + custom)",
                      "id": "6d6aff55-87e9-4888-b64b-bb6cafaba1e5",
                      "protocolProfileBehavior": {
                        "disableBodyPruning": true
                      },
                      "request": {
                        "method": "GET",
                        "header": [
                          {
                            "key": "Accept",
                            "value": "application/json"
                          }
                        ],
                        "url": {
                          "raw": "{{baseUrl}}/v1/:workspace_id/metrics/catalog",
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "path": [
                            "v1",
                            ":workspace_id",
                            "metrics",
                            "catalog"
                          ],
                          "variable": [
                            {
                              "id": "ccefd890-2f5e-42eb-92d4-56d96aec43d1",
                              "key": "workspace_id",
                              "value": "<uuid>",
                              "description": "(Required) "
                            }
                          ]
                        },
                        "description": "List all available metrics (builtin + custom defined on workspace).\n\nPermissions: authenticated (any role)."
                      },
                      "response": [
                        {
                          "id": "37dd15dc-301d-42cd-95ee-10ad4d74ba0b",
                          "name": "Successful Response",
                          "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}}/v1/:workspace_id/metrics/catalog",
                              "host": [
                                "{{baseUrl}}"
                              ],
                              "path": [
                                "v1",
                                ":workspace_id",
                                "metrics",
                                "catalog"
                              ],
                              "variable": [
                                {
                                  "key": "workspace_id"
                                }
                              ]
                            }
                          },
                          "status": "OK",
                          "code": 200,
                          "_postman_previewlanguage": "json",
                          "header": [
                            {
                              "key": "Content-Type",
                              "value": "application/json"
                            }
                          ],
                          "cookie": [],
                          "responseTime": null,
                          "body": "{\n  \"metrics\": [\n    {\n      \"key\": \"bjy74wg2\",\n      \"name\": \"<string>\",\n      \"metric_type\": \"boolean\",\n      \"source\": \"surface_events\",\n      \"builtin\": \"<boolean>\",\n      \"description\": \"<string>\",\n      \"custom_source_key\": \"enixlmnz1o\",\n      \"extraction_mode\": \"static\",\n      \"granularity\": \"aggregate\",\n      \"period_granularity\": \"daily\",\n      \"latency_tier\": \"batch\",\n      \"model_tier\": \"free\",\n      \"unit\": \"<string>\",\n      \"has_prompt\": false\n    },\n    {\n      \"key\": \"tcq92\",\n      \"name\": \"<string>\",\n      \"metric_type\": \"boolean\",\n      \"source\": \"connector_events\",\n      \"builtin\": \"<boolean>\",\n      \"description\": \"<string>\",\n      \"custom_source_key\": \"n\",\n      \"extraction_mode\": \"static\",\n      \"granularity\": \"aggregate\",\n      \"period_granularity\": \"daily\",\n      \"latency_tier\": \"batch\",\n      \"model_tier\": \"free\",\n      \"unit\": \"<string>\",\n      \"has_prompt\": false\n    }\n  ]\n}",
                          "createdAt": "2026-07-28T01:01:35.000Z",
                          "updatedAt": "2026-07-28T01:01:35.000Z",
                          "uid": "35240-37dd15dc-301d-42cd-95ee-10ad4d74ba0b"
                        },
                        {
                          "id": "39f8ab62-4e70-492e-ae5b-c67c5a2592da",
                          "name": "Rate limited",
                          "originalRequest": {
                            "method": "GET",
                            "header": [
                              {
                                "description": "Added as a part of security scheme: bearer",
                                "key": "Authorization",
                                "value": "Bearer <token>"
                              }
                            ],
                            "url": {
                              "raw": "{{baseUrl}}/v1/:workspace_id/metrics/catalog",
                              "host": [
                                "{{baseUrl}}"
                              ],
                              "path": [
                                "v1",
                                ":workspace_id",
                                "metrics",
                                "catalog"
                              ],
                              "variable": [
                                {
                                  "key": "workspace_id"
                                }
                              ]
                            }
                          },
                          "status": "Too Many Requests",
                          "code": 429,
                          "_postman_previewlanguage": "text",
                          "header": [],
                          "cookie": [],
                          "responseTime": null,
                          "body": null,
                          "createdAt": "2026-07-28T01:01:35.000Z",
                          "updatedAt": "2026-07-28T01:01:35.000Z",
                          "uid": "35240-39f8ab62-4e70-492e-ae5b-c67c5a2592da"
                        }
                      ],
                      "createdAt": "2026-07-28T01:01:35.000Z",
                      "updatedAt": "2026-07-28T01:01:35.000Z",
                      "uid": "35240-6d6aff55-87e9-4888-b64b-bb6cafaba1e5"
                    }
                  ],
                  "id": "7094c36b-e12f-4403-a7c0-d90ff5d4c2e6",
                  "createdAt": "2026-07-28T01:01:35.000Z",
                  "updatedAt": "2026-07-28T01:01:35.000Z",
                  "uid": "35240-7094c36b-e12f-4403-a7c0-d90ff5d4c2e6"
                },
                {
                  "name": "{metric_key}",
                  "item": [
                    {
                      "name": "trend",
                      "item": [
                        {
                          "name": "Get time-series trend for a metric",
                          "id": "ad5f7c8d-0c5d-47be-9ef4-7f907d5577f0",
                          "protocolProfileBehavior": {
                            "disableBodyPruning": true
                          },
                          "request": {
                            "method": "GET",
                            "header": [
                              {
                                "key": "Accept",
                                "value": "application/json"
                              }
                            ],
                            "url": {
                              "raw": "{{baseUrl}}/v1/:workspace_id/metrics/:metric_key/trend?source=production&scope=aggregate&entity_type=<string>&entity_id=<string>&service_id=<string>&run_id=<string>&session_id=<string>&days=30",
                              "host": [
                                "{{baseUrl}}"
                              ],
                              "path": [
                                "v1",
                                ":workspace_id",
                                "metrics",
                                ":metric_key",
                                "trend"
                              ],
                              "query": [
                                {
                                  "key": "source",
                                  "value": "production"
                                },
                                {
                                  "key": "scope",
                                  "value": "aggregate"
                                },
                                {
                                  "key": "entity_type",
                                  "value": "<string>"
                                },
                                {
                                  "key": "entity_id",
                                  "value": "<string>"
                                },
                                {
                                  "key": "service_id",
                                  "value": "<string>"
                                },
                                {
                                  "key": "run_id",
                                  "value": "<string>"
                                },
                                {
                                  "key": "session_id",
                                  "value": "<string>"
                                },
                                {
                                  "key": "days",
                                  "value": "30"
                                }
                              ],
                              "variable": [
                                {
                                  "id": "5c358fca-f171-4f3b-a3af-b9746a8e4358",
                                  "key": "workspace_id",
                                  "value": "<uuid>",
                                  "description": "(Required) "
                                },
                                {
                                  "id": "602f5014-e2ee-4295-ba98-0a0d121e336f",
                                  "key": "metric_key",
                                  "value": "h2bji0z",
                                  "description": "(Required) Metric key (lowercase alphanumeric + underscores)"
                                }
                              ]
                            },
                            "description": "Get time-series trend for a specific metric.\n\nPermissions: authenticated (any role)."
                          },
                          "response": [
                            {
                              "id": "82d9bd5d-69bc-4309-9887-cc4c75ed4a4a",
                              "name": "Successful Response",
                              "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}}/v1/:workspace_id/metrics/:metric_key/trend?source=production&scope=aggregate&entity_type=<string>&entity_id=<string>&service_id=<string>&run_id=<string>&session_id=<string>&days=30",
                                  "host": [
                                    "{{baseUrl}}"
                                  ],
                                  "path": [
                                    "v1",
                                    ":workspace_id",
                                    "metrics",
                                    ":metric_key",
                                    "trend"
                                  ],
                                  "query": [
                                    {
                                      "key": "source",
                                      "value": "production"
                                    },
                                    {
                                      "key": "scope",
                                      "value": "aggregate"
                                    },
                                    {
                                      "key": "entity_type",
                                      "value": "<string>"
                                    },
                                    {
                                      "key": "entity_id",
                                      "value": "<string>"
                                    },
                                    {
                                      "key": "service_id",
                                      "value": "<string>"
                                    },
                                    {
                                      "key": "run_id",
                                      "value": "<string>"
                                    },
                                    {
                                      "key": "session_id",
                                      "value": "<string>"
                                    },
                                    {
                                      "key": "days",
                                      "value": "30"
                                    }
                                  ],
                                  "variable": [
                                    {
                                      "key": "workspace_id"
                                    },
                                    {
                                      "key": "metric_key"
                                    }
                                  ]
                                }
                              },
                              "status": "OK",
                              "code": 200,
                              "_postman_previewlanguage": "json",
                              "header": [
                                {
                                  "key": "Content-Type",
                                  "value": "application/json"
                                }
                              ],
                              "cookie": [],
                              "responseTime": null,
                              "body": "{\n  \"metrics\": [\n    {\n      \"metric_key\": \"<string>\",\n      \"period_start\": \"<dateTime>\",\n      \"period_end\": \"<dateTime>\",\n      \"event_count\": \"<integer>\",\n      \"metric_type\": \"<string>\",\n      \"value\": \"<number>\",\n      \"source\": \"production\",\n      \"entity_type\": \"<string>\",\n      \"entity_id\": \"<string>\",\n      \"service_id\": \"<string>\",\n      \"run_id\": \"<string>\",\n      \"session_id\": \"<string>\",\n      \"avg_confidence\": \"<number>\",\n      \"unit\": \"<string>\",\n      \"computed_at\": \"<dateTime>\"\n    },\n    {\n      \"metric_key\": \"<string>\",\n      \"period_start\": \"<dateTime>\",\n      \"period_end\": \"<dateTime>\",\n      \"event_count\": \"<integer>\",\n      \"metric_type\": \"<string>\",\n      \"value\": \"<number>\",\n      \"source\": \"production\",\n      \"entity_type\": \"<string>\",\n      \"entity_id\": \"<string>\",\n      \"service_id\": \"<string>\",\n      \"run_id\": \"<string>\",\n      \"session_id\": \"<string>\",\n      \"avg_confidence\": \"<number>\",\n      \"unit\": \"<string>\",\n      \"computed_at\": \"<dateTime>\"\n    }\n  ]\n}",
                              "createdAt": "2026-07-28T01:01:35.000Z",
                              "updatedAt": "2026-07-28T01:01:35.000Z",
                              "uid": "35240-82d9bd5d-69bc-4309-9887-cc4c75ed4a4a"
                            },
                            {
                              "id": "a0279412-1795-4111-958c-cda279c16a99",
                              "name": "Validation Error",
                              "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}}/v1/:workspace_id/metrics/:metric_key/trend?source=production&scope=aggregate&entity_type=<string>&entity_id=<string>&service_id=<string>&run_id=<string>&session_id=<string>&days=30",
                                  "host": [
                                    "{{baseUrl}}"
                                  ],
                                  "path": [
                                    "v1",
                                    ":workspace_id",
                                    "metrics",
                                    ":metric_key",
                                    "trend"
                                  ],
                                  "query": [
                                    {
                                      "key": "source",
                                      "value": "production"
                                    },
                                    {
                                      "key": "scope",
                                      "value": "aggregate"
                                    },
                                    {
                                      "key": "entity_type",
                                      "value": "<string>"
                                    },
                                    {
                                      "key": "entity_id",
                                      "value": "<string>"
                                    },
                                    {
                                      "key": "service_id",
                                      "value": "<string>"
                                    },
                                    {
                                      "key": "run_id",
                                      "value": "<string>"
                                    },
                                    {
                                      "key": "session_id",
                                      "value": "<string>"
                                    },
                                    {
                                      "key": "days",
                                      "value": "30"
                                    }
                                  ],
                                  "variable": [
                                    {
                                      "key": "workspace_id"
                                    },
                                    {
                                      "key": "metric_key"
                                    }
                                  ]
                                }
                              },
                              "status": "Unprocessable Entity (WebDAV) (RFC 4918)",
                              "code": 422,
                              "_postman_previewlanguage": "json",
                              "header": [
                                {
                                  "key": "Content-Type",
                                  "value": "application/json"
                                }
                              ],
                              "cookie": [],
                              "responseTime": null,
                              "body": "{\n  \"detail\": [\n    {\n      \"loc\": [\n        \"<string>\",\n        \"<string>\"\n      ],\n      \"msg\": \"<string>\",\n      \"type\": \"<string>\",\n      \"input\": {\n        \"title\": \"Input\"\n      },\n      \"ctx\": {}\n    },\n    {\n      \"loc\": [\n        \"<string>\",\n        \"<string>\"\n      ],\n      \"msg\": \"<string>\",\n      \"type\": \"<string>\",\n      \"input\": {\n        \"title\": \"Input\"\n      },\n      \"ctx\": {}\n    }\n  ]\n}",
                              "createdAt": "2026-07-28T01:01:35.000Z",
                              "updatedAt": "2026-07-28T01:01:35.000Z",
                              "uid": "35240-a0279412-1795-4111-958c-cda279c16a99"
                            },
                            {
                              "id": "10718aaf-0de3-4a37-9c46-edf6a2f3d58c",
                              "name": "Rate limited",
                              "originalRequest": {
                                "method": "GET",
                                "header": [
                                  {
                                    "description": "Added as a part of security scheme: bearer",
                                    "key": "Authorization",
                                    "value": "Bearer <token>"
                                  }
                                ],
                                "url": {
                                  "raw": "{{baseUrl}}/v1/:workspace_id/metrics/:metric_key/trend?source=production&scope=aggregate&entity_type=<string>&entity_id=<string>&service_id=<string>&run_id=<string>&session_id=<string>&days=30",
                                  "host": [
                                    "{{baseUrl}}"
                                  ],
                                  "path": [
                                    "v1",
                                    ":workspace_id",
                                    "metrics",
                                    ":metric_key",
                                    "trend"
                                  ],
                                  "query": [
                                    {
                                      "key": "source",
                                      "value": "production"
                                    },
                                    {
                                      "key": "scope",
                                      "value": "aggregate"
                                    },
                                    {
                                      "key": "entity_type",
                                      "value": "<string>"
                                    },
                                    {
                                      "key": "entity_id",
                                      "value": "<string>"
                                    },
                                    {
                                      "key": "service_id",
                                      "value": "<string>"
                                    },
                                    {
                                      "key": "run_id",
                                      "value": "<string>"
                                    },
                                    {
                                      "key": "session_id",
                                      "value": "<string>"
                                    },
                                    {
                                      "key": "days",
                                      "value": "30"
                                    }
                                  ],
                                  "variable": [
                                    {
                                      "key": "workspace_id"
                                    },
                                    {
                                      "key": "metric_key"
                                    }
                                  ]
                                }
                              },
                              "status": "Too Many Requests",
                              "code": 429,
                              "_postman_previewlanguage": "text",
                              "header": [],
                              "cookie": [],
                              "responseTime": null,
                              "body": null,
                              "createdAt": "2026-07-28T01:01:35.000Z",
                              "updatedAt": "2026-07-28T01:01:35.000Z",
                              "uid": "35240-10718aaf-0de3-4a37-9c46-edf6a2f3d58c"
                            }
                          ],
                          "createdAt": "2026-07-28T01:01:35.000Z",
                          "updatedAt": "2026-07-28T01:01:35.000Z",
                          "uid": "35240-ad5f7c8d-0c5d-47be-9ef4-7f907d5577f0"
                        }
                      ],
                      "id": "ffd7a10b-5111-4ec0-a678-3d6e15ece504",
                      "createdAt": "2026-07-28T01:01:35.000Z",
                      "updatedAt": "2026-07-28T01:01:35.000Z",
                      "uid": "35240-ffd7a10b-5111-4ec0-a678-3d6e15ece504"
                    },
                    {
                      "name": "Get values for a specific metric",
                      "id": "ed1bed9e-69b7-44e7-b646-6551d90e9a0d",
                      "protocolProfileBehavior": {
                        "disableBodyPruning": true
                      },
                      "request": {
                        "method": "GET",
                        "header": [
                          {
                            "key": "Accept",
                            "value": "application/json"
                          }
                        ],
                        "url": {
                          "raw": "{{baseUrl}}/v1/:workspace_id/metrics/:metric_key?source=production&scope=aggregate&entity_type=<string>&entity_id=<string>&service_id=<string>&run_id=<string>&session_id=<string>&date_from=<dateTime>&date_to=<dateTime>&limit=90",
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "path": [
                            "v1",
                            ":workspace_id",
                            "metrics",
                            ":metric_key"
                          ],
                          "query": [
                            {
                              "key": "source",
                              "value": "production"
                            },
                            {
                              "key": "scope",
                              "value": "aggregate"
                            },
                            {
                              "key": "entity_type",
                              "value": "<string>"
                            },
                            {
                              "key": "entity_id",
                              "value": "<string>"
                            },
                            {
                              "key": "service_id",
                              "value": "<string>"
                            },
                            {
                              "key": "run_id",
                              "value": "<string>"
                            },
                            {
                              "key": "session_id",
                              "value": "<string>"
                            },
                            {
                              "key": "date_from",
                              "value": "<dateTime>"
                            },
                            {
                              "key": "date_to",
                              "value": "<dateTime>"
                            },
                            {
                              "key": "limit",
                              "value": "90"
                            }
                          ],
                          "variable": [
                            {
                              "id": "ce0cc7b2-58b2-40e2-8985-98dc77d6b543",
                              "key": "workspace_id",
                              "value": "<uuid>",
                              "description": "(Required) "
                            },
                            {
                              "id": "08e39b80-19c8-4cf2-9084-f94cc037e623",
                              "key": "metric_key",
                              "value": "h2bji0z",
                              "description": "(Required) Metric key (lowercase alphanumeric + underscores)"
                            }
                          ]
                        },
                        "description": "Get values for a specific metric with optional time range.\n\nPermissions: authenticated (any role)."
                      },
                      "response": [
                        {
                          "id": "5a4a9858-b44a-4d3e-bf02-63a6ac84d81d",
                          "name": "Successful Response",
                          "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}}/v1/:workspace_id/metrics/:metric_key?source=production&scope=aggregate&entity_type=<string>&entity_id=<string>&service_id=<string>&run_id=<string>&session_id=<string>&date_from=<dateTime>&date_to=<dateTime>&limit=90",
                              "host": [
                                "{{baseUrl}}"
                              ],
                              "path": [
                                "v1",
                                ":workspace_id",
                                "metrics",
                                ":metric_key"
                              ],
                              "query": [
                                {
                                  "key": "source",
                                  "value": "production"
                                },
                                {
                                  "key": "scope",
                                  "value": "aggregate"
                                },
                                {
                                  "key": "entity_type",
                                  "value": "<string>"
                                },
                                {
                                  "key": "entity_id",
                                  "value": "<string>"
                                },
                                {
                                  "key": "service_id",
                                  "value": "<string>"
                                },
                                {
                                  "key": "run_id",
                                  "value": "<string>"
                                },
                                {
                                  "key": "session_id",
                                  "value": "<string>"
                                },
                                {
                                  "key": "date_from",
                                  "value": "<dateTime>"
                                },
                                {
                                  "key": "date_to",
                                  "value": "<dateTime>"
                                },
                                {
                                  "key": "limit",
                                  "value": "90"
                                }
                              ],
                              "variable": [
                                {
                                  "key": "workspace_id"
                                },
                                {
                                  "key": "metric_key"
                                }
                              ]
                            }
                          },
                          "status": "OK",
                          "code": 200,
                          "_postman_previewlanguage": "json",
                          "header": [
                            {
                              "key": "Content-Type",
                              "value": "application/json"
                            }
                          ],
                          "cookie": [],
                          "responseTime": null,
                          "body": "{\n  \"metrics\": [\n    {\n      \"metric_key\": \"<string>\",\n      \"period_start\": \"<dateTime>\",\n      \"period_end\": \"<dateTime>\",\n      \"event_count\": \"<integer>\",\n      \"metric_type\": \"<string>\",\n      \"value\": \"<number>\",\n      \"source\": \"production\",\n      \"entity_type\": \"<string>\",\n      \"entity_id\": \"<string>\",\n      \"service_id\": \"<string>\",\n      \"run_id\": \"<string>\",\n      \"session_id\": \"<string>\",\n      \"avg_confidence\": \"<number>\",\n      \"unit\": \"<string>\",\n      \"computed_at\": \"<dateTime>\"\n    },\n    {\n      \"metric_key\": \"<string>\",\n      \"period_start\": \"<dateTime>\",\n      \"period_end\": \"<dateTime>\",\n      \"event_count\": \"<integer>\",\n      \"metric_type\": \"<string>\",\n      \"value\": \"<number>\",\n      \"source\": \"production\",\n      \"entity_type\": \"<string>\",\n      \"entity_id\": \"<string>\",\n      \"service_id\": \"<string>\",\n      \"run_id\": \"<string>\",\n      \"session_id\": \"<string>\",\n      \"avg_confidence\": \"<number>\",\n      \"unit\": \"<string>\",\n      \"computed_at\": \"<dateTime>\"\n    }\n  ]\n}",
                          "createdAt": "2026-07-28T01:01:35.000Z",
                          "updatedAt": "2026-07-28T01:01:35.000Z",
                          "uid": "35240-5a4a9858-b44a-4d3e-bf02-63a6ac84d81d"
                        },
                        {
                          "id": "e273ec5d-df60-41b7-bbd9-808deb39dcf6",
                          "name": "Validation Error",
                          "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}}/v1/:workspace_id/metrics/:metric_key?source=production&scope=aggregate&entity_type=<string>&entity_id=<string>&service_id=<string>&run_id=<string>&session_id=<string>&date_from=<dateTime>&date_to=<dateTime>&limit=90",
                              "host": [
                                "{{baseUrl}}"
                              ],
                              "path": [
                                "v1",
                                ":workspace_id",
                                "metrics",
                                ":metric_key"
                              ],
                              "query": [
                                {
                                  "key": "source",
                                  "value": "production"
                                },
                                {
                                  "key": "scope",
                                  "value": "aggregate"
                                },
                                {
                                  "key": "entity_type",
                                  "value": "<string>"
                                },
                                {
                                  "key": "entity_id",
                                  "value": "<string>"
                                },
                                {
                                  "key": "service_id",
                                  "value": "<string>"
                                },
                                {
                                  "key": "run_id",
                                  "value": "<string>"
                                },
                                {
                                  "key": "session_id",
                                  "value": "<string>"
                                },
                                {
                                  "key": "date_from",
                                  "value": "<dateTime>"
                                },
                                {
                                  "key": "date_to",
                                  "value": "<dateTime>"
                                },
                                {
                                  "key": "limit",
                                  "value": "90"
                                }
                              ],
                              "variable": [
                                {
                                  "key": "workspace_id"
                                },
                                {
                                  "key": "metric_key"
                                }
                              ]
                            }
                          },
                          "status": "Unprocessable Entity (WebDAV) (RFC 4918)",
                          "code": 422,
                          "_postman_previewlanguage": "json",
                          "header": [
                            {
                              "key": "Content-Type",
                              "value": "application/json"
                            }
                          ],
                          "cookie": [],
                          "responseTime": null,
                          "body": "{\n  \"detail\": [\n    {\n      \"loc\": [\n        \"<string>\",\n        \"<string>\"\n      ],\n      \"msg\": \"<string>\",\n      \"type\": \"<string>\",\n      \"input\": {\n        \"title\": \"Input\"\n      },\n      \"ctx\": {}\n    },\n    {\n      \"loc\": [\n        \"<string>\",\n        \"<string>\"\n      ],\n      \"msg\": \"<string>\",\n      \"type\": \"<string>\",\n      \"input\": {\n        \"title\": \"Input\"\n      },\n      \"ctx\": {}\n    }\n  ]\n}",
                          "createdAt": "2026-07-28T01:01:35.000Z",
                          "updatedAt": "2026-07-28T01:01:35.000Z",
                          "uid": "35240-e273ec5d-df60-41b7-bbd9-808deb39dcf6"
                        },
                        {
                          "id": "1ea4c9d8-5ed7-4deb-ba35-d46546090475",
                          "name": "Rate limited",
                          "originalRequest": {
                            "method": "GET",
                            "header": [
                              {
                                "description": "Added as a part of security scheme: bearer",
                                "key": "Authorization",
                                "value": "Bearer <token>"
                              }
                            ],
                            "url": {
                              "raw": "{{baseUrl}}/v1/:workspace_id/metrics/:metric_key?source=production&scope=aggregate&entity_type=<string>&entity_id=<string>&service_id=<string>&run_id=<string>&session_id=<string>&date_from=<dateTime>&date_to=<dateTime>&limit=90",
                              "host": [
                                "{{baseUrl}}"
                              ],
                              "path": [
                                "v1",
                                ":workspace_id",
                                "metrics",
                                ":metric_key"
                              ],
                              "query": [
                                {
                                  "key": "source",
                                  "value": "production"
                                },
                                {
                                  "key": "scope",
                                  "value": "aggregate"
                                },
                                {
                                  "key": "entity_type",
                                  "value": "<string>"
                                },
                                {
                                  "key": "entity_id",
                                  "value": "<string>"
                                },
                                {
                                  "key": "service_id",
                                  "value": "<string>"
                                },
                                {
                                  "key": "run_id",
                                  "value": "<string>"
                                },
                                {
                                  "key": "session_id",
                                  "value": "<string>"
                                },
                                {
                                  "key": "date_from",
                                  "value": "<dateTime>"
                                },
                                {
                                  "key": "date_to",
                                  "value": "<dateTime>"
                                },
                                {
                                  "key": "limit",
                                  "value": "90"
                                }
                              ],
                              "variable": [
                                {
                                  "key": "workspace_id"
                                },
                                {
                                  "key": "metric_key"
                                }
                              ]
                            }
                          },
                          "status": "Too Many Requests",
                          "code": 429,
                          "_postman_previewlanguage": "text",
                          "header": [],
                          "cookie": [],
                          "responseTime": null,
                          "body": null,
                          "createdAt": "2026-07-28T01:01:35.000Z",
                          "updatedAt": "2026-07-28T01:01:35.000Z",
                          "uid": "35240-1ea4c9d8-5ed7-4deb-ba35-d46546090475"
                        }
                      ],
                      "createdAt": "2026-07-28T01:01:35.000Z",
                      "updatedAt": "2026-07-28T01:01:35.000Z",
                      "uid": "35240-ed1bed9e-69b7-44e7-b646-6551d90e9a0d"
                    }
                  ],
                  "id": "5655047b-4fe4-4903-83f4-ae2dc092121a",
                  "createdAt": "2026-07-28T01:01:35.000Z",
                  "updatedAt": "2026-07-28T01:01:35.000Z",
                  "uid": "35240-5655047b-4fe4-4903-83f4-ae2dc092121a"
                },
                {
                  "name": "List latest metric values",
                  "id": "cb08a4de-6c8f-415a-a67e-b1b51dae3444",
                  "protocolProfileBehavior": {
                    "disableBodyPruning": true
                  },
                  "request": {
                    "method": "GET",
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/v1/:workspace_id/metrics?source=production&scope=aggregate&entity_type=<string>&entity_id=<string>&service_id=<string>&run_id=<string>&session_id=<string>&limit=100&offset=0",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "v1",
                        ":workspace_id",
                        "metrics"
                      ],
                      "query": [
                        {
                          "key": "source",
                          "value": "production"
                        },
                        {
                          "key": "scope",
                          "value": "aggregate"
                        },
                        {
                          "key": "entity_type",
                          "value": "<string>"
                        },
                        {
                          "key": "entity_id",
                          "value": "<string>"
                        },
                        {
                          "key": "service_id",
                          "value": "<string>"
                        },
                        {
                          "key": "run_id",
                          "value": "<string>"
                        },
                        {
                          "key": "session_id",
                          "value": "<string>"
                        },
                        {
                          "key": "limit",
                          "value": "100"
                        },
                        {
                          "key": "offset",
                          "value": "0"
                        }
                      ],
                      "variable": [
                        {
                          "id": "9aadf874-00e9-418f-b351-880983dcf216",
                          "key": "workspace_id",
                          "value": "<uuid>",
                          "description": "(Required) "
                        }
                      ]
                    },
                    "description": "List the latest value for each metric in the workspace.\n\nPermissions: authenticated (any role)."
                  },
                  "response": [
                    {
                      "id": "f7dfe3f6-4da9-4f13-a710-c94daf40fa53",
                      "name": "Successful Response",
                      "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}}/v1/:workspace_id/metrics?source=production&scope=aggregate&entity_type=<string>&entity_id=<string>&service_id=<string>&run_id=<string>&session_id=<string>&limit=100&offset=0",
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "path": [
                            "v1",
                            ":workspace_id",
                            "metrics"
                          ],
                          "query": [
                            {
                              "key": "source",
                              "value": "production"
                            },
                            {
                              "key": "scope",
                              "value": "aggregate"
                            },
                            {
                              "key": "entity_type",
                              "value": "<string>"
                            },
                            {
                              "key": "entity_id",
                              "value": "<string>"
                            },
                            {
                              "key": "service_id",
                              "value": "<string>"
                            },
                            {
                              "key": "run_id",
                              "value": "<string>"
                            },
                            {
                              "key": "session_id",
                              "value": "<string>"
                            },
                            {
                              "key": "limit",
                              "value": "100"
                            },
                            {
                              "key": "offset",
                              "value": "0"
                            }
                          ],
                          "variable": [
                            {
                              "key": "workspace_id"
                            }
                          ]
                        }
                      },
                      "status": "OK",
                      "code": 200,
                      "_postman_previewlanguage": "json",
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "cookie": [],
                      "responseTime": null,
                      "body": "{\n  \"metrics\": [\n    {\n      \"metric_key\": \"<string>\",\n      \"period_start\": \"<dateTime>\",\n      \"period_end\": \"<dateTime>\",\n      \"event_count\": \"<integer>\",\n      \"metric_type\": \"<string>\",\n      \"value\": \"<number>\",\n      \"source\": \"production\",\n      \"entity_type\": \"<string>\",\n      \"entity_id\": \"<string>\",\n      \"service_id\": \"<string>\",\n      \"run_id\": \"<string>\",\n      \"session_id\": \"<string>\",\n      \"avg_confidence\": \"<number>\",\n      \"unit\": \"<string>\",\n      \"computed_at\": \"<dateTime>\"\n    },\n    {\n      \"metric_key\": \"<string>\",\n      \"period_start\": \"<dateTime>\",\n      \"period_end\": \"<dateTime>\",\n      \"event_count\": \"<integer>\",\n      \"metric_type\": \"<string>\",\n      \"value\": \"<number>\",\n      \"source\": \"production\",\n      \"entity_type\": \"<string>\",\n      \"entity_id\": \"<string>\",\n      \"service_id\": \"<string>\",\n      \"run_id\": \"<string>\",\n      \"session_id\": \"<string>\",\n      \"avg_confidence\": \"<number>\",\n      \"unit\": \"<string>\",\n      \"computed_at\": \"<dateTime>\"\n    }\n  ]\n}",
                      "createdAt": "2026-07-28T01:01:35.000Z",
                      "updatedAt": "2026-07-28T01:01:35.000Z",
                      "uid": "35240-f7dfe3f6-4da9-4f13-a710-c94daf40fa53"
                    },
                    {
                      "id": "7eed86c0-cd99-4721-a72e-6f38c1632df5",
                      "name": "Validation Error",
                      "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}}/v1/:workspace_id/metrics?source=production&scope=aggregate&entity_type=<string>&entity_id=<string>&service_id=<string>&run_id=<string>&session_id=<string>&limit=100&offset=0",
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "path": [
                            "v1",
                            ":workspace_id",
                            "metrics"
                          ],
                          "query": [
                            {
                              "key": "source",
                              "value": "production"
                            },
                            {
                              "key": "scope",
                              "value": "aggregate"
                            },
                            {
                              "key": "entity_type",
                              "value": "<string>"
                            },
                            {
                              "key": "entity_id",
                              "value": "<string>"
                            },
                            {
                              "key": "service_id",
                              "value": "<string>"
                            },
                            {
                              "key": "run_id",
                              "value": "<string>"
                            },
                            {
                              "key": "session_id",
                              "value": "<string>"
                            },
                            {
                              "key": "limit",
                              "value": "100"
                            },
                            {
                              "key": "offset",
                              "value": "0"
                            }
                          ],
                          "variable": [
                            {
                              "key": "workspace_id"
                            }
                          ]
                        }
                      },
                      "status": "Unprocessable Entity (WebDAV) (RFC 4918)",
                      "code": 422,
                      "_postman_previewlanguage": "json",
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "cookie": [],
                      "responseTime": null,
                      "body": "{\n  \"detail\": [\n    {\n      \"loc\": [\n        \"<string>\",\n        \"<string>\"\n      ],\n      \"msg\": \"<string>\",\n      \"type\": \"<string>\",\n      \"input\": {\n        \"title\": \"Input\"\n      },\n      \"ctx\": {}\n    },\n    {\n      \"loc\": [\n        \"<string>\",\n        \"<string>\"\n      ],\n      \"msg\": \"<string>\",\n      \"type\": \"<string>\",\n      \"input\": {\n        \"title\": \"Input\"\n      },\n      \"ctx\": {}\n    }\n  ]\n}",
                      "createdAt": "2026-07-28T01:01:35.000Z",
                      "updatedAt": "2026-07-28T01:01:35.000Z",
                      "uid": "35240-7eed86c0-cd99-4721-a72e-6f38c1632df5"
                    },
                    {
                      "id": "9b11fd65-b4a4-4b08-b6d1-35d8554a081e",
                      "name": "Rate limited",
                      "originalRequest": {
                        "method": "GET",
                        "header": [
                          {
                            "description": "Added as a part of security scheme: bearer",
                            "key": "Authorization",
                            "value": "Bearer <token>"
                          }
                        ],
                        "url": {
                          "raw": "{{baseUrl}}/v1/:workspace_id/metrics?source=production&scope=aggregate&entity_type=<string>&entity_id=<string>&service_id=<string>&run_id=<string>&session_id=<string>&limit=100&offset=0",
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "path": [
                            "v1",
                            ":workspace_id",
                            "metrics"
                          ],
                          "query": [
                            {
                              "key": "source",
                              "value": "production"
                            },
                            {
                              "key": "scope",
                              "value": "aggregate"
                            },
                            {
                              "key": "entity_type",
                              "value": "<string>"
                            },
                            {
                              "key": "entity_id",
                              "value": "<string>"
                            },
                            {
                              "key": "service_id",
                              "value": "<string>"
                            },
                            {
                              "key": "run_id",
                              "value": "<string>"
                            },
                            {
                              "key": "session_id",
                              "value": "<string>"
                            },
                            {
                              "key": "limit",
                              "value": "100"
                            },
                            {
                              "key": "offset",
                              "value": "0"
                            }
                          ],
                          "variable": [
                            {
                              "key": "workspace_id"
                            }
                          ]
                        }
                      },
                      "status": "Too Many Requests",
                      "code": 429,
                      "_postman_previewlanguage": "text",
                      "header": [],
                      "cookie": [],
                      "responseTime": null,
                      "body": null,
                      "createdAt": "2026-07-28T01:01:35.000Z",
                      "updatedAt": "2026-07-28T01:01:35.000Z",
                      "uid": "35240-9b11fd65-b4a4-4b08-b6d1-35d8554a081e"
                    }
                  ],
                  "createdAt": "2026-07-28T01:01:35.000Z",
                  "updatedAt": "2026-07-28T01:01:35.000Z",
                  "uid": "35240-cb08a4de-6c8f-415a-a67e-b1b51dae3444"
                }
              ],
              "id": "72152708-cba7-4685-861e-51a18d6c41b2",
              "createdAt": "2026-07-28T01:01:35.000Z",
              "updatedAt": "2026-07-28T01:01:35.000Z",
              "uid": "35240-72152708-cba7-4685-861e-51a18d6c41b2"
            }
          ],
          "id": "18758423-dcde-428f-8c97-c47d6c5ca57b",
          "createdAt": "2026-07-28T01:01:35.000Z",
          "updatedAt": "2026-07-28T01:01:35.000Z",
          "uid": "35240-18758423-dcde-428f-8c97-c47d6c5ca57b"
        }
      ],
      "id": "a19e42ea-27eb-4e8e-b9b5-e7713fc435d8",
      "createdAt": "2026-07-28T01:01:35.000Z",
      "updatedAt": "2026-07-28T01:01:35.000Z",
      "uid": "35240-a19e42ea-27eb-4e8e-b9b5-e7713fc435d8"
    }
  ],
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{bearerToken}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.amigo.ai"
    }
  ]
}