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
| Tool | What it does |
|---|---|
churn_summary | Cancellations, interviews finished, MRR lost and reasons ranked. |
list_cancellations | Recent cancellations with reason, theme, quote and win-back likelihood. Filter by reason or status. |
get_cancellation | One customer in full, including the transcript. |
roadmap | Themes ranked by monthly revenue lost, with status and quotes. |
ask_debrief | A question answered from your interviews, with sources. |
add_cancellation | Records 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.
| Endpoint | Description |
|---|---|
GET /stats | Totals, reasons and the 8-week trend. |
GET /debriefs | Cancellations, newest first (up to 500). |
GET /debriefs/:id | One cancellation with its transcript. |
POST /debriefs | Add a cancellation and send the interview. Body: email, optional name, plan, mrr (dollars), feedback. |
POST /debriefs/:id/resend | Send the interview invite again. |
DELETE /debriefs/:id | Delete a customer and their transcript. |
GET /roadmap | Themes ranked by MRR lost. |
PUT /roadmap/status | Body: theme, status (open, planned, shipped). |
POST /ask | Body: question. Returns answer, sources. |
GET /export.csv | Everything 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.