Laposta MCP server for AI agents

Live

API KEY

EMAIL MARKETING

Marketing

Laposta gives your agent email marketing in your Laposta account: create, schedule, and send campaigns, manage mailing lists, subscribers, fields, and segments, and read campaign reports and history.

  • Per-user credentials: each call uses the actual user's API key, never a shared bot.
  • Encrypted per-tenant vault: AES-256, resolved at request time, never in LLM context.
  • Scoped before every call: pre-call scope check, 90-day SIEM-exportable audit chain.
Laposta
agent · Acme Q3
Run
How did my April newsletter perform?
S
laposta_report_get
196ms
Email marketing agent
The April newsletter was sent to 5,200 subscribers, and 1,430 opened it and 310 clicked.
Sources: Laposta campaign report, 1 campaign
laposta
1 campaign
18:29
Message Claude...

Tools your email marketing agent reaches for on Laposta, scoped per user.

CALL ANY TOOL
46 tools for email marketing in Laposta: create, schedule, and send campaigns, manage lists, subscribers, fields, and segments, run automations, and read campaign reports and history.
laposta_automation_get
Get automation
Get one Laposta automation. Returns the automation object with automation_id, name, status, started count and dates. Use laposta_automations_list to find the ID.
Parameters
Name
Type
Required
Description
automation_id
string
Required
ID of the automation. Find it with laposta_automations_list. Example: pdq4k7wqcm.
laposta_automation_refresh
Refresh automation
laposta_automation_start
Start automation
laposta_automation_stop
Stop automation
laposta_automations_list
List automations
laposta_campaign_content_get
Get campaign content
laposta_campaign_content_update
Update campaign content
laposta_campaign_create
Create campaign
laposta_campaign_delete
Delete campaign
laposta_campaign_get
Get campaign
laposta_campaign_schedule
Campaign schedule
laposta_campaign_send
Send campaign
laposta_campaign_update
Update campaign
laposta_campaigns_list
List campaigns
laposta_field_create
Create field
laposta_field_delete
Delete field
laposta_field_get
Get field
laposta_list_create
Create list
laposta_list_get
Get list
laposta_list_members_sync
Sync list members
laposta_list_update
Update list
laposta_member_get
Get member
laposta_member_update
Update member
laposta_members_list
List members
laposta_report_get
Get report
laposta_segment_create
Create segment
laposta_segment_delete
Delete segment
laposta_segment_get
Get segment
laposta_segment_update
Update segment
laposta_segments_list
List segments

For more tools, view docs.

Build your Agent
Same auth pattern across LangChain, OpenAI, Anthropic, and Google ADK.
Python · LlamaIndex
import { ScalekitClient } from "@scalekit-sdk/node";
import { createReactAgent } from "@langchain/langgraph/prebuilt";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

// Laposta tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["laposta"], toolNames: [
    "laposta_campaign_create",
    "laposta_campaign_testmail",
    "laposta_campaign_schedule"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "Create a campaign for the Customers list, send a test email, and schedule it for Friday at 9:00" }] });
import OpenAI from "openai";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const openai = new OpenAI();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["laposta"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "Create a campaign for the Customers list, send a test email, and schedule it for Friday at 9:00" }],
  tools,
});

// Execute the tool call with the user's vaulted Laposta API key
await sk.tools.executeTool(res.choices[0].message.tool_calls[0], "user_123");
import Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const anthropic = new Anthropic();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["laposta"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Create a campaign for the Customers list, send a test email, and schedule it for Friday at 9:00" }],
  tools,
});

// Tool call runs with the user's vaulted Laposta API key
await sk.tools.executeTool(msg.content, "user_123");
import { Agent } from "@google/adk/agents";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["laposta"] }, pageSize: 100,
});

const agent = new Agent({
  name: "email_marketing_agent",
  model: "gemini-2.5-pro",
  instruction: "Laposta tools scoped to this user",
  tools,
});

