{
  "info": {
    "name": "UmamiAI Platform API",
    "_postman_id": "umamiai-platform-api",
    "description": "UmamiAI Platform API integration collection (v1). Uses Bearer API key (umami_...).",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "item": [
    {
      "name": "Agent Runs",
      "item": [
        {
          "name": "Create Agent Run",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}/api/v1/agent-runs",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "v1",
                "agent-runs"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"org_id\": \"{{org_id}}\",\n  \"agent_version_id\": \"{{agent_version_id}}\",\n  \"input\": \"Hello from Postman\"\n}"
            }
          },
          "response": []
        },
        {
          "name": "Get Agent Run",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/api/v1/agent-runs/{{run_id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "v1",
                "agent-runs",
                "{{run_id}}"
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Knowledge",
      "item": [
        {
          "name": "Search Knowledge",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}/api/v1/knowledge/search",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "v1",
                "knowledge",
                "search"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"org_id\": \"{{org_id}}\",\n  \"query\": \"What changed in the last release?\",\n  \"match_count\": 6\n}"
            }
          },
          "response": []
        }
      ]
    }
  ]
}