Replik OpenAPI 3.1 (JSON) · English

API Replik v1

Toutes les fonctions de Replik dans votre système d’information : établissements et fiche Google, avis, réponses proposées par l’IA et publication. L’accès à l’API est gratuit avec toutes les offres ; chaque action est facturée comme dans l’application (Suns ou quotas de votre formule).

1. Créer une clé API

Dans votre espace Replik, menu Outils → API : nommez la clé, choisissez ses droits, et copiez le secret (affiché une seule fois). Vous devez avoir accepté les conditions générales en vigueur.

2. Obtenir un jeton (OAuth2 client credentials)

curl -X POST https://app.replik.app/api/v1/oauth/token \
  -u "rpk_votre_client_id:rps_votre_secret" \
  -d grant_type=client_credentials

Réponse : access_token (Bearer), valable 1 heure.

3. Appeler l’API

curl https://app.replik.app/api/v1/reviews?unanswered=true \
  -H "Authorization: Bearer rpt_..." -H "Accept-Language: fr"

curl -X POST https://app.replik.app/api/v1/reviews/123/suggestions \
  -H "Authorization: Bearer rpt_..." -H "Idempotency-Key: 6f1c2b7e" \
  -H "Content-Type: application/json" -d '{"tone": 6}'

curl -X POST https://app.replik.app/api/v1/reviews/123/replies \
  -H "Authorization: Bearer rpt_..." -H "Idempotency-Key: 9d4e0a11" \
  -H "Content-Type: application/json" -d '{"suggestion_id": 456}'

Erreurs : objet JSON error avec code, message et details. Limites par clé : 120 lectures, 30 écritures et 20 générations par minute (en-têtes RateLimit-*, code 429). Les POST exigent l’en-tête Idempotency-Key : rejouer la même requête ne débite et ne publie qu’une fois.

Webhooks

Déclarez une adresse HTTPS (page API de votre espace, ou POST /webhooks) : Replik l’appelle à chaque événement choisi. Vérifiez la signature avant de traiter l’appel, et répondez 2xx en moins de 10 secondes ; en cas d’échec, Replik réessaie pendant 24 heures.

Événements : review.created · review.suggestion_ready · reply.published · reply.failed · review.removed · listing.alert · account.access_revoked · enrollment.completed · enrollment.failed · billing.limit_reached · billing.invoice_created

// PHP : vérifier l'en-tête Replik-Signature (t=…,v1=…)
$raw = file_get_contents('php://input');
parse_str(str_replace(',', '&', $_SERVER['HTTP_REPLIK_SIGNATURE']), $sig);
$expected = hash_hmac('sha256', $sig['t'] . '.' . $raw, getenv('REPLIK_WEBHOOK_SECRET'));
if (! hash_equals($expected, $sig['v1']) || abs(time() - (int) $sig['t']) > 300) {
    http_response_code(400); exit;
}
$event = json_decode($raw, true);   // id, type, created_at, account_id, data
// Ignorer un id déjà traité : un même événement peut être livré deux fois.
POST/api/v1/oauth/tokenGet an access token (OAuth2 client credentials)
ParamètreOùType
grant_typebodystring : client_credentials
client_idbodystring
client_secretbodystring
scopebodystring
GET/api/v1/accountAccount, Sun balance and terms
GET/api/v1/placesList businesses

Scope places:read.

GET/api/v1/places/{place_id}Get a business
ParamètreOùType
place_id *pathstring
PATCH/api/v1/places/{place_id}Update Replik settings of a business

Scope places:write. Only the fields sent are changed. Autopilot requires a plan.

ParamètreOùType
place_id *pathstring
GET/api/v1/places/{place_id}/rating-goalGet the rating goal of a business (target, reviews needed, progress)

