TrustPeaks

Developer docs

Connect your own systems to a TrustPeaks store: AI assistants over MCP, apps over the REST API, and CRMs through signed webhooks. Get an API key from the store admin (Admin, API & MCP). Each key only sees its own store.

1. MCP server

URL: /mcp - Streamable HTTP, stateless. Auth header: Authorization: Bearer tpk_...

Claude Desktop / Cursor / any client that supports mcp-remote:

{
  "mcpServers": {
    "trustpeaks": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "/mcp",
               "--header", "Authorization:Bearer ${TRUSTPEAKS_KEY}"],
      "env": { "TRUSTPEAKS_KEY": "tpk_your_key" }
    }
  }
}

n8n: use the "MCP Client Tool" node with endpoint /mcp, transport HTTP Streamable, and a Bearer auth credential with your key.

ToolWhat it does
get_store / update_storeRead or change name, greeting, knowledge, language, theme, limits, webhook URL
list_products / create_product / update_product / delete_productManage the catalog shown on screens and known by the avatar
list_leads / create_lead / update_leadRead and update leads (status: new, contacted, qualified, won, lost)
get_usageConversations and LiveAvatar credits vs limits
list_kiosksScreens online right now and whether a conversation is live
kiosk_sayThe live avatar says this exact text (banner if nobody is talking)
kiosk_show_productHighlight a product on screen and have the avatar present it
kiosk_noteHidden instruction for the live conversation (e.g. a flash offer)

2. REST API

Base URL /api/v1, header Authorization: Bearer tpk_..., JSON bodies. 120 requests per minute per IP.

GET /store - PATCH /storeStore settings
GET /products - POST /products - PATCH /products/:id - DELETE /products/:idCatalog
GET /leads?status=new&since=2026-11-01&limit=100 - POST /leads - PATCH /leads/:idLeads
GET /usageUsage
POST /kiosk/say {"text": "..."}Make the live avatar talk
curl -H "Authorization: Bearer tpk_your_key" /api/v1/leads?status=new

curl -X POST -H "Authorization: Bearer tpk_your_key" -H "Content-Type: application/json" \
  -d '{"name":"Running Sneakers","price":"$129","image_url":"https://..."}' \
  /api/v1/products

3. Webhooks

Set a webhook URL in the store admin. Events: lead.created, lead.updated. Each POST has headers X-TrustPeaks-Event and X-TrustPeaks-Signature = hex HMAC-SHA256 of the raw body with the store's webhook secret.

{ "event": "lead.created", "store": "demo-store", "at": "2026-11-15T19:00:00.000Z",
  "lead": { "id": "...", "name": "Ana", "email": "ana@example.com", "phone": "", "interest": "sneakers", "source": "kiosk", "status": "new" } }