{
  "info": {
    "name": "ActLoom API v1",
    "_postman_id": "f8ec5a93-9f64-45e0-bf7a-3fd6f7ce4cb8",
    "description": "Scoped API key collection for /api/v1 machine endpoints.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "item": [
    {
      "name": "AI Systems - List",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{apiKey}}"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/api/v1/ai-systems",
          "host": ["{{baseUrl}}"],
          "path": ["api", "v1", "ai-systems"]
        }
      }
    },
    {
      "name": "AI Systems - Create",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{apiKey}}"
          },
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"name\": \"Support Copilot\",\n  \"type\": \"chatbot\",\n  \"description\": \"Assists support agents with reply suggestions.\",\n  \"roles\": [\"deployer\"]\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/api/v1/ai-systems",
          "host": ["{{baseUrl}}"],
          "path": ["api", "v1", "ai-systems"]
        }
      }
    },
    {
      "name": "Incidents - List",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{apiKey}}"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/api/v1/incidents",
          "host": ["{{baseUrl}}"],
          "path": ["api", "v1", "incidents"]
        }
      }
    },
    {
      "name": "Incidents - Create",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{apiKey}}"
          },
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"aiSystemId\": \"{{aiSystemId}}\",\n  \"title\": \"Model outage\",\n  \"description\": \"Inference endpoint timeout impacted user requests.\",\n  \"severity\": \"serious\"\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/api/v1/incidents",
          "host": ["{{baseUrl}}"],
          "path": ["api", "v1", "incidents"]
        }
      }
    },
    {
      "name": "Reports - List",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{apiKey}}"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/api/v1/reports",
          "host": ["{{baseUrl}}"],
          "path": ["api", "v1", "reports"]
        }
      }
    },
    {
      "name": "Reports - Generate",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{apiKey}}"
          },
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"type\": \"assessment_report\",\n  \"aiSystemId\": \"{{aiSystemId}}\"\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/api/v1/reports/generate",
          "host": ["{{baseUrl}}"],
          "path": ["api", "v1", "reports", "generate"]
        }
      }
    }
  ],
  "variable": [
    {
      "key": "baseUrl",
      "value": "http://localhost:3000"
    },
    {
      "key": "apiKey",
      "value": "actloom_replace_me"
    },
    {
      "key": "aiSystemId",
      "value": "replace_with_ai_system_id"
    }
  ]
}