Scope places:read. Deterministic, no AI, same as the "Rating goal" card of the app. Google shows the average rounded to one decimal: the target is the next displayed step(s) (4.3 → 4.4 is reached when the exact average hits the threshold 4.35). needed = ceil(N × (threshold − current mean) / (r − threshold)) reviews rated 4 or 5★, where N is the number of Google reviews and r the average of recent 4-5★ reviews (4.8 by default). Horizon: 7 days for a business with fewer than 20 reviews or when the current pace (Google reviews per week over the last 12 weeks) reaches it in a week, otherwise up to 30 days; the highest step reachable at the current pace is chosen. When even the next step is out of reach, suggestion.type is boost with an estimated number of review requests (conservative 10% e-mail conversion). mode: step (next displayed rating), maintain (4.95+ or 4.9 when 5.0 is out of reach: keep the streak, number of 4-5★ reviews in 30 days), first (no review yet). The goal is stored: it does not move every day; when achieved (or after its deadline) a new reachable goal starts and previous tells what happened. 409 place_inactive for an inactive business.

ParamètreOùType
place_id *pathstring
GET/api/v1/places/{place_id}/qr-codesList the QR codes of a business (image link, tracked link, scans)

Scope places:read. Same list as the Excel export of the marketing kit. image_url is the public PNG of the QR code (800 px); tracked_link is the link encoded in it (each scan is counted, then the visitor is sent to the Google review form). scans_30_days counts the last 30 days.

ParamètreOùType
place_id *pathstring
GET/api/v1/places/{place_id}/listingGet the Google Business Profile (live)
ParamètreOùType
place_id *pathstring
PATCH/api/v1/places/{place_id}/listing/{section}Update a section of the Google Business Profile

Scope places:write. Sections: identity (title, primary_category, additional_categories), description, contact (primary_phone, additional_phones, website), hours (days.{DAY}.mode closed|open24|slots, days.{DAY}.slots[].open/close HH:MM), special_hours (special[].date, closed, open, close), status (OPEN|CLOSED_TEMPORARILY), attributes, lodging, services, menu. Only changed fields are sent to Google.

ParamètreOùType
place_id *pathstring
section *pathstring : identity | description | contact | hours | special_hours | status | attributes | lodging | services | menu
POST/api/v1/places/{place_id}/ai-profile/analysisAnalyse the business website with the AI

Scope places:write. Reads the website of the Google profile (home page and up to 4 useful pages) and writes the ai_profile.knowledge sheet, which you can then edit. The first analysis of the day is free for each business; the next ones the same day cost the "site_analysis" price (0.50 Sun), charged only on success. Max 10 per day. Errors: 422 no_website / site_unreadable, 402 insufficient_suns, 429 daily_limit, 409 busy, 503 ai_unavailable.

ParamètreOùType
place_id *pathstring
Idempotency-Key *headerstring
GET/api/v1/places/{place_id}/postsList Google posts of a business

Scope places:read. Last 100, newest first.

ParamètreOùType
place_id *pathstring
POST/api/v1/places/{place_id}/postsWrite a Google post with the AI

Scope places:write. The AI searches the web on the subject and writes a draft (title, text, button) from the business questionnaire, which must be answered first in the app (422 profile_required). Writing is free; publishing is billed. Max 20 drafts per day (429 daily_limit).

ParamètreOùType
place_id *pathstring
Idempotency-Key *headerstring
topic_typebodystring : STANDARD | EVENT | OFFER
subjectbodystring
titlebodystring
event_startbodystring
event_endbodystring
offer_couponbodystring
offer_urlbodystring
offer_termsbodystring
cta_typebodystring : LEARN_MORE | BOOK | ORDER | SHOP | SIGN_UP | CALL
cta_urlbodystring
media_urlbodystring
GET/api/v1/places/{place_id}/photosPhotos usable in posts

Scope places:read. Photos of the Google profile and photos uploaded in Replik (url, source google|upload|ai). Use url as media_url, or as references for an AI image (usable_as_reference: real photos only, never AI images).

