{
  "info": {
    "name": "Msg91 — mcp.ai",
    "description": "REST API for the Msg91 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/msg91",
      "type": "string"
    },
    {
      "key": "apiKey",
      "value": "sk_live_...",
      "type": "string"
    }
  ],
  "item": [
    {
      "name": "msg91_create_user_events",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/create/user/events",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "create",
            "user",
            "events"
          ]
        },
        "description": "Create and track user events in MSG91 Segmento for customer behavior analysis and segmentation. Use this tool to record user actions and behaviors such as logins, purchases, page views, button clicks,",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"events\": \"\",\n  \"identifier\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "msg91_get_event_types",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/event/types",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "event",
            "types"
          ]
        },
        "description": "Retrieves all event types configured in MSG91 Segmento. Event types represent different user actions and behaviors that can be tracked (e.g., purchases, signups, page views). Use this action to discov",
        "body": {
          "mode": "raw",
          "raw": "{}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "msg91_get_failed_events",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/failed/events",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "failed",
            "events"
          ]
        },
        "description": "Retrieve failed user events from a MSG91 Segmento campaign. This tool fetches events that failed to process during campaign execution, helping you identify and debug issues such as validation errors, ",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"page\": 0,\n  \"limit\": 0,\n  \"end_date\": \"\",\n  \"start_date\": \"\",\n  \"campaign_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "msg91_list_campaigns",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/list/campaigns",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "list",
            "campaigns"
          ]
        },
        "description": "Tool to list all campaigns in Segmento. Use when you need to retrieve campaigns with pagination support.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"page\": 0,\n  \"limit\": 0\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "msg91_resend_otp",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/resend/otp",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "resend",
            "otp"
          ]
        },
        "description": "Resend OTP to the same mobile number via text message or voice call. Use when the original OTP was not received or expired, and the user needs a new code sent to the same number.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"mobile\": \"\",\n  \"retrytype\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "msg91_send_otp",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/send/otp",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "send",
            "otp"
          ]
        },
        "description": "Tool to send OTP (One-Time Password) to a mobile number using a pre-configured MSG91 template. Use when you need to verify user phone numbers for authentication, account registration, password reset, ",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"otp\": \"\",\n  \"mobile\": \"\",\n  \"userip\": \"\",\n  \"unicode\": 0,\n  \"invisible\": 0,\n  \"otp_expiry\": 0,\n  \"otp_length\": 0,\n  \"template_id\": \"\",\n  \"realTimeResponse\": 0\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "msg91_send_sms_v5",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/send/sms/v5",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "send",
            "sms",
            "v5"
          ]
        },
        "description": "Send SMS messages using pre-defined templates via MSG91 Flow API v5. Use when you need to send template-based SMS with dynamic variable substitution to single or multiple recipients. Templates must be",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"short_url\": \"\",\n  \"recipients\": \"\",\n  \"template_id\": \"\",\n  \"realTimeResponse\": \"\",\n  \"short_url_expiry\": 0\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "msg91_verify_otp",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/verify/otp",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "verify",
            "otp"
          ]
        },
        "description": "Tool to verify an OTP (One-Time Password) sent to a mobile number. Use when you need to confirm that the OTP code entered by the user matches the one sent via Send OTP API.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"otp\": \"\",\n  \"mobile\": \"\",\n  \"otp_expiry\": 0\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    }
  ]
}