# Charla — how to use (mcp.ai)

Connect your Charla account and use 9 tools for communication straight from your AI agent. Connect with your own API key. Charla is a live chat and AI customer-support platform whose public API manages property contacts, conversation exports, and knowledge base articles and categories.

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

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

### Endpoints
- `POST https://api.mcp.ai/api/charla/create/kb/article` — Create a knowledge base article. Charla generates its URL slug from the title and may use it for chatbot training according to the property's AI settings. Defaults to a private draft.
  - body: { title?: string, status?: string, visibility?: string, description?: string, category_ids: integer[], content_html?: string }
- `POST https://api.mcp.ai/api/charla/delete/kb/article` — Permanently delete one knowledge base article by ID. This cannot be undone, and deleting an already-missing article fails.
  - body: { article_id: integer }
- `POST https://api.mcp.ai/api/charla/get/contact` — Return one contact in the connected Charla property by UUID.
  - body: { contact_id: string }
- `POST https://api.mcp.ai/api/charla/get/kb/article` — Return the full content and metadata of one knowledge base article by ID.
  - body: { article_id: integer }
- `POST https://api.mcp.ai/api/charla/list/contacts` — Return one page of contacts for the connected Charla property, ordered by most recently modified.
  - body: { cursor?: string }
- `POST https://api.mcp.ai/api/charla/list/conversations` — Export one page of conversations grouped by contact for the connected Charla property, including message history.
  - body: { cursor?: string }
- `POST https://api.mcp.ai/api/charla/list/kb/articles` — Return one page of knowledge base article summaries for the connected Charla property, newest first.
  - body: { cursor?: string }
- `POST https://api.mcp.ai/api/charla/list/kb/categories` — Return all knowledge base categories available in the connected Charla property.
- `POST https://api.mcp.ai/api/charla/update/kb/article` — Replace every writable field of an existing knowledge base article. Charla regenerates the URL slug from the replacement title and may retrain chatbot content according to the property's AI settings.
  - body: { title: string, status: string, article_id: integer, visibility: string, description: string, category_ids: integer[], content_html: string }

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

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