ParamètreOùType
place_id *pathstring
GET/api/v1/posts/{post_id}Get a post
ParamètreOùType
post_id *pathinteger
PATCH/api/v1/posts/{post_id}Edit a post (draft, scheduled, failed or rejected)

Scope places:write. Same fields as creation, plus summary (max 1500).

ParamètreOùType
post_id *pathinteger
DELETE/api/v1/posts/{post_id}Delete an unpublished post

Scope places:write.

ParamètreOùType
post_id *pathinteger
POST/api/v1/posts/{post_id}/imageGenerate an image for a post with the AI

Scope places:write. Billed at the "gbp_post_image" price, refunded if no image is produced; max 5 per post. Wide 16:9 format. references: 1 to 3 real photos of the business (from GET /places/{place_id}/photos, usable_as_reference) sent to the AI, which keeps the place exactly as it is (buildings, rooms, decor, view) and only adds the mood of the post. The image is not attached automatically: set it as media_url.

ParamètreOùType
post_id *pathinteger
Idempotency-Key *headerstring
wishesbodystring
referencesbodyarray
POST/api/v1/posts/{post_id}/publishPublish a post now or schedule it

Scope places:write. Without scheduled_at: published now on Google (billed at the "gbp_post" price, refunded if Google refuses); status live, or processing while Google reviews it. With scheduled_at: published automatically at that time. Your API call is recorded as the publication consent.

ParamètreOùType
post_id *pathinteger
Idempotency-Key *headerstring
scheduled_atbodystring
PUT/api/v1/reviews/{review_id}/replies/{reply_id}/modelUse a reply as a model for the AI

Scope reviews:write. Imported or published replies only. The AI takes inspiration from the style of up to 2 models of the same tone (positive or critical) for the next replies of the business, without copying them. Max 6 per business (422 models_limit).

ParamètreOùType
review_id *pathinteger
reply_id *pathinteger
DELETE/api/v1/reviews/{review_id}/replies/{reply_id}/modelStop using a reply as a model

Scope reviews:write.

ParamètreOùType
review_id *pathinteger
reply_id *pathinteger
GET/api/v1/reviewsList reviews with their replies

Scope reviews:read. Newest first, cursor pagination.

ParamètreOùType
place_idquerystring
sincequerystring
untilquerystring
ratingqueryinteger
unansweredqueryboolean
sourcequerystring : google | tripadvisor | trustpilot | appstore | googleplay
limitqueryinteger
cursorquerystring
GET/api/v1/reviews/to-replyList the reviews waiting for a reply ("To reply" screen of the mobile app)

Scope reviews:read. Same list, order and suggestion as the "To reply" screen: Google reviews of active businesses with no reply online, imported, validated or being published, newest first. state: ready (publish the suggestion with POST /reviews/{review_id}/replies), no_draft (create one with POST /reviews/{review_id}/suggestions), stale, answered, in_progress, not_publishable. new_version tells the price of a new version (free, included, offered or paid: use free_only to never spend Suns). total is the number used for the app icon badge.

ParamètreOùType
place_idquerystring
limitqueryinteger
offsetqueryinteger
GET/api/v1/places/{place_id}/notification-preferencesGet the push notification preferences of a business

Scope places:read. reviews: all (default), low (3★ or less) or none. quiet_hours: notifications still arrive during these hours, without sound or vibration (Paris time, may cross midnight), null when off. published_alert: notify when a reply is online on Google. low_balance_alert: account-wide, notify when the Sun balance gets low (fewer than 5 replies) or empty, between 8am and 9pm. Defaults reproduce the historical behaviour (every review, any time, no extra alert). A new review is notified once its reply suggestion is ready, or without suggestion if none can be written.

ParamètreOùType
place_id *pathstring
PATCH/api/v1/places/{place_id}/notification-preferencesUpdate the push notification preferences of a business

Scope places:write. Partial update. quiet_hours: false turns quiet hours off; quiet_start and quiet_end are hours 0-23 (same value: off).

