klaviyo_get_campaign

Pack: klaviyo · Endpoint: https://gateway.pipeworx.io/klaviyo/mcp

Get a campaign’s full details by ID. Returns name, status, subject line, recipient list, performance stats, and send history.

Parameters

NameTypeRequiredDescription
_apiKeystringyesKlaviyo private API key
campaign_idstringyesKlaviyo campaign ID

Example call

Arguments

{
  "_apiKey": "your-klaviyo-api-key",
  "campaign_id": "01ARZ3NDEKTSV4RRFFQ69G5FAV"
}

curl

curl -X POST https://gateway.pipeworx.io/klaviyo/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"klaviyo_get_campaign","arguments":{"_apiKey":"your-klaviyo-api-key","campaign_id":"01ARZ3NDEKTSV4RRFFQ69G5FAV"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('klaviyo_get_campaign', {
  "_apiKey": "your-klaviyo-api-key",
  "campaign_id": "01ARZ3NDEKTSV4RRFFQ69G5FAV"
});

Response shape

FieldTypeDescription
dataobjectCampaign object
Full JSON Schema
{
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "description": "Campaign object",
      "properties": {
        "type": {
          "type": "string",
          "description": "Resource type (campaign)"
        },
        "id": {
          "type": "string",
          "description": "Campaign ID"
        },
        "attributes": {
          "type": "object",
          "description": "Campaign attributes",
          "properties": {
            "name": {
              "type": "string",
              "description": "Campaign name"
            },
            "status": {
              "type": "string",
              "description": "Campaign status"
            },
            "subject": {
              "type": "string",
              "description": "Email subject line"
            },
            "created_at": {
              "type": "string",
              "description": "Creation timestamp"
            },
            "scheduled_at": {
              "type": "string",
              "description": "Scheduled send time"
            },
            "sent_at": {
              "type": "string",
              "description": "Actual send time"
            },
            "recipient_list_id": {
              "type": "string",
              "description": "Target list ID"
            },
            "stats": {
              "type": "object",
              "description": "Performance metrics",
              "properties": {
                "sent": {
                  "type": "number",
                  "description": "Emails sent"
                },
                "opened": {
                  "type": "number",
                  "description": "Opens"
                },
                "clicked": {
                  "type": "number",
                  "description": "Clicks"
                },
                "unsubscribed": {
                  "type": "number",
                  "description": "Unsubscribes"
                },
                "bounced": {
                  "type": "number",
                  "description": "Bounces"
                }
              }
            }
          }
        }
      }
    }
  }
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "klaviyo": {
      "url": "https://gateway.pipeworx.io/klaviyo/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build May 9, 2026