Integrations API

Last updated: November 17, 2026

Connect third-party review platforms to import existing reviews and receive new ones via webhooks.

Connect Platform

POST /api/v1/reviews/connect

Connects a review platform and optionally starts a full review import.

Request (Okendo)

{
  "platform": "okendo",
  "api_key": "YOUR_OKENDO_API_KEY",
  "api_user_id": "YOUR_OKENDO_SUBSCRIBER_ID",
  "full_sync": true,
  "start_bulk_ingest": true
}

Request (Judge.me)

{
  "platform": "judgeme",
  "api_key": "YOUR_JUDGEME_TOKEN",
  "shop_domain": "yourstore.myshopify.com",
  "full_sync": true
}

Request (Yotpo)

{
  "platform": "yotpo",
  "api_key": "YOUR_YOTPO_KEY",
  "api_secret": "YOUR_YOTPO_SECRET",
  "full_sync": true
}

Parameters

FieldTypeRequiredDescription
platformstringYesokendo, judgeme, or yotpo
api_keystringYesPlatform API key
api_user_idstringOkendo onlyOkendo subscriber ID
api_secretstringYotpo onlyYotpo API secret
shop_domainstringJudge.me onlyYour .myshopify.com domain
full_syncbooleanNoImport all existing reviews (default: true)
start_bulk_ingestbooleanNoStart import immediately (default: true)

Response (201)

{
  "message": "Connected to okendo successfully",
  "platform": "okendo",
  "credential_id": 5,
  "credentials_verified": true,
  "webhook_url": "https://api.betterreviews.app/api/v1/reviews/webhooks/okendo",
  "webhook_events": ["review.created", "review.updated"],
  "ingestion_started": true,
  "ingestion_job_id": "uuid"
}

Disconnect Platform

POST /api/v1/reviews/disconnect

Request

{
  "platform": "okendo"
}
FieldTypeDescription
platformstringPlatform to disconnect

Stops new imports and removes the platform webhook. Reviews already imported are kept; reconnect any time with POST /api/v1/reviews/connect.

Response (200): includes platform and webhook_unsubscribed, which is true only when the platform confirmed the webhook was removed.

Idempotent: if there is no active connection for that platform, the response is still 200 with "already_disconnected": true.

"delete_reviews": true is rejected with 400. Deleting imported reviews on disconnect is not supported; remove them from the Reviews tab instead.


List Active Connections

GET /api/v1/reviews/platforms/credentials

Returns all active platform connections for your store.

Remove a Connection

DELETE /api/v1/reviews/platforms/credentials/:id

Removes a connection and its platform webhook. Imported reviews are kept.

Connections are created only through POST /api/v1/reviews/connect; there is no endpoint for creating or editing a connection's credentials directly.


Webhook Management

Subscribe

POST /api/v1/reviews/webhooks/subscribe

Register a webhook with the review platform to receive new reviews automatically.

Request

{
  "platform": "okendo",
  "events": ["review.created", "review.updated"]
}

List Subscriptions

GET /api/v1/reviews/webhooks/subscriptions

Unsubscribe

DELETE /api/v1/reviews/webhooks/unsubscribe/:platform


How Review Import Works

When full_sync: true, the system pages through all reviews from the platform API and imports them. Large catalogs (300K+ reviews) may take several minutes. Reviews are deduplicated by external review ID, so re-running is safe.

New reviews after the initial import arrive via webhooks automatically — no polling needed.


CSV Import

Import reviews (or Q&A) from a CSV file in six calls. Every plan includes it. The same flow powers Settings → Import & Export in the BetterReviews app. Writes need a Read & Write key; the status read works with Read-only. CSV export is not part of the API.

The import moves through these statuses: pending → mapping → dry_run → ready → in_progress → completed (or failed, or cancelled). Each step only works from the status before it; calling one out of order returns 409 wrong_status with current_status.

  1. POST /api/v1/csv/upload — multipart/form-data with the file in a file field. UTF-8, .csv, at most 50 MB and 100,000 rows. 201 returns import_id, headers, sample_rows (the first rows as uploaded) and total_rows. One import at a time per store; 5 uploads per hour.
  2. POST /api/v1/csv/map-columns with {"import_id": 123} — AI suggests which column holds what (with a rule-based fallback) and detects whether the file holds reviews or Q&A. Returns mapping ({"CSV header": "canonical_name" | null}), inferred_platform, preview_rows and content_type (review or qa). 10 per hour.
  3. POST /api/v1/csv/confirm-mapping with {"import_id": 123, "column_mapping": {"Body": "content", "Stars": "rating"}, "platform": "judgeme"} — values must be canonical names (below) or null to skip a column, otherwise 422 invalid_mapping with invalid_values. platform (optional) is one of okendo, judgeme, yotpo, loox, feefo, csv (default csv). Starts a background dry run and returns status: "dry_run".
  4. GET /api/v1/csv/imports/:id/status — poll until status is ready. metadata.dry_run_results then holds valid_row_count, error_row_count, error_breakdown (by field), error_preview and approximate_duplicate_count. Nothing has been imported yet.
  5. POST /api/v1/csv/start-import with {"import_id": 123} — returns status: "in_progress" and total_rows. Rows are imported in background batches. Rows that match a review already in your store (same external_review_id, or matching details when the file has no IDs) are skipped, as are rows from a reviewer whose data you erased, so re-running a file does not duplicate reviews.
  6. POST /api/v1/csv/imports/:id/cancel — cancel any import that has not finished (pending through in_progress); 409 not_cancellable afterwards. Rows already imported stay.

