leadconnector_list_campaigns
Pack: leadconnector · Endpoint: https://gateway.pipeworx.io/leadconnector/mcp
List marketing/automation campaigns in the account. Returns a {campaigns:[…]} envelope with campaign IDs, names, and status. Useful for finding a campaign to attribute or enroll contacts.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
_apiKey | string | yes | GoHighLevel/LeadConnector v1 Location API key (Settings → Business Profile → API Key). NOT a v2 Private Integration Token (pit- prefixed). |
Example call
Arguments
{
"_apiKey": "your-leadconnector-api-key"
}
curl
curl -X POST https://gateway.pipeworx.io/leadconnector/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"leadconnector_list_campaigns","arguments":{"_apiKey":"your-leadconnector-api-key"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('leadconnector_list_campaigns', {
"_apiKey": "your-leadconnector-api-key"
});
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"leadconnector": {
"url": "https://gateway.pipeworx.io/leadconnector/mcp"
}
}
}
See Getting Started for client-specific install steps.