# Zylvie — how to use (mcp.ai)

Connect your Zylvie account and use 4 tools for ecommerce straight from your AI agent. Connect with your own API key. High-converting cart software for solopreneurs to sell digital products and subscriptions.

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

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

### Endpoints
- `POST https://api.mcp.ai/api/zylvie/create/product` — Tool to create a new product. Use when you need to add a product with detailed custom options in Zylvie platform.
  - body: { url: string, tags?: string[], price: number|string, title: string, display: string, summary?: string, currency: string, interval?: string, subtitle?: string, categories?: string[], description?: string, productfiles?: string[], shipping_fee?: number|string, pricing_model: string, productimages?: string[], shipping_type?: string, interval_count?: integer, trial_period_days?: integer, collect_address_and_phone?: boolean }
- `POST https://api.mcp.ai/api/zylvie/get/authenticating/user` — Tool to retrieve information about the currently authenticated user. Use when you have a valid Bearer token and need to fetch the authenticated user's profile.
- `POST https://api.mcp.ai/api/zylvie/subscribe/webhook` — Tool to subscribe to a webhook event by creating a workflow object. Use when you need to set up webhook notifications for sale, lead, affiliate, subscription, or cancel events. If a workflow with the 
  - body: { trigger: string, webhook_url: string }
- `POST https://api.mcp.ai/api/zylvie/unsubscribe/webhook` — Tool to unsubscribe from a webhook by deleting the workflow object associated with the specified webhook URL. Use after confirming the webhook URL to remove.
  - body: { webhook_url: string }

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

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