Keep polling step 4 after starting: it reports processed_rows, imported_rows, skipped_rows and error_rows. When a completed import had errors, download_token is set, and GET https://api.betterreviews.app/api/v1/csv/download/<download_token> (no key needed) returns the error report as CSV for 7 days. Treat the token like a password: the report holds rows from your file.

Canonical review columns: external_review_id, rating (1–5), title, content, reviewer_name, reviewer_email, product_id (product ID or SKU; site_review for a review of the store), product_title (informational only), review_date, is_verified_buyer, status (approved, pending, rejected), helpful_votes, unhelpful_votes, media_urls (pipe-delimited), tags, merchant_reply, language. Q&A columns: question_text, questioner_name, questioner_email, question_date, answer_text, answerer_name, answerer_email, answer_date, answerer_type, is_published, product_id, external_question_id, external_answer_id, status, helpful_votes, unhelpful_votes. A blank template: GET https://api.betterreviews.app/api/v1/csv/template (public).

Errors: 400 missing_file; 413 file_too_large; 422 invalid_file_type, not_csv_content, invalid_encoding, too_many_rows, empty_file, no_headers, invalid_mapping, invalid_params; 409 duplicate_in_progress (the same file is already being imported), wrong_status, not_cancellable; 429 concurrent_import_limit (another import is active) or rate_limited; 403 feature_not_available (uninstalled or frozen store); 404 not_found for another store's import.


Google Product Ratings Feed

Your store's reviews as an XML feed for Google Merchant Center (product review stars in Google Shopping). Every plan; an uninstalled or frozen store gets 403 entitlement_required. All three endpoints act on the API key's store only.

The feed URL contains a secret token. Anyone with it can read the feed, and GET …/status returns it to any key, Read-only included. If the URL leaks, rotate it: turning the feed off and on again keeps the same URL.

Status

GET /api/v1/integrations/google-feed/status

{
  "enabled": true,
  "feed_url": "https://api.betterreviews.app/feeds/google/reviews/<token>.xml",
  "last_served_at": "2026-11-16T09:00:12Z",
  "last_google_fetch_at": "2026-11-16T09:00:12Z",
  "latest_n": 10
}

feed_url is null until the feed has been turned on once. last_served_at is the last fetch by anyone; last_google_fetch_at the last fetch verified as Google (null until then).

Turn on or off

POST /api/v1/integrations/google-feed/toggle · Read & Write

Body {"enabled": true} or {"enabled": false} (a JSON boolean; anything else is 400 missing_or_invalid_enabled). Turning it on the first time creates the URL. Turning it off stops serving the feed but keeps the token, so turning it on again restores the same URL. Returns enabled, feed_url, last_served_at and last_google_fetch_at.

Rotate the URL

POST /api/v1/integrations/google-feed/rotate · Read & Write

Replaces the token. The old URL returns 404 from the next request on (a copy cached along the way can live up to an hour); paste the new feed_url into Merchant Center. Returns feed_url and rotated_at.

Errors: 400 missing_store_context (a credential without a store), 404 store_not_found.


Klaviyo

Connect the store's Klaviyo account so BetterReviews can send review events to it for Klaviyo flows. Every plan; an uninstalled or frozen store gets 403 entitlement_required. Writes need a Read & Write key. The response never contains the Klaviyo key, only its last four characters.

Status

GET /api/v1/integrations/klaviyo/status

{
  "connected": true,
  "connected_at": "2026-10-21T14:02:00Z",
  "key_last4": "a1b2",
  "auth_failed_at": null,
  "review_request_transport": "email"
}

