# Sendlane — how to use (mcp.ai)

Connect your Sendlane account and use 6 tools for marketing automation straight from your AI agent. Connect with your own API key. Sendlane is a cloud-based marketing automation platform that helps eCommerce businesses engage customers through personalized email and SMS campaigns.

## Option A — via MCP (recommended)
Remote MCP endpoint (HTTP, streamable): `https://api.mcp.ai/p_sendlane?ms=1787293500000`
Add it as a custom/remote MCP connector in your client (Claude, Cursor, VS Code…), then authenticate when prompted. Once connected, ask the agent to use the server's tools (e.g. `sendlane_get_campaigns`).

## Option B — via direct REST API
Base URL: `https://api.mcp.ai/api/sendlane`
Auth: `Authorization: Bearer sk_live_…` — create a workspace API key at https://mcp.ai/settings/api-keys
Discover endpoints: `GET https://api.mcp.ai/api/sendlane/_endpoints`

### Endpoints
- `POST https://api.mcp.ai/api/sendlane/get/campaigns` — Tool to retrieve a list of email campaigns. Use when you need to fetch all campaigns with optional pagination.
  - body: { page?: integer, per_page?: integer }
- `POST https://api.mcp.ai/api/sendlane/get/custom/fields` — Retrieve a list of all custom fields in your Sendlane account. Custom fields allow you to store additional contact information beyond the standard fields. Use this tool to discover available custom fi
  - body: { page?: integer, per_page?: integer }
- `POST https://api.mcp.ai/api/sendlane/get/lists` — Tool to retrieve all mailing lists. Use when you need to fetch or display all available contact lists with optional pagination.
  - body: { page?: integer, per_page?: integer }
- `POST https://api.mcp.ai/api/sendlane/list/delete` — Tool to delete a mailing list. Use when you need to remove an unwanted list after confirming its list_id.
  - body: { list_id: integer }
- `POST https://api.mcp.ai/api/sendlane/post/list` — Tool to create a new list. Use when you need to add a brand-new mailing list before sending campaigns.
  - body: { name: string }
- `POST https://api.mcp.ai/api/sendlane/tag/create` — Tool to create a new tag. Use when you need to segment subscribers using labels.
  - body: { name: string }

## Example prompts
- "What can I do in Sendlane?"
- "Show me a summary of my Sendlane account"

## More
- Page: https://mcp.ai/sendlane
- Agent spec (llms.txt): https://mcp.ai/sendlane/llms.txt
- Postman collection: https://mcp.ai/sendlane/postman.json
