# Wati — how to use (mcp.ai)

Connect your Wati account and use 5 tools for marketing automation straight from your AI agent. Connect with your own API key. Wati is a WhatsApp Business API platform that automates marketing, sales, service, and support.

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

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

### Endpoints
- `POST https://api.mcp.ai/api/wati/add/contact` — Tool to add a new contact in WATI. Use when registering a customer's WhatsApp number before sending messages.
  - body: { name?: string, customParams?: object[], whatsappNumber: string }
- `POST https://api.mcp.ai/api/wati/get/teams` — Tool to retrieve a list of teams from WATI. Use after authenticating when you need to enumerate all available teams.
- `POST https://api.mcp.ai/api/wati/send/session/message` — Tool to send a session message to a specified WhatsApp number. Use when you need to deliver a free-form text within an active 24-hour session window.
  - body: { messageText: string, whatsappNumber: string }
- `POST https://api.mcp.ai/api/wati/update/chat/status` — Update the status of a chat/conversation in WATI Team Inbox. This action allows you to change the status of a customer's chat to help manage ongoing conversations. Available statuses: - OPEN: Active, 
  - body: { ticket_status: string, whatsapp_number: string, channel_phone_number?: string }
- `POST https://api.mcp.ai/api/wati/update/contact/attributes` — Tool to update attributes of an existing contact. Use after confirming the contact exists and you need to modify its custom attributes.
  - body: { customParams?: object[], whatsappNumber: string }

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

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