auth_failed_at is set when Klaviyo rejected the stored key; reconnect with a working key. review_request_transport is email (BetterReviews sends review requests) or klaviyo (the merchant's Klaviyo flow sends them); it is changed in the BetterReviews admin, not with this API.

Connect

POST /api/v1/integrations/klaviyo/connect

Body {"klaviyo_api_key": "pk_..."}: a Klaviyo private key, in a field named klaviyo_api_key (never api_key). The key is checked with Klaviyo before it is stored, encrypted. Returns the status shape. Errors: 400 missing_klaviyo_api_key, 422 invalid_klaviyo_key_format (not pk_…, or the wrong length), 422 invalid_klaviyo_key (Klaviyo refused it), 422 insufficient_scope, 503 klaviyo_unavailable.

Disconnect

POST /api/v1/integrations/klaviyo/disconnect

Removes the key. When Klaviyo sends the store's review requests, this returns 409 klaviyo_sends_requests unless the body is {"confirm_switch_to_email": true}; disconnecting then switches review requests back to BetterReviews email. Returns the status shape.

Send sample events

POST /api/v1/integrations/klaviyo/test-events

Sends sample events (fixture data and a sample profile) so the BetterReviews metrics appear in Klaviyo's flow builder before a real customer triggers them. 5 per hour per store. 200 returns {"ok": true, "events": [{"metric": "...", "ok": true}]}. When Klaviyo refuses one, 422 (or 503) returns ok: false, the error and the events list showing which ones made it; insufficient_scope means the key cannot write events. 409 klaviyo_not_connected without a connection, 429 rate_limited past the limit.


Klaviyo Best-Reviews Feed

A JSON feed of your best reviews for Klaviyo's Web Feeds, to drop into newsletters. It needs no Klaviyo connection. Every plan; an uninstalled or frozen store gets 403 entitlement_required.

The feed URL contains a secret token, and GET …/status returns it to Read-only keys. If it leaks, rotate it.

  • GET /api/v1/integrations/klaviyo-feed/status — enabled, feed_url (https://api.betterreviews.app/feeds/klaviyo/reviews/<token>.json, null until turned on once), last_served_at, max_items, and cached_item_count (how many reviews the feed holds now; null while it is first being built).
  • POST /api/v1/integrations/klaviyo-feed/toggle (Read & Write) — {"enabled": true | false}, a JSON boolean (else 400 missing_or_invalid_enabled). Turning it on builds the feed in the background; turning it off keeps the token, so the same URL comes back. Returns enabled, feed_url and last_served_at.
  • POST /api/v1/integrations/klaviyo-feed/rotate (Read & Write) — new token; the old URL returns 404 from the next request on (a cached copy can live up to five minutes). Update the Web Feed URL in Klaviyo. Returns feed_url and rotated_at.

Partner Integrations (Reactiv, PDQ)

Create the key a partner uses to read your store’s reviews — the same key the Settings → Integrations card makes. :partner is reactiv or pdq; anything else returns 404 unknown_partner.

Auth: a store API key only. Session tokens, the bot key and storeless keys get 403 store_api_key_required. Connect and disconnect need a Read & Write key; state works with a Read-only key.

Don’t create a general key named reactiv or pdq — POST /api/v1/user/api-keys and POST /api/v1/tokens both refuse it with 422, and a general key never works on a partner’s endpoints.

Get state

GET /api/v1/integrations/:partner

{
  "state": "connected",
  "key": {"prefix": "ppo_AbCd", "created_at": "2026-10-17T10:00:00Z", "last_used_at": null},
  "entitled": true
}

state is disconnected, connected, or plan_stripped (key exists but the plan lost the integration). key is null when disconnected. Reactiv also returns last_sync_at. The raw key is never returned here.

Connect

POST /api/v1/integrations/:partner/connect

{"rotate": false}

Set rotate to true to replace an existing key; the old one stops working immediately.

Response (200, Cache-Control: no-store)

{"key": "ppo_...", "prefix": "ppo_AbCd", "created_at": "2026-10-17T10:00:00Z"}

The raw key is shown once. It has no expiry and stays valid even after the key that created it is revoked or expires; to turn it off, call disconnect.

StatusErrorMeaning
409already_connectedA key exists and rotate wasn’t true. The current key keeps working. Normally doesn’t count toward the limit.
403entitlement_requiredYour plan doesn’t include this integration. Normally doesn’t count toward the limit.
429rate_limited5 keys per 24 hours per partner, shared with the Integrations card.
404store_not_foundThe key’s store no longer exists.
500internal_errorUnexpected failure; retry later.

Disconnect

POST /api/v1/integrations/:partner/disconnect

Revokes the key. Idempotent: an already-disconnected store also gets {"status": "disconnected"}. Works on any plan. 5 per 24 hours, shared with the card.

Every connect and disconnect through the API notifies the BetterReviews team.