ParamètreOùType
place_id *pathstring
reviewsbodystring : all | low | none
quiet_hoursbodyboolean
quiet_startbodyinteger|null
quiet_endbodyinteger|null
published_alertbodyboolean
low_balance_alertbodyboolean
GET/api/v1/reviews/{review_id}Get a review with its replies
ParamètreOùType
review_id *pathinteger
POST/api/v1/reviews/{review_id}/suggestionsGenerate an AI reply suggestion

Scope reviews:write. Billed as in the app (Sun price or plan quota, free variants included). 402 insufficient_suns if needed. Variant with an instruction (same as the app and the « Warmer » button of the new-review email): call again with instructions (e.g. "Warmer and more personal") and a higher tone. free_only: true never spends Suns: 402 variant_not_free (details.cost_suns) when no free variant is left.

ParamètreOùType
review_id *pathinteger
Idempotency-Key *headerstring
tonebodyinteger
instructionsbodystring
free_onlybodyboolean
POST/api/v1/reviews/{review_id}/repliesPublish a reply

Scope reviews:write. Send suggestion_id (optionally with an edited text) or your own text. Google: queued (202), follow /publications/{id}. Connected App Store / Google Play apps: published directly (201). Other platforms: 422 platform_not_publishable.

ParamètreOùType
review_id *pathinteger
Idempotency-Key *headerstring
suggestion_idbodyinteger
textbodystring
GET/api/v1/publications/{publication_id}Follow a publication
ParamètreOùType
publication_id *pathinteger
GET/api/v1/places/{place_id}/review-requests/templateGet the review request e-mail template

Scope review_requests:read. Default FR/EN template until saved. Variables: {prenom}, {nom}, {etablissement}, {lien_avis}, {site_web}, {telephone}, {signature}. gmail: unavailable | none | active | invalid.

ParamètreOùType
place_id *pathstring
PATCH/api/v1/places/{place_id}/review-requests/templateUpdate the review request template

Scope review_requests:write. Only the fields sent are changed; any change cancels the validation.

ParamètreOùType
place_id *pathstring
POST/api/v1/places/{place_id}/review-requests/template/validateValidate the template (required before any sending)

Scope review_requests:write. 422 template_invalid if {lien_avis} is missing, a variable is unknown, or the text offers an incentive or filters unhappy customers (forbidden by Google).

ParamètreOùType
place_id *pathstring
POST/api/v1/places/{place_id}/review-requests/contactsImport contacts

Scope review_requests:write. Send csv (first name, last name, e-mail; ; or , separator; optional header row) or contacts[]. Max 1000. Invalid lines are returned in rejected[] (invalid_email, too_many).

ParamètreOùType
place_id *pathstring
POST/api/v1/places/{place_id}/review-requests/campaignsPrepare a review request campaign

Scope review_requests:write. Imports the contacts and creates a draft with the validated template (409 template_not_validated otherwise). Excluded automatically: opted-out addresses (excluded_reason opted_out) and addresses already asked for this business in the last 90 days (recent). Returns the recipients, a preview, and the quote: free from the customer's Gmail inbox, otherwise "review_request_email" price (0.02 Sun) per e-mail sent by Replik, charged at sending and refunded on failure.

ParamètreOùType
place_id *pathstring
Idempotency-Key *headerstring
GET/api/v1/review-requests/campaigns/{campaign_id}Follow a campaign

Scope review_requests:read. status: draft, sending, paused (notice gmail_revoked or insufficient_suns), done, cancelled; sent, failed, remaining, clicks on the review link. Add ?recipients=1 for the list.

ParamètreOùType
campaign_id *pathinteger
recipientsqueryboolean
PATCH/api/v1/review-requests/campaigns/{campaign_id}/recipients/{recipient_id}Exclude or re-include a recipient (draft only)

Scope review_requests:write. Body {excluded: true|false}.

