Setup in Deck
Create widgets and publishable keys for the Feedback SDK.
Setup in Deck
You need two Deck resources before the SDK can submit feedback: a widget and a publishable key.
1. Create a feedback widget
- Open Manage → Widgets
- Click Create widget
- Give it a clear name (for example “Settings panel” or “AI message”)
- Copy the widget ID (
wgt_…) from the widget detail page
Pass this ID as widgetId on FeedbackDialog, ThumbsFeedback, or headless submitFeedback.
Optional: link to a Project
You can link a widget to a Project so future free-text submissions:
- appear on that Project’s Feedback tab
- can become Project Evidence after batch synthesis
Relinking a widget later does not move past submissions — Deck snapshots the Project link at submit time.
2. Create a publishable key
- Open Settings → Feedback Widget SDK
- Create a publishable key
- Copy the full
pk_…value immediately — Deck only shows it once - Store it in your app environment:
- Browser / React:
NEXT_PUBLIC_DECK_PUBLISHABLE_KEY(or ViteVITE_DECK_PUBLISHABLE_KEY) - Server only (
@deck-io/feedback/server):DECK_PUBLISHABLE_KEY(do not useNEXT_PUBLIC_*unless the browser also needs the key)
- Browser / React:
You can use one publishable key across multiple widgets in the same organization.
Keys at a glance
| Item | Example prefix | Where | Safe in the browser? |
|---|---|---|---|
| Widget ID | wgt_… | Manage → Widgets | Yes (public identifier) |
| Publishable key | pk_… | Settings → Feedback Widget SDK | Yes (client-safe; widget ingest only) |
| Secret API key | dk_… | Settings → Deck API | No — not for this SDK |
Publishable keys are for the Feedback SDK only (browser or server submit). They cannot call the Deck Public API. Use secret dk_… keys for server-side Public API access (themes, insights, Build data).
Install snippet in the product
Deck also shows a copy-paste install snippet in:
- Settings → Feedback Widget SDK
- Manage → Widgets → [widget] (until the widget has submissions)
Next step
Quick start — wrap your app and render a widget.