Widget config

GET /api/widget/config

Returns public site configuration (providers, prompts, theme) for a valid PUBLIC_KEY. Cached for 60 seconds.

curl "https://continuewith.ai//api/widget/config?key=PUBLIC_KEY"

404 when the key is unknown. Used by /widget/v1.js on every page load.

Events

POST /api/events

Ingests handoff analytics from the browser widget. CORS enabled. Rate limited per IP and per site key.

Accepted eventType values: widget_opened, prompt_selected, provider_clicked.

{
  "publicKey": "cw_your_public_key",
  "eventType": "provider_clicked",
  "provider": "chatgpt",
  "promptLabel": "Summarize",
  "pageUrl": "https://example.com/docs/install",
  "referrer": "https://example.com/"
}
  • provider_clicked requires provider (one of the six supported assistants).
  • prompt_selected and provider_clicked require promptLabel.
  • pageUrl must be a valid http(s) URL. Domain must match the site allowlist.

Health

GET /health and /health/deep

Lightweight liveness vs deep check (database, Stripe, Clerk, demo config).

curl "https://continuewith.ai//health"
curl "https://continuewith.ai//health/deep"

Agent discoverability

Machine-readable docs

Agents should start at /llms.txt and /llms-full.txt. MCP tools live in /docs/agents/mcp.

Roadmap

Authenticated export (Enterprise)

Webhooks and a read-only analytics API for BI pipelines are planned for Enterprise. Today, export handoff events as CSV from the dashboard Analytics tab (Free and Pro).

Before you install

Handled upfront

Lightweight script

Async ~22KB gzipped. No cookies. Zero LLM calls on your infrastructure.

Better than copy-paste

URL, title and prompts travel with one click — fewer drop-offs before the assistant opens.

Three analytics events

widget_opened, prompt_selected and provider_clicked show up in your dashboard funnel.

GDPR-friendly

Event metadata only — not conversations. See the security model for details.

Security · Privacy · Pricing

Build

Need webhook or BI export?

CSV export is available today from the dashboard. Enterprise adds API access on the roadmap.