{
  "info": {
    "name": "Segment — mcp.ai",
    "description": "REST API for the Segment 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/segment",
      "type": "string"
    },
    {
      "key": "apiKey",
      "value": "sk_live_...",
      "type": "string"
    }
  ],
  "item": [
    {
      "name": "segment_add_labels_to_source",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/add/labels/to/source",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "add",
            "labels",
            "to",
            "source"
          ]
        },
        "description": "Tool to add existing labels to a Source. Use when you have the source ID and want to tag it with metadata labels.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"labels\": \"\",\n  \"sourceId\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "segment_alias",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/alias",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "alias"
          ]
        },
        "description": "Tool to alias a previous user ID to a new user ID. Use when merging anonymous and known identities.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"userId\": \"\",\n  \"context\": {},\n  \"timestamp\": \"\",\n  \"previousId\": \"\",\n  \"anonymousId\": \"\",\n  \"integrations\": {}\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "segment_batch",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/batch",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "batch"
          ]
        },
        "description": "Tool to send multiple analytics calls in a single batch request. Use when you want to reduce HTTP overhead by batching Identify/Track/Page/Screen/Group calls into one request.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"batch\": \"\",\n  \"context\": {},\n  \"writeKey\": \"\",\n  \"integrations\": {}\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "segment_delete_source",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/delete/source",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "delete",
            "source"
          ]
        },
        "description": "Tool to delete a Segment Source. Use when you need to permanently remove a Source by its ID after confirmation.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"sourceId\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "segment_get_daily_per_source_api_calls_usage",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/daily/per/source/api/calls/usage",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "daily",
            "per",
            "source",
            "api",
            "calls",
            "usage"
          ]
        },
        "description": "Tool to fetch daily API call counts per source for a given period. Use when you need daily breakdown of API usage by source after determining the reporting period.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"period\": \"\",\n  \"pagination\": {}\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "segment_get_destination",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/destination",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "destination"
          ]
        },
        "description": "Tool to retrieve a Destination by ID. Use when you need to fetch the full configuration of a Segment Destination instance by its unique identifier. Falls back US→EU public API and legacy app endpoint;",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"destinationId\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "segment_group",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/group",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "group"
          ]
        },
        "description": "Tool to associate an identified user with a group via Segment HTTP Tracking API. Use when grouping users with traits.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"traits\": {},\n  \"userId\": \"\",\n  \"context\": {},\n  \"groupId\": \"\",\n  \"writeKey\": \"\",\n  \"timestamp\": \"\",\n  \"anonymousId\": \"\",\n  \"integrations\": {}\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "segment_identify",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/identify",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "identify"
          ]
        },
        "description": "Tool to identify a user and set/update traits via Segment HTTP Tracking API.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"traits\": {},\n  \"userId\": \"\",\n  \"context\": {},\n  \"writeKey\": \"\",\n  \"messageId\": \"\",\n  \"timestamp\": \"\",\n  \"anonymousId\": \"\",\n  \"integrations\": {}\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "segment_import_historical_data",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/import/historical/data",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "import",
            "historical",
            "data"
          ]
        },
        "description": "Tool to import historical data in bulk with support for historical timestamps. Use when you need to backfill or import past events with their original timestamps into Segment.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"batch\": \"\",\n  \"context\": {},\n  \"integrations\": {}\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "segment_list_connected_warehouses_from_source",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/list/connected/warehouses/from/source",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "list",
            "connected",
            "warehouses",
            "from",
            "source"
          ]
        },
        "description": "Tool to list warehouses connected to a Source. Use when you need to retrieve warehouses for a given source ID.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"sourceId\": \"\",\n  \"pagination\": {}\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "segment_list_delivery_metrics_summary_from_destination",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/list/delivery/metrics/summary/from/destination",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "list",
            "delivery",
            "metrics",
            "summary",
            "from",
            "destination"
          ]
        },
        "description": "Get an event delivery metrics summary from a Destination. Primary attempt uses Segment Public API; fallback to legacy app host if needed. On HTML fallback responses, returns a minimal valid envelope t",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"endTime\": \"\",\n  \"sourceId\": \"\",\n  \"startTime\": \"\",\n  \"granularity\": \"\",\n  \"destinationId\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "segment_list_schema_settings_in_source",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/list/schema/settings/in/source",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "list",
            "schema",
            "settings",
            "in",
            "source"
          ]
        },
        "description": "Retrieve schema configuration settings for a Source.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"sourceId\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "segment_page",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/page",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "page"
          ]
        },
        "description": "Tool to record a page view via Segment HTTP Tracking API. Use when sending page views with optional page name and properties.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"name\": \"\",\n  \"userId\": \"\",\n  \"context\": {},\n  \"writeKey\": \"\",\n  \"messageId\": \"\",\n  \"timestamp\": \"\",\n  \"properties\": {},\n  \"anonymousId\": \"\",\n  \"integrations\": {}\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "segment_remove_source_write_key",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/remove/source/write/key",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "remove",
            "source",
            "write",
            "key"
          ]
        },
        "description": "Tool to remove a write key from a Source. Use when you need to revoke an existing write key for security or rotation.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"sourceId\": \"\",\n  \"writeKey\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "segment_screen",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/screen",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "screen"
          ]
        },
        "description": "Tool to record a mobile app screen view. Use when tracking screen views in a mobile app via Segment HTTP Tracking API.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"name\": \"\",\n  \"userId\": \"\",\n  \"context\": {},\n  \"writeKey\": \"\",\n  \"timestamp\": \"\",\n  \"properties\": {},\n  \"anonymousId\": \"\",\n  \"integrations\": {}\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "segment_track",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/track",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "track"
          ]
        },
        "description": "Tool to record a custom user event via Segment HTTP Tracking API. Use when sending events to Segment with valid identity.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"event\": \"\",\n  \"userId\": \"\",\n  \"context\": {},\n  \"writeKey\": \"\",\n  \"timestamp\": \"\",\n  \"properties\": {},\n  \"anonymousId\": \"\",\n  \"integrations\": {}\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "segment_update_source",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/update/source",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "update",
            "source"
          ]
        },
        "description": "Tool to update a Source's metadata and settings. Use when you need to modify an existing Source after confirming its ID.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"name\": \"\",\n  \"slug\": \"\",\n  \"enabled\": false,\n  \"settings\": {},\n  \"sourceId\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    }
  ]
}