{
  "info": {
    "name": "Simple Analytics — mcp.ai",
    "description": "REST API for the Simple Analytics MCP. Set {{apiKey}} to a workspace key (sk_live_…) created at https://mcp.ai/settings/api-keys.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{apiKey}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.mcp.ai/api/simple_analytics",
      "type": "string"
    },
    {
      "key": "apiKey",
      "value": "sk_live_...",
      "type": "string"
    }
  ],
  "item": [
    {
      "name": "simple_analytics_admin_api_list_websites",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/admin/api/list/websites",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "admin",
            "api",
            "list",
            "websites"
          ]
        },
        "description": "Tool to list all websites associated with the authenticated user. Use after authenticating an admin account to retrieve website list.",
        "body": {
          "mode": "raw",
          "raw": "{}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "simple_analytics_export_api_get_raw_data",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/export/api/get/raw/data",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "export",
            "api",
            "get",
            "raw",
            "data"
          ]
        },
        "description": "Tool to export raw data points (page views and events) for a specific website. Use when you need to download CSV or JSON exports of site traffic.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"fields\": \"\",\n  \"format\": \"\",\n  \"to_date\": \"\",\n  \"website\": \"\",\n  \"from_date\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "simple_analytics_get_aggregated_stats",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/aggregated/stats",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "aggregated",
            "stats"
          ]
        },
        "description": "Tool to retrieve aggregated statistics for a specified website. Use when you need an overview of key metrics like visitors, pageviews, bounce rate, and more.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"end\": \"\",\n  \"page\": \"\",\n  \"start\": \"\",\n  \"source\": \"\",\n  \"compare\": \"\",\n  \"website\": \"\",\n  \"referrer\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "simple_analytics_send_event",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/send/event",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "send",
            "event"
          ]
        },
        "description": "Tool to submit server-side events or pageviews to Simple Analytics. Use for mobile apps, backend tracking, or scenarios where JavaScript is not available. Supports custom metadata for enriched event d",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"ua\": \"\",\n  \"path\": \"\",\n  \"type\": \"\",\n  \"event\": \"\",\n  \"https\": false,\n  \"medium\": \"\",\n  \"source\": \"\",\n  \"unique\": false,\n  \"content\": \"\",\n  \"campaign\": \"\",\n  \"hostname\": \"\",\n  \"language\": \"\",\n  \"metadata\": {},\n  \"referrer\": \"\",\n  \"timezone\": \"\",\n  \"screen_width\": 0,\n  \"screen_height\": 0,\n  \"viewport_width\": 0,\n  \"viewport_height\": 0\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    }
  ]
}