Plush Assistant API

Connect your website, POS, CRM, Zapier or Make to your AI WhatsApp assistant.

1. Authentication

Create a key in Dashboard → Developers, then send it in every request:

curl https://plush-assistant.vercel.app/api/v1/me \
  -H "Authorization: Bearer pa_test_xxxxxxxx"
  • pa_test_… keys read real data, but writes are only checked: nothing is saved or sent. The response includes "test": true.
  • pa_live_… keys act on real data and message real customers.
  • Keys are read or read + write. Keep them secret: use them only from your server.
  • Limit: 120 requests per minute per key.

2. Endpoints

Base URL: https://plush-assistant.vercel.app/api/v1

GET/meYour business, plan, limits and usage
GET/contacts?q=&tag=&limit=&cursor=List or search customers
POST/contactsCreate or update a customer (by phone)
GET/contacts/{id}One customer, with their sales stage
GET/contacts/{id}/messagesA customer's message history
POST/messagesSend a WhatsApp text (within 24h) or template
GET/orders?status=List orders
GET/orders/{id}One order
PATCH/orders/{id}Change status, or mark paid with a receipt
GET/products?status=&sku=List products
POST/productsCreate or update a product (by sku)
GET/bookings?status=List bookings

Lists return { data, has_more, next_cursor }. Pass cursor=next_cursor to get the next page (max limit=100).

3. Examples

Add a customer (with marketing consent, so they can receive campaigns):

curl -X POST https://plush-assistant.vercel.app/api/v1/contacts \
  -H "Authorization: Bearer pa_live_xxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{"phone":"+254712345678","name":"Mary W.","email":"mary@example.com","tags":["vip"],"marketing_consent":true,"consent_source":"Website signup form"}'

Send a message (only within 24 hours of the customer's last message):

curl -X POST https://plush-assistant.vercel.app/api/v1/messages \
  -H "Authorization: Bearer pa_live_xxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{"to":"+254712345678","text":"Your order is ready for pickup 🎉"}'

Send an approved template (any time, unless they replied STOP):

curl -X POST https://plush-assistant.vercel.app/api/v1/messages \
  -H "Authorization: Bearer pa_live_xxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{"to":"+254712345678","template":{"name":"order_update","language":"en","variables":["Mary","K3D9QA","it is on the way"]}}'

Update an order (the customer is notified on WhatsApp):

curl -X PATCH https://plush-assistant.vercel.app/api/v1/orders/ORDER_ID \
  -H "Authorization: Bearer pa_live_xxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{"status":"out_for_delivery","notify":true}'

Sync a product and stock from your POS:

curl -X POST https://plush-assistant.vercel.app/api/v1/products \
  -H "Authorization: Bearer pa_live_xxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{"sku":"AUTO-1L","name":"AUTOSHINE Car wash 1 L","price_kes":450,"stock":40}'

4. Errors

{ "error": { "code": "outside_24h_window", "message": "WhatsApp only allows free text within 24 hours…" } }

Status codes: 400 bad JSON · 401 bad key · 402 account paused · 403 missing permission · 404 not found · 409 conflict · 422 invalid data · 429 too many requests · 502 WhatsApp rejected the message.

5. Webhooks

Add an https address in Dashboard → Developers → Webhooks. We POST JSON like this, usually within 2 minutes of the event:

{
  "id": "evt_1234",
  "type": "order.paid",
  "created_at": "2026-11-22T10:15:00Z",
  "livemode": true,
  "data": { "order": { "id": "…", "ref": "K3D9QA", "status": "paid", "total_kes": 2700, … } }
}

Events: message.received, conversation.started, conversation.handoff, order.created, order.paid, order.status_changed, booking.created, booking.cancelled, product.low_stock.

Reply with any 2xx status within 10 seconds. Otherwise we retry after 1, 5 and 30 minutes, then 2, 6 and 24 hours. The same event can arrive twice, so use id to ignore duplicates.

Check the signature (header Plush-Signature: t=…,v1=…) with your signing secret:

import crypto from "crypto";

// rawBody = the request body exactly as received (string)
export function isFromPlush(signatureHeader, rawBody, secret) {
  const parts = Object.fromEntries(signatureHeader.split(",").map((p) => p.split("=")));
  const expected = crypto.createHmac("sha256", secret).update(parts.t + "." + rawBody).digest("hex");
  const fresh = Math.abs(Date.now() / 1000 - Number(parts.t)) < 300; // within 5 minutes
  return fresh && expected.length === (parts.v1 || "").length &&
    crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(parts.v1));
}

6. Use with Claude (MCP)

Plush Assistant has an MCP server at https://plush-assistant.vercel.app/api/mcp (Streamable HTTP). Authenticate with the header Authorization: Bearer pa_live_…. Setup steps are in Dashboard → Developers.

Tools: get_business_overview, get_sales_summary, search_customers, get_customer, add_or_update_customer, send_whatsapp_message, list_orders, update_order_status, list_products, add_or_update_product, list_bookings.

Questions? Email us. See also Subprocessors and the Data Processing Agreement.