# Userlist — how to use (mcp.ai)

Connect your Userlist account and use 2 tools for marketing automation straight from your AI agent. Connect with your own API key. Userlist is a full-stack email automation platform designed for SaaS companies, enabling targeted behavior-based campaigns through email and in-app messages.

## Option A — via MCP (recommended)
Remote MCP endpoint (HTTP, streamable): `https://api.mcp.ai/p_userlist?ms=1787295720000`
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. `userlist_delete_company`).

## Option B — via direct REST API
Base URL: `https://api.mcp.ai/api/userlist`
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/userlist/_endpoints`

### Endpoints
- `POST https://api.mcp.ai/api/userlist/delete/company` — Tool to delete a company from Userlist. Use when you need to remove a company by its unique identifier after verifying it.
  - body: { identifier: string }
- `POST https://api.mcp.ai/api/userlist/push/relationship` — Tool to create or update a relationship between a user and a company in Userlist. Use after confirming valid user and company identifiers.
  - body: { data?: object, user: string, company: string, timestamp?: string, relationship?: string }

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

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