Developers

ChatWith developer docs

Choose the ChatWith API for your own HTTPS calls or the MCP server for an AI client. Both use one JSON-RPC endpoint and a workspace API key.

Start here

Pick how you connect.

API reference

Every tool, with its arguments, what it returns and its errors, in cURL, JavaScript and Python.

Open the API reference

MCP server

Connect Claude, Cursor or any MCP client to manage assistants, knowledge, conversations and leads.

Connect a client

Authentication

Create a cw_live_ key and send it as a bearer token. The key decides the workspace, plan and role.

Authenticate requests

Quick start

Your first call in three steps.

  1. Create an API key. In the dashboard, open Settings and make a cw_live_ key. Authentication shows how to send it.
  2. Send your first request. Your code posts tools/call to one HTTPS endpoint, as on the right. The first request and the tool reference have every tool.
  3. Or connect an MCP client. Claude, Cursor or any client that speaks MCP: start with the endpoint, then see use cases.
Request
curl -sS -X POST 'https://www.chatwith.website/mcp' \
  -H 'Authorization: Bearer cw_live_...' \
  -H 'Content-Type: application/json' \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "ask_assistant",
      "arguments": {
        "assistant_id": "YOUR_ASSISTANT_ID",
        "message": "your message"
      }
    }
  }'
Response
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"conversation_id\":null,\"reply\":{\"content\":\"Illustrative reply from the assistant.\",\"status\":\"ok\"},\"sources\":[{\"title\":\"Pricing\",\"url\":\"https://example.com/pricing\"}]}"
      }
    ],
    "structuredContent": {
      "conversation_id": null,
      "reply": {
        "content": "Illustrative reply from the assistant.",
        "status": "ok"
      },
      "sources": [
        {
          "title": "Pricing",
          "url": "https://example.com/pricing"
        }
      ]
    }
  }
}

Guides

Build on it.

MCP use cases

Eight workflows on the tools, from answering from your docs to client workspaces.

See the workflows

Say what your tools return

Declare an outputSchema on your own MCP, so the chat can send users to the right page after a tool runs.

Add an outputSchema

Let your users use your MCP inside your app.

No outside AI subscription for them. One snippet for you.

Plans from $29 a month · Change or cancel anytime