Skip to main content

Developers

Build on your feedback.

A small, honest REST API to read feedback, and signed webhooks to react to it in real time. No SDK required — it's just HTTP.

Getting started

Create an API key

Every request is authenticated with a bearer token you create in your dashboard.

Head to Settings → Developers and create a key. It looks like fdb_live_ab12… and is shown in full only once — copy it right away and store it somewhere safe. If you lose it, revoke it and create a new one.

REST API

List feedback

GET /api/v1/feedback returns your feedback, newest first, with cursor pagination.

Request

Send your key as a bearer token in the Authorization header.

curl
curl -H "Authorization: Bearer fdb_live_…" \
  https://feedb.co/api/v1/feedback

Query params: limit (1–100, default 25) and cursor (an item id to page after). Requests are rate-limited to 60 per minute.

Response

A JSON object with a data array and a next_cursor (null when you've reached the end).

200 OK
{
  "data": [
    {
      "id": "clx…",
      "rating": 5,
      "category": "product",
      "content": "Loved the onboarding flow.",
      "type": "PRAISE",
      "sentiment": "positive",
      "created_at": "2026-07-16T09:12:04.000Z"
    }
  ],
  "next_cursor": "clx…"
}

To page, pass the returned next_cursor as the cursor param on your next request until it comes back null.

Webhooks

React in real time

Register an HTTPS endpoint and FeedB POSTs a signed JSON payload when new feedback arrives, from any kind of place. Restaurants can also route kitchen complaints to a kitchen screen.

Add an endpoint under Settings → Developers. You'll get a signing secret that looks like whsec_…. An endpoint that fails 10 times in a row is automatically disabled — re-enable it after you've fixed it.

The payload

Every delivery is a POST with headers X-FeedB-Event and X-FeedB-Signature.

review.created fires for every new visit signal and public page review at a place you own or manage — a clinic, a train, a school, an app. It carries what your dashboard shows and nothing about who sent it (no account, contact, device or exact time: day is the UTC date).

POST body
{
  "event": "review.created",
  "createdAt": "2026-11-19T19:29:00.000Z",
  "data": {
    "businessId": "clx…",
    "businessName": "Northline Rail",
    "businessSlug": "northline-rail",
    "reviewId": "clx…",
    "channel": "visit",
    "rating": 2,
    "categories": ["Cleanliness"],
    "spot": "Car 5",
    "zone": "Quiet Car",
    "content": "Bin by the door is overflowing.",
    "isPrivate": true,
    "needsHelp": false,
    "day": "2026-11-19"
  }
}

feedback.created fires for feedback sent to your own personal FeedB page (not your places).

POST body
{
  "event": "feedback.created",
  "createdAt": "2026-07-16T09:12:04.000Z",
  "data": {
    "id": "clx…",
    "rating": 5,
    "content": "Loved the onboarding flow."
  }
}

Kitchen alerts (restaurants only)

For venues set up as a restaurant, café or bar, tick Kitchen alerts on an endpoint to receive kitchen.alert when a guest's table feedback (1–3★) names Food Temperature, Order Accuracy or Drinks & Cocktails. Point it at a kitchen-display bridge, a ticket-printer service, Slack or Zapier. Praise never triggers it. urgency is HIGH for 1★ and MEDIUM for 2–3★; guestVerbatim is null when the guest only tapped reasons.

POST body
{
  "event": "kitchen.alert",
  "createdAt": "2026-11-19T19:29:00.000Z",
  "data": {
    "businessId": "clx…",
    "businessName": "The Copper Kettle Bistro",
    "reviewId": "clx…",
    "tableOrSpot": "Table 14",
    "zone": "Main Dining",
    "rating": 1,
    "urgency": "HIGH",
    "routes": [
      { "reason": "Food Temperature", "station": "EXPO_SAUTE",
        "action": "Flash expedite — check plate temperature" },
      { "reason": "Order Accuracy", "station": "EXPO",
        "action": "Missing / incorrect item check" }
    ],
    "guestVerbatim": "Steak came out cold.",
    "createdAt": "2026-11-19T19:28:58.000Z"
  }
}

Stations: EXPO, EXPO_SAUTE, SERVICE_BAR.

Verify the signature

The X-FeedB-Signature header is sha256= followed by the HMAC-SHA256 of the raw request body, keyed with your webhook secret. Recompute it and compare — reject the request if it doesn't match.

Node.js
import { createHmac, timingSafeEqual } from 'crypto';

function verify(rawBody, header, secret) {
  const expected =
    'sha256=' + createHmac('sha256', secret).update(rawBody).digest('hex');
  const a = Buffer.from(header || '');
  const b = Buffer.from(expected);
  return a.length === b.length && timingSafeEqual(a, b);
}

Always hash the raw bytes of the body, before any JSON parsing — reserializing can change whitespace and break the comparison.

Ready to build?

Create a key and your first webhook from your dashboard settings.

Go to Developer settings