Developers

Your churn, as an API.

An MCP server so Claude and other agents can answer "why are customers leaving?" from your real interviews, and a REST API for everything else.

API keys

Create a key in Settings → Developers. Keys start with dbk_, are shown once, and are stored only as a hash. Each key can read and write the workspace that created it. Revoke a key at any time and it stops working immediately.

Send it as a bearer token:

Authorization: Bearer dbk_your_key

Keep keys server-side. Anyone with a key can read your customers' names, emails and interview answers.

MCP server

Debrief speaks the Model Context Protocol over Streamable HTTP at /mcp on your Debrief address. Any MCP client that supports remote servers with headers can connect.

Claude Code

claude mcp add --transport http debrief https://YOUR-DEBRIEF-URL/mcp \
  --header "Authorization: Bearer dbk_your_key"

Running Debrief on your own machine? Use http://localhost:3000/mcp.

Cursor, Windsurf and other clients

{
  "mcpServers": {
    "debrief": {
      "url": "https://YOUR-DEBRIEF-URL/mcp",
      "headers": { "Authorization": "Bearer dbk_your_key" }
    }
  }
}

Try it

Ask your assistant things like "what should we build next?", "why did Team-plan customers leave this month?" or "who would come back if we shipped a Zapier integration?".

MCP tools

ToolWhat it does
churn_summaryCancellations, interviews finished, MRR lost and reasons ranked.
list_cancellationsRecent cancellations with reason, theme, quote and win-back likelihood. Filter by reason or status.
get_cancellationOne customer in full, including the transcript.
roadmapThemes ranked by monthly revenue lost, with status and quotes.
ask_debriefA question answered from your interviews, with sources.
add_cancellationRecords a cancellation and emails the customer an interview. Sends a real email.

REST API

Base URL: https://YOUR-DEBRIEF-URL/api/v1. Requests and responses are JSON. Money is in cents.

EndpointDescription
GET /statsTotals, reasons and the 8-week trend.
GET /debriefsCancellations, newest first (up to 500).
GET /debriefs/:idOne cancellation with its transcript.
POST /debriefsAdd a cancellation and send the interview. Body: email, optional name, plan, mrr (dollars), feedback.
POST /debriefs/:id/resendSend the interview invite again.
DELETE /debriefs/:idDelete a customer and their transcript.
GET /roadmapThemes ranked by MRR lost.
PUT /roadmap/statusBody: theme, status (open, planned, shipped).
POST /askBody: question. Returns answer, sources.
GET /export.csvEverything as CSV.

Example

curl https://YOUR-DEBRIEF-URL/api/v1/debriefs \
  -H "Authorization: Bearer dbk_your_key" \
  -H "Content-Type: application/json" \
  -d '{"email":"jane@acme.com","name":"Jane","plan":"Pro","mrr":49}'
{ "id": 42, "link": "https://YOUR-DEBRIEF-URL/i/…", "invite": { "status": "email", "error": null } }

Errors

Errors return a non-2xx status and { "error": "message" }. 401 means a missing, invalid or revoked key. 400 means a bad request body. 404 means the record doesn't exist in your workspace.