ParamètreOùType
campaign_id *pathinteger
recipient_id *pathinteger
POST/api/v1/review-requests/campaigns/{campaign_id}/startStart (or resume) a campaign

Scope review_requests:write. confirm_real_customers must be true: send only to real customers of the business. channel: auto (Gmail if authorized, else Replik), gmail or replik. Sent in the background in small batches, max 300 e-mails per business per day; a recipient never receives the same campaign twice. 402 insufficient_suns, 422 gmail_not_authorized.

ParamètreOùType
campaign_id *pathinteger
Idempotency-Key *headerstring
confirm_real_customersbodyboolean
channelbodystring : auto | gmail | replik
POST/api/v1/review-requests/campaigns/{campaign_id}/cancelCancel a draft or stop a campaign

Scope review_requests:write. E-mails not yet sent are cancelled.

ParamètreOùType
campaign_id *pathinteger
GET/api/v1/places/{place_id}/topicsList recurring review topics with counts

Scope reviews:read. Topics are extracted by the AI from review texts (free for the client): with each AI reply suggestion (same call), and in the background for the history (batches of 100 reviews, started automatically at activation) and for reviews that got no AI suggestion. Topics of the "Get to know you" questionnaire are used as a starting list. trend compares the last 90 days with the 90 days before (up, down, stable, none).

ParamètreOùType
place_id *pathstring
GET/api/v1/places/{place_id}/topics/searchSearch reviews (text, topics, excerpts), expanded with synonyms

Scope reviews:read. Free. The query is expanded by the AI with synonyms and variants (cached 24 h per business and query); when the AI is unavailable, a plain keyword search is done (expanded_by_ai: false). sentiment uses the matched topic, or the rating (1-2 negative, 3 mixed, 4-5 positive). Max 200 reviews.

ParamètreOùType
place_id *pathstring
q *querystring
sentimentquerystring : positive | negative | mixed
periodqueryinteger : 90 | 180 | 365
replyquerystring : with | without
ratingqueryinteger
GET/api/v1/places/{place_id}/topics/{topic_id}/reviewsReviews of a topic (with the excerpt), and before / after its resolution

Scope reviews:read. Filters: sentiment, period (90, 180, 365 days), reply (with, without), rating, limit (max 300).

ParamètreOùType
place_id *pathstring
topic_id *pathinteger
PATCH/api/v1/places/{place_id}/topics/{topic_id}Rename a topic or set its resolution date

Scope reviews:write. Free. A name already used by another topic returns 422 name_taken (merge instead). resolved_at null removes the resolution.

ParamètreOùType
place_id *pathstring
topic_id *pathinteger
namebodystring
resolved_atbodystring|null
resolution_notebodystring|null
DELETE/api/v1/places/{place_id}/topics/{topic_id}Delete a topic (reviews are not changed)

Scope reviews:write.

ParamètreOùType
place_id *pathstring
topic_id *pathinteger
POST/api/v1/places/{place_id}/topics/{topic_id}/mergeMerge a topic into another one

Scope reviews:write. Reviews move to the target topic; the merged name keeps pointing to it for future classifications.

ParamètreOùType
place_id *pathstring
topic_id *pathinteger
into_topic_idbodyinteger
POST/api/v1/places/{place_id}/topics/classifyClassify the reviews not yet classified (free)

Scope reviews:write. Never billed. Runs in the background in batches of 100 reviews (only the review text and rating are sent to the AI). status: queued, running, nothing (everything already classified).

ParamètreOùType
place_id *pathstring
POST/api/v1/places/{place_id}/announcements/previewPrepare an improvement announcement: reviews and price (no charge)

Scope reviews:write. From a topic (topic_id: negative and mixed reviews pre-selected), a search (q) or a list of review_ids. Only Google reviews can be answered. mode: append (the review already has a reply: Google allows one reply per review, so the existing reply is kept and an "Update (Month Year): …" paragraph written for this review is added; the reply on Google is replaced by this text) or full (complete reply). Each text costs the price of one AI reply (unit_suns), or is counted in the plan quota when the plan includes replies.

