{
  "info": {
    "name": "Segmetrics — mcp.ai",
    "description": "REST API for the Segmetrics 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/segmetrics",
      "type": "string"
    },
    {
      "key": "apiKey",
      "value": "sk_live_...",
      "type": "string"
    }
  ],
  "item": [
    {
      "name": "segmetrics_create_product",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/create/product",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "create",
            "product"
          ]
        },
        "description": "Tool to create a new product in SegMetrics. Use after confirming product details.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"type\": \"\",\n  \"price\": 0,\n  \"account_id\": \"\",\n  \"description\": \"\",\n  \"external_id\": \"\",\n  \"integration_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "segmetrics_delete_contact",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/delete/contact",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "delete",
            "contact"
          ]
        },
        "description": "Tool to permanently delete a specific contact by ID or email from SegMetrics. Use after confirming the contact exists. This action is irreversible. Note: Associated invoices and purchases remain in th",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"account_id\": \"\",\n  \"integration_id\": \"\",\n  \"contact_id_or_email\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "segmetrics_v1_add_or_update_contact",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/v1/add/or/update/contact",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "v1",
            "add",
            "or",
            "update",
            "contact"
          ]
        },
        "description": "Tool to add or update a contact in SegMetrics. Use when you need to upsert the contact record during data import.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"email\": \"\",\n  \"status\": \"\",\n  \"utm_term\": \"\",\n  \"last_name\": \"\",\n  \"account_id\": \"\",\n  \"contact_id\": \"\",\n  \"first_name\": \"\",\n  \"utm_medium\": \"\",\n  \"utm_source\": \"\",\n  \"utm_content\": \"\",\n  \"date_created\": \"\",\n  \"last_updated\": \"\",\n  \"utm_campaign\": \"\",\n  \"integration_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    }
  ]
}