await agent.run("Create a campaign for the Customers list, send a test email, and schedule it for Friday at 9:00");
Try these prompts
Copy any prompt into your agent. Each maps directly to a Laposta tool. Click to copy, paste into your agent, done.
Campaigns
Copy the prompt
Copied
Create a campaign for the Customers list with this subject.
Copy the prompt
Copied
Send a test email of this campaign.
Copy the prompt
Copied
Schedule this campaign for Friday at 9:00.
Lists and subscribers
Copy the prompt
Copied
Add jane@example.com to my Newsletter list.
Copy the prompt
Copied
Look up this subscriber and show their event history.
Copy the prompt
Copied
List the segments on my Newsletter list.
Reports and automations
Copy the prompt
Copied
Show the results of my latest campaign.
Copy the prompt
Copied
List my active automations.
Copy the prompt
Copied
Pause this automation.
SEE HOW AUTH WORKS
Each user connects their own Laposta API key once; Scalekit sends it with every call. Keys stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
Laposta
once. We tie it to their identity and the access they approved, with no shared bot account and no org-wide access
Who:
user ‘A’
when:
Once per user
access:
Limited to user
2
Store
Their
Laposta
credential lives in a vault scoped to them. User A's data is never reachable by an agent acting for user B, even on the same connection
vault:
encrypted
scope:
per-user
tenants:
isolated
3
Resolve
When your agent calls a
Laposta
tool, we fetch the right credential server-side. It never touches your agent, never appears in the LLM context, never shows up in your logs
speed:
~40ms
check:
before every call
seen by:
nobody
4
Audit
Every
Laposta
tool call is logged: who triggered it, which tool ran, what came back. 90 days of history, tied to the user who authorized it
history:
90 days
export:
SIEM-ready
logged:
every call
Test other agents
See the same per-user auth pattern across other marketing connectors.
GTM and RevOps Teams
CRM AI agent
Reads the Granola transcript after every call, extracts next steps and updates the HubSpot record, drafts the follow-up in Gmail, and confirms in Slack, all on the rep's own delegated OAuth.
Test other agents
See the same per-user auth pattern across other marketing connectors.
GTM
CRM AI agent
Turn each Granola call transcript into a HubSpot record update, a drafted Gmail follow-up, and a Slack recap.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared Laposta API key looks fine in a demo. In production every campaign send and subscriber change looks like one service account, and you cannot tell which user triggered it. Scalekit resolves the credential of the actual user who triggered the agent, never a shared bot.
// shared key
audit → bot_service_account

// scalekit
audit → user_abc ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
Laposta today. Ten connectors tomorrow.
“Our agents act across Salesforce, Gong, Google Drive, and more, on behalf of every customer. Scalekit behind the scenes meant we can keep adding tools without ever rebuilding how credentials or tool calling work.”
Venu Madhav Kattagoni
Head of Engineering / Von
FAQs
Frequently Asked Questions
Does the agent access Laposta as the user or through a shared API key?
As the user. Each user connects their own Laposta API key once, and Scalekit sends it with every call. Audit logs attribute every campaign send and subscriber change to that user, not a shared service account.
Where is the Laposta API key stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. To rotate it, the user reconnects with a new API key. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in Laposta?
Yes. Filter by tool name in listScopedTools to expose only what you want, for example the list, get, and report tools without laposta_campaign_send, laposta_list_delete, or laposta_list_members_purge. Scalekit also enforces scope checks before every API call.
What happens when a user revokes Laposta access?
The connection is invalidated on the next tool call. Subsequent requests for that user fail closed with a clear error. Other users in the tenant remain unaffected. The event is logged for audit.
Can the agent send a test before a campaign goes out?
Yes. laposta_campaign_testmail sends a test email of an unsent campaign that already has content, and laposta_campaign_schedule sets a later send time. laposta_campaign_send sends right away.
Start in your coding agent
Up and running in one command
Install the Scalekit skill in your editor of choice. Connector, auth, tools, prompt, all wired up
Claude Code REPL
/plugin marketplace add scalekit-inc/claude-code-authstack
/plugin install agentkit@scalekit-auth-stack
Cursor Code REPL
# ~/.cursor/mcp.json
{
""mcpServers"": {
""laposta"": {
""url"": ""https://mcp.scalekit.com/laposta"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.laposta]
url = ""https://mcp.scalekit.com/laposta""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""laposta"": {
""url"": ""https://mcp.scalekit.com/laposta"",
""type"": ""http""
}
}
}