ParamètreOùType
place_id *pathstring
topic_idbodyinteger
qbodystring
review_idsbodyarray
POST/api/v1/places/{place_id}/announcementsCreate an improvement announcement and write the personalized replies (billed)

Scope reviews:write. confirm_cost must be true. One personalized text per review (never identical copies), written in the background; each text is billed at its writing like an AI reply (idempotent per announcement and review), never when the AI fails. Nothing is published before POST /announcements/{id}/publish. 402 insufficient_suns.

ParamètreOùType
place_id *pathstring
Idempotency-Key *headerstring
improvementbodystring
review_idsbodyarray
topic_idbodyinteger
confirm_costbodyboolean
GET/api/v1/announcements/{announcement_id}Follow an announcement (writing, texts, publication progress)

Scope reviews:read. status: generating, ready, publishing, done, cancelled. publication_status: publishing, paused, ready (failures to retry), done. progress: {published, failed, left, total}.

ParamètreOùType
announcement_id *pathinteger
PATCH/api/v1/announcements/{announcement_id}/items/{item_id}Edit a text or exclude a review before publishing

Scope reviews:write. Only while status is ready. Excluding a review does not refund its writing (like any AI reply).

ParamètreOùType
announcement_id *pathinteger
item_id *pathinteger
textbodystring
includedbodyboolean
POST/api/v1/announcements/{announcement_id}/publishPublish the included replies on Google, one at a time

Scope reviews:write. confirm must be true. Free. Replies are published one by one, 10 to 30 seconds apart (like a person, more natural for Google); consent is recorded. Once published, the topic is marked resolved (date editable). 409 not_publishable.

ParamètreOùType
announcement_id *pathinteger
Idempotency-Key *headerstring
confirmbodyboolean
GET/api/v1/places/{place_id}/membersList the team of a business (members and pending invitations)

Scope places:read. Businesses owned by the key account only. Roles: admin (everything except billing and stopping the sharing), editor (reply to reviews, posts, reports, disputes), viewer (read only). Members act on the owner's data; paid actions are charged to the owner's Suns and logged with the member as actor.

ParamètreOùType
place_id *pathstring
POST/api/v1/places/{place_id}/membersInvite a person to a business

Scope places:write. Sends an invitation email (personal link valid 14 days); the person accepts after signing in with the Google account of that address. A new invitation to the same address replaces the pending one. 422 invitation_refused (already a member, owner address, limit of 25 members and invitations). google_access: true (role admin only, else 422 google_access_admin_only) also invites the person as a manager of the Google listing (never owner), with the Google account of the key owner, who must be an owner of the listing; Google sends its own email. A Google failure does not cancel the Replik invitation: see data.google_access.status and error.

ParamètreOùType
place_id *pathstring
emailbodystring
rolebodystring : admin | editor | viewer
localebodystring : fr | en
google_accessbodyboolean
PATCH/api/v1/places/{place_id}/members/{member_id}Change the role of a member

Scope places:write. Below admin, the Google listing access created by Replik is removed unless remove_google_access is false (a Google failure is returned in data.google_warning, the role change is kept).

ParamètreOùType
place_id *pathstring
member_id *pathinteger
rolebodystring : admin | editor | viewer
remove_google_accessbodyboolean
DELETE/api/v1/places/{place_id}/members/{member_id}Remove a member (access cut immediately)

Scope places:write. The data of the business is kept. The Google listing access created by Replik is also removed unless remove_google_access=false; accesses added directly in Google are never touched.

ParamètreOùType
place_id *pathstring
member_id *pathinteger
POST/api/v1/places/{place_id}/members/{member_id}/google-accessGive an admin member manager access to the Google listing

Scope places:write. Admin members only (422 google_access_refused otherwise, or when Google refuses: the key account must be an owner of the listing). Role MANAGER only, never owner. Google emails the person, who accepts in Google or in Replik.

ParamètreOùType
place_id *pathstring
member_id *pathinteger
DELETE/api/v1/places/{place_id}/members/{member_id}/google-accessRemove the Google listing access created by Replik

Scope places:write. Only an access created by Replik can be removed (409 not_created_by_replik otherwise); 502 google_error when Google refuses.

ParamètreOùType
place_id *pathstring
member_id *pathinteger
GET/api/v1/places/{place_id}/google-adminsList the people who manage the Google listing

Scope places:read. Read live from Google (cached a few minutes) with the key account's Google access; 502 google_error when Google refuses (e.g. the account is not an owner of the listing), 422 no_google_listing.

ParamètreOùType
place_id *pathstring
DELETE/api/v1/places/{place_id}/invitations/{invitation_id}Cancel a pending invitation

Scope places:write. The Google listing invitation created by Replik is also cancelled unless remove_google_access=false.

ParamètreOùType
place_id *pathstring
invitation_id *pathinteger
GET/api/v1/accountsList attached client accounts (partners)

Scope accounts:manage, without Replik-Account header.

DELETE/api/v1/accounts/{account_id}Detach a client account (partners)

Scope accounts:manage. Businesses are suspended and data is deleted after 30 days.

ParamètreOùType
account_id *pathinteger
POST/api/v1/enrollmentsEnrol a client (partners)

Scope accounts:manage. Returns a one-time connect_url (valid 7 days) for the client: a Replik page with your name and logo, consent, then Google sign-in. The client is sent back to return_url?enrollment_id=…&status=completed|no_place|not_allowed&external_ref=…, and never gets access to the Replik interface. Webhooks: enrollment.completed, enrollment.failed. return_url must be https on a domain declared in your contract.

ParamètreOùType
Idempotency-Key *headerstring
emailbodystring
namebodystring
localebodystring : fr | en
return_urlbodystring
servicebodystring : essential | pro
placesbodystring : all | choose
external_refbodystring
GET/api/v1/enrollments/{enrollment_id}Follow an enrollment (partners)
ParamètreOùType
enrollment_id *pathinteger
DELETE/api/v1/enrollments/{enrollment_id}Cancel an unused enrollment link (partners)
ParamètreOùType
enrollment_id *pathinteger
GET/api/v1/billingCurrent month usage and invoices (partners)

Active places per plan, overage this month (Suns and € excl. VAT), spending cap, last 24 monthly invoices. Overage actions are refused with 402 once the monthly cap is reached (webhook billing.limit_reached).

GET/api/v1/webhooksList webhook endpoints

Scope webhooks:manage.

POST/api/v1/webhooksCreate a webhook endpoint

Scope webhooks:manage. Public HTTPS URL only. The signing secret is returned once. Events: review.created, review.suggestion_ready, reply.published, reply.failed, review.removed, listing.alert, account.access_revoked, enrollment.completed, enrollment.failed, billing.limit_reached, billing.invoice_created. Each call is a POST with a JSON body {id, type, created_at, account_id, data} (data.review uses the Review schema) and headers Replik-Event, Replik-Delivery (event id, stable across retries) and Replik-Signature: t=<unix time>,v1=<hex HMAC-SHA256 of "<t>.<raw body>" with your secret>. Answer 2xx within 10 seconds. Retries after 1 min, 5 min, 15 min, 1 h, 3 h, 6 h and 12 h; the endpoint is disabled after 50 consecutive failures.

ParamètreOùType
urlbodystring
eventsbodyarray
DELETE/api/v1/webhooks/{webhook_id}Delete a webhook endpoint
ParamètreOùType
webhook_id *pathinteger
POST/api/v1/webhooks/{webhook_id}/testSend a ping event
ParamètreOùType
webhook_id *pathinteger
GET/api/v1/webhooks/{webhook_id}/deliveriesLast 100 deliveries
ParamètreOùType
webhook_id *pathinteger