{"openapi":"3.1.0","info":{"title":"Reviewflowz API","version":"2026-10-29","summary":"Reviews and ratings from every platform, for monitoring, realtime and bulk use.","description":"Reviews and ratings from every platform. Guides: https://api.reviewflowz.com/v3/docs\n(quickstart, authentication, errors and limits, use cases, webhooks).\n"},"servers":[{"url":"https://api.reviewflowz.com/v3"}],"security":[{"apiKey":[]},{"oauth":[]}],"paths":{"/account":{"get":{"operationId":"getAccount","summary":"Get the account","description":"The account this key or token belongs to.","tags":["Account"],"responses":{"200":{"description":"The account.","headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Account"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":[]}]}},"/usage":{"get":{"operationId":"getUsage","summary":"Get usage","description":"Paid and active units, the price of the next block, the creation cap (trial or per billing cycle, the same rules as the app), sources syncing now, the rate limit left this minute, and today's allowance of forecasts and review date lookups.","tags":["Account"],"responses":{"200":{"description":"Usage.","content":{"application/json":{"schema":{"type":"object","required":["billing","trial","paid_units","active_units","sources"],"properties":{"billing":{"type":"string","enum":["per_source","per_location"]},"trial":{"type":"boolean","examples":[false]},"trial_ends_at":{"type":["string","null"],"format":"date-time","examples":[null]},"paid_units":{"type":["integer","null"],"description":"Units on the subscription. Null without one."},"active_units":{"type":"integer","description":"Units billed today (sources or locations)."},"next_units":{"type":["object","null"],"description":"The next block past the paid count, on a per-unit plan. Adding a source past the paid count buys it at once.","properties":{"units":{"type":"integer"},"amount":{"type":"integer","description":"In the currency's smallest unit (cents)."},"currency":{"type":"string"},"interval":{"type":"string"}}},"creation_limit":{"type":["object","null"],"description":"The cap on sources created (lifetime on a trial, per billing cycle when paid). Null when none applies.","properties":{"kind":{"type":"string","enum":["cycle_creation","trial_creation"]},"count":{"type":"integer","examples":[3]},"limit":{"type":"integer","examples":[24]},"resets_on":{"type":"string","format":"date","examples":["2026-12-01"]}}},"sources":{"type":"object","properties":{"total":{"type":"integer"},"syncing":{"type":"integer"}}},"rate_limit":{"type":["object","null"],"properties":{"limit":{"type":"integer","examples":[300]},"remaining":{"type":"integer"},"resets_in":{"type":"integer","description":"Seconds."}}},"quotas":{"type":"object","description":"Daily allowances, per account, reset at midnight UTC: POST /forecasts.","properties":{"forecasts":{"$ref":"#/components/schemas/Quota"}}}}}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":[]}]}},"/openapi.json":{"get":{"operationId":"getOpenApi","summary":"Get the OpenAPI spec","description":"This API as one OpenAPI 3.1 document.","tags":["Account"],"security":[],"responses":{"200":{"description":"The OpenAPI 3.1 document.","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/llms.txt":{"get":{"operationId":"getLlmsTxt","summary":"Get llms.txt","description":"The API in one text file for AI agents (llmstxt.org).","tags":["Account"],"security":[],"responses":{"200":{"description":"Plain text.","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/errors":{"get":{"operationId":"getErrors","summary":"Get an error type","description":"Where an error's `type` points. Redirects to the errors guide.","tags":["Account"],"security":[],"responses":{"303":{"description":"Redirect to the docs' errors section."}}}},"/lookup":{"get":{"operationId":"lookup","summary":"Find a business's URLs","description":"Searches up to 5 platforms at once by name, address, phone or website and returns candidate URLs, best match first. Creates nothing. Platforms that didn't answer within 25 seconds are listed in incomplete.\n\nRequires `sources:read`.","tags":["Sources"],"parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string"},"example":"Tour Eiffel Paris","description":"Name, address, phone or website."},{"name":"platform","in":"query","required":true,"schema":{"type":"string"},"example":"google_maps,tripadvisor","description":"Comma-separated platform ids (up to 5) whose lookup is true in /platforms."},{"name":"country","in":"query","schema":{"type":"string","default":"US"},"description":"Two-letter country code."}],"responses":{"200":{"description":"Candidates.","content":{"application/json":{"schema":{"type":"object","required":["data","incomplete"],"properties":{"data":{"type":"array","items":{"type":"object","properties":{"platform":{"type":"string"},"url":{"type":"string","format":"uri","examples":["https://maps.app.goo.gl/Gjo5NDggCfPg8EWL8"]},"name":{"type":["string","null"]},"address":{"type":["string","null"]},"rating":{"type":["number","null"]},"review_count":{"type":["integer","null"]},"match_score":{"type":["number","null"],"description":"0 to 1, how closely the name matches q."}}}},"incomplete":{"type":"array","items":{"type":"string"},"examples":[[]],"description":"Platforms that didn't answer in time. Call again for them."}}}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["sources:read"]}]}},"/platforms":{"get":{"operationId":"listPlatforms","summary":"List platforms","description":"Every platform you can add a source on, with example URLs.","tags":["Sources"],"responses":{"200":{"description":"Every platform that takes a URL.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Platform"}}}}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":[]}]}},"/sources":{"get":{"operationId":"listSources","summary":"List sources","description":"The account's sources, newest first.\n\nRequires `sources:read`.","tags":["Sources"],"parameters":[{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"},{"name":"platform","in":"query","schema":{"type":"string"},"description":"Comma-separated platform ids."},{"name":"location","in":"query","schema":{"type":"string"},"description":"Comma-separated location ids."},{"name":"status","in":"query","schema":{"type":"string","enum":["syncing","synced","failed","paused"]}},{"name":"created_after","in":"query","schema":{"type":"string","format":"date-time"}},{"name":"created_before","in":"query","schema":{"type":"string","format":"date-time"}},{"name":"q","in":"query","schema":{"type":"string"},"description":"Matches the name or URL: every word must appear, in any order."},{"name":"domain","in":"query","schema":{"type":"string"},"description":"Comma-separated domains, matched exactly (any case): domain=toureiffel.paris."},{"name":"country","in":"query","schema":{"type":"string"},"description":"Google listings whose address is in these countries: comma-separated ISO 3166 codes."},{"name":"product","in":"query","schema":{"type":"string"},"description":"Comma-separated product ids."},{"name":"dimension[key]","in":"query","schema":{"type":"string"},"description":"Custom dimension value(s), comma-separated: dimension[region]=West,East."}],"responses":{"200":{"description":"A page of sources, newest first.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PageMeta"},{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Source"}}}}]}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["sources:read"]}]},"post":{"operationId":"createSources","summary":"Add sources","description":"Each good URL becomes a source and its history is pulled; each bad one comes back in\n`rejected` with a reason. Adding past the paid count upgrades the plan at once. The trial\nand per-cycle creation caps apply (see /usage). With `Prefer: wait=N` you get 200 once\nevery new source has finished its first sync, or 202 with them still syncing.\n\n\nRequires `sources:write`.","tags":["Sources"],"parameters":[{"$ref":"#/components/parameters/PreferWait"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["urls"],"properties":{"urls":{"type":"array","minItems":1,"maxItems":10,"items":{"type":"string","format":"uri"},"examples":[["https://maps.app.goo.gl/Gjo5NDggCfPg8EWL8","https://www.trustpilot.com/review/www.trustpilot.com"]]},"location":{"type":"string","description":"A location id. Required for location-bound platforms on accounts billed per location."},"dimensions":{"type":"object","additionalProperties":{"type":"string"},"description":"Custom dimension values to set on every new source."}}}}}},"responses":{"200":{"$ref":"#/components/responses/SourcesCreated"},"202":{"$ref":"#/components/responses/SourcesCreated"},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["sources:write"]}]}},"/sources/{id}":{"parameters":[{"$ref":"#/components/parameters/Id"}],"get":{"operationId":"getSource","summary":"Get a source","tags":["Sources"],"responses":{"200":{"description":"The source.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Source"}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["sources:read"]}],"description":"Requires `sources:read`."},"patch":{"operationId":"updateSource","summary":"Update a source","description":"Rename a source, or move it to another location.\n\nRequires `sources:write`.","tags":["Sources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"location":{"type":["string","null"],"description":"A location id, or null to detach it."}}}}}},"responses":{"200":{"description":"The source.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Source"}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["sources:write"]}]},"delete":{"operationId":"deleteSource","summary":"Delete a source","description":"Stops monitoring the source and billing for it.\n\nRequires `sources:write`.","tags":["Sources"],"responses":{"204":{"$ref":"#/components/responses/NoContent"},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["sources:write"]}]}},"/sources/{id}/sync":{"parameters":[{"$ref":"#/components/parameters/Id"}],"post":{"operationId":"syncSource","summary":"Sync a source","description":"Too soon returns 429 with Retry-After, and nothing is fetched. A source already syncing isn't started twice. With Prefer wait=N you get 200 once it's done, 202 if not yet.\n\nRequires `sources:write`.","tags":["Sources"],"parameters":[{"$ref":"#/components/parameters/PreferWait"},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Synced.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Source"}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"},"Preference-Applied":{"$ref":"#/components/headers/PreferenceApplied"}}},"202":{"description":"Syncing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Source"}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"},"Preference-Applied":{"$ref":"#/components/headers/PreferenceApplied"}}},"429":{"description":"Synced less than one sync cycle ago.","headers":{"Retry-After":{"description":"Seconds until the source can be checked again.","schema":{"type":"integer"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["sources:write"]}]}},"/reviews":{"get":{"operationId":"listReviews","summary":"List reviews","description":"Filter the account's reviews and page through them, up to 500 at a time, newest found first. Each review comes light: [Shape the review payload](/v3/docs/guides/review-payload) shows how to add its photos, reply and history, trim its fields, or get the export's columns.\n\nRequires `reviews:read`.","tags":["Reviews"],"x-parameter-groups":[{"title":"Which reviews","parameters":["id","source","platform","location","product","dimension[key]","source_created_after","rating","rating_min","rating_max","date_after","date_before","created_after","created_before","updated_after","language","country","tag","owner","topic","subtopic","sentiment","has_reply","removed","q","keywords","has_text","text_length_min"]},{"title":"What comes back","parameters":["include","fields","columns","versions"]},{"title":"Order and paging","parameters":["sort","limit","cursor"]}],"parameters":[{"name":"id","in":"query","schema":{"type":"string"},"description":"Comma-separated review ids, up to 500: id=rev_1 reads one review. A version that was edited since is found by its id too."},{"name":"source","in":"query","schema":{"type":"string"},"description":"Comma-separated source ids."},{"name":"platform","in":"query","schema":{"type":"string"},"description":"Comma-separated platform ids."},{"name":"location","in":"query","schema":{"type":"string"},"description":"Comma-separated location ids."},{"name":"product","in":"query","schema":{"type":"string"},"description":"Comma-separated product ids (accounts that group sources into products)."},{"name":"dimension[key]","in":"query","schema":{"type":"string"},"description":"Reviews of sources with this custom dimension value (comma-separated values)."},{"name":"source_created_after","in":"query","schema":{"type":"string","format":"date-time"},"description":"Reviews of sources added at or after (bulk imports)."},{"name":"rating","in":"query","schema":{"type":"string"},"description":"Star ratings, comma-separated: rating=1,2 (4 includes 4.5)."},{"name":"rating_min","in":"query","schema":{"type":"number"},"description":"Scores of at least this: rating_min=4."},{"name":"rating_max","in":"query","schema":{"type":"number"},"description":"Scores of at most this: rating_max=3 (3.5 is out)."},{"name":"date_after","in":"query","schema":{"type":"string","format":"date-time"},"description":"Posted on the platform at or after."},{"name":"date_before","in":"query","schema":{"type":"string","format":"date-time"},"description":"Posted on the platform before."},{"name":"created_after","in":"query","schema":{"type":"string","format":"date-time"},"description":"Found by Reviewflowz at or after."},{"name":"created_before","in":"query","schema":{"type":"string","format":"date-time"},"description":"Found by Reviewflowz before."},{"name":"updated_after","in":"query","schema":{"type":"string","format":"date-time"},"description":"Catch up after downtime: reviews found, edited, removed, reinstated, replied to, tagged or assigned an owner after this time, so their updated_at is after it."},{"name":"language","in":"query","schema":{"type":"string"},"description":"Comma-separated ISO 639-1 codes."},{"name":"country","in":"query","schema":{"type":"string"},"description":"The reviewer's country, where the platform gives one: comma-separated ISO 3166 codes."},{"name":"tag","in":"query","schema":{"type":"string"},"description":"Comma-separated tag ids: reviews with any of them."},{"name":"owner","in":"query","schema":{"type":"string"},"description":"Comma-separated owner ids (confirmed assignments). pending matches reviews with an owner suggestion waiting for a person; with ids, a review matching either is returned."},{"name":"topic","in":"query","schema":{"type":"string"},"description":"Comma-separated topic names."},{"name":"subtopic","in":"query","schema":{"type":"string"},"description":"Comma-separated subtopic names. With topic or sentiment, the same mention."},{"name":"sentiment","in":"query","schema":{"type":"string","enum":["positive","negative","neutral"]},"description":"With topic, a mention of that topic with that sentiment."},{"name":"has_reply","in":"query","schema":{"type":"boolean"},"description":"Reviews with a live reply (true), posted from Reviewflowz or found on the platform, or with none (false). A draft doesn't count."},{"name":"removed","in":"query","schema":{"type":"boolean"},"description":"Reviews the platform took down (true), or the ones still up (false). Left out, both are listed."},{"name":"q","in":"query","schema":{"type":"string"},"description":"Full-text search (title, text, pros, cons, reviewer). Every word must match, each as the start of a word: q=refund lat finds \"refunded late\"."},{"name":"keywords","in":"query","schema":{"type":"string"},"description":"Like q, but any of the words: keywords=refund,late."},{"name":"has_text","in":"query","schema":{"type":"boolean"},"description":"Reviews with written text (true) or a rating alone (false)."},{"name":"text_length_min","in":"query","schema":{"type":"integer","minimum":1},"description":"At least this many words, title, text, pros and cons together."},{"name":"include","in":"query","schema":{"type":"string"},"description":"Parts to add to each review, comma-separated: `media` (the reviewer's photos and videos), `reply` (the business's current reply, written in Reviewflowz or on the platform), `events` (the review's history: found, edited, removed, replied to)."},{"name":"fields","in":"query","schema":{"type":"string"},"description":"Only these top-level fields, comma-separated: fields=rating,text,date. `id` always comes. Name a part added with include here too."},{"name":"columns","in":"query","schema":{"type":"string"},"description":"Comma-separated export columns (rating, date, reviewer, review_profile, location, market, version, reply_text, last_seen, custom_dimension_\u003cid\u003e...), or all for every column this account has. Each review gains a columns object; a column no source of the account fills is null."},{"name":"versions","in":"query","schema":{"type":"string","enum":["latest","all"],"default":"latest"},"description":"latest lists only the current version of an edited review; all lists every version."},{"name":"sort","in":"query","schema":{"type":"string","enum":["created","date"],"default":"created"},"description":"created: newest found first. date: newest posted on the platform first (reviews without a platform date are left out)."},{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"}],"responses":{"200":{"description":"A page of reviews.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PageMeta"},{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Review"}}}}]}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["reviews:read"]}]}},"/topics":{"get":{"operationId":"listTopics","summary":"List topics","description":"The topics reviews are tagged with, and their subtopics.\n\nRequires `reviews:read`.","tags":["Reviews"],"responses":{"200":{"description":"Topics with their subtopics.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","examples":["top_3"]},"name":{"type":"string","examples":["Staff"]},"subtopics":{"type":"array","items":{"type":"string"},"examples":[["Friendliness","Speed","Knowledge"]]}}}}}}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["reviews:read"]}]}},"/excerpts":{"get":{"operationId":"listExcerpts","summary":"List excerpts","description":"The quoted parts of reviews, one per topic a review mentions, each with its topic, subtopic and sentiment. topic, subtopic and sentiment pick the excerpts themselves: topic=Staff\u0026sentiment=negative lists only the negative things said about staff. The other filters pick the reviews they come from. Newest posted first, up to 500 at a time. Excerpts exist once sentiment analysis is on for the account.\n\nRequires `reviews:read`.","tags":["Reviews"],"x-parameter-groups":[{"title":"Which excerpts","parameters":["topic","subtopic","sentiment"]},{"title":"From which reviews","parameters":["id","source","platform","location","product","dimension[key]","source_created_after","rating","rating_min","rating_max","date_after","date_before","created_after","created_before","updated_after","language","country","tag","owner","has_reply","removed","q","keywords","has_text","text_length_min","versions"]},{"title":"Paging","parameters":["limit","cursor"]}],"parameters":[{"name":"topic","in":"query","schema":{"type":"string"},"example":"Staff","description":"Comma-separated topic names (GET /v3/topics lists them)."},{"name":"subtopic","in":"query","schema":{"type":"string"},"description":"Comma-separated subtopic names."},{"name":"sentiment","in":"query","schema":{"type":"string","enum":["positive","negative","neutral"]},"description":"Comma-separated: sentiment=negative."},{"name":"id","in":"query","schema":{"type":"string"},"description":"Comma-separated review ids, up to 500."},{"name":"source","in":"query","schema":{"type":"string"},"description":"Comma-separated source ids."},{"name":"platform","in":"query","schema":{"type":"string"},"description":"Comma-separated platform ids."},{"name":"location","in":"query","schema":{"type":"string"},"description":"Comma-separated location ids."},{"name":"product","in":"query","schema":{"type":"string"},"description":"Comma-separated product ids (accounts that group sources into products)."},{"name":"dimension[key]","in":"query","schema":{"type":"string"},"description":"Reviews of sources with this custom dimension value (comma-separated values)."},{"name":"source_created_after","in":"query","schema":{"type":"string","format":"date-time"},"description":"Reviews of sources added at or after."},{"name":"rating","in":"query","schema":{"type":"string"},"description":"Star ratings of the review, comma-separated: rating=1,2 (4 includes 4.5)."},{"name":"rating_min","in":"query","schema":{"type":"number"},"description":"Reviews scored at least this: rating_min=4."},{"name":"rating_max","in":"query","schema":{"type":"number"},"description":"Reviews scored at most this: rating_max=3 (3.5 is out)."},{"name":"date_after","in":"query","schema":{"type":"string","format":"date-time"},"description":"Reviews posted on the platform at or after."},{"name":"date_before","in":"query","schema":{"type":"string","format":"date-time"},"description":"Reviews posted on the platform before."},{"name":"created_after","in":"query","schema":{"type":"string","format":"date-time"},"description":"Reviews found by Reviewflowz at or after."},{"name":"created_before","in":"query","schema":{"type":"string","format":"date-time"},"description":"Reviews found by Reviewflowz before."},{"name":"updated_after","in":"query","schema":{"type":"string","format":"date-time"},"description":"Reviews found, edited, removed, reinstated, replied to, tagged or assigned an owner after this time, so their updated_at is after it."},{"name":"language","in":"query","schema":{"type":"string"},"description":"Comma-separated ISO 639-1 codes of the review."},{"name":"country","in":"query","schema":{"type":"string"},"description":"The reviewer's country, where the platform gives one: comma-separated ISO 3166 codes."},{"name":"tag","in":"query","schema":{"type":"string"},"description":"Comma-separated tag ids: reviews with any of them."},{"name":"owner","in":"query","schema":{"type":"string"},"description":"Comma-separated owner ids (confirmed assignments). pending matches reviews with an owner suggestion waiting for a person; with ids, a review matching either is returned."},{"name":"has_reply","in":"query","schema":{"type":"boolean"},"description":"Reviews with a live reply (true) or with none (false). A draft doesn't count."},{"name":"removed","in":"query","schema":{"type":"boolean"},"description":"Reviews the platform took down (true), or the ones still up (false)."},{"name":"q","in":"query","schema":{"type":"string"},"description":"Full-text search of the review (title, text, pros, cons, reviewer); every word must match."},{"name":"keywords","in":"query","schema":{"type":"string"},"description":"Like q, but any of the words: keywords=refund,late."},{"name":"has_text","in":"query","schema":{"type":"boolean"},"description":"Reviews with written text (true) or a rating alone (false)."},{"name":"text_length_min","in":"query","schema":{"type":"integer","minimum":1},"description":"At least this many words, title, text, pros and cons together."},{"name":"versions","in":"query","schema":{"type":"string","enum":["latest","all"],"default":"latest"},"description":"latest reads only the current version of an edited review; all reads every version."},{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"}],"responses":{"200":{"description":"A page of excerpts.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PageMeta"},{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","examples":["exc_5521"]},"text":{"type":"string","description":"The words of the review this excerpt quotes.","examples":["the staff on the second floor were patient with our kids"]},"topic":{"type":["string","null"],"examples":["Staff"]},"subtopic":{"type":["string","null"],"examples":["Friendliness"]},"sentiment":{"type":["string","null"],"enum":["positive","negative","neutral",null],"examples":["positive"]},"sentiment_score":{"type":["number","null"],"description":"From -1 (most negative) to 1 (most positive).","examples":[0.92]},"review":{"type":"string","description":"The review it comes from (GET /v3/reviews?id=...).","examples":["rev_918273"]},"source":{"type":["string","null"],"examples":["src_4812"]},"rating":{"type":["number","null"],"description":"The review's rating.","examples":[5]},"date":{"type":"string","format":"date-time","description":"When the review was posted on the platform.","examples":["2026-11-09T18:32:00Z"]}}}}}}]}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["reviews:read"]}]}},"/ratings":{"get":{"operationId":"listRatings","summary":"Get ratings","description":"One row per source and country, with new ratings and the score change over 7 and 30\ndays. App Store: real per-country counts and stars; worldwide sums the countries and\nweights the score by count. Play Store: Google repeats one worldwide count in every\ncountry, so countries have count null and stars as shares; worldwide is Google's default\nrating, and countries that only show it are local false. Every other platform has one\nworldwide row (Google Maps and Tripadvisor are computed from their reviews).\n\n\nRequires `reviews:read`.","tags":["Ratings"],"parameters":[{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"},{"name":"country","in":"query","schema":{"type":"string","default":"worldwide"},"description":"worldwide, all, or ISO codes: US,DE."},{"name":"source","in":"query","schema":{"type":"string"}},{"name":"platform","in":"query","schema":{"type":"string"}},{"name":"location","in":"query","schema":{"type":"string"}},{"name":"dimension[key]","in":"query","schema":{"type":"string"}},{"name":"sort","in":"query","schema":{"type":"string"},"description":"score, count, new_ratings_7d, new_ratings_30d, score_change_7d, score_change_30d, country or as_of; prefix - for descending. Nulls last."}],"responses":{"200":{"description":"A page of rating rows.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PageMeta"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/RatingRow"}}}}]}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["reviews:read"]}]}},"/ratings/history":{"get":{"operationId":"ratingHistory","summary":"Get rating history","description":"One series per source and country. Each period's value is its last snapshot (ratings are levels, never averaged). new_ratings and new_by_star count since the previous point. Pages by source.\n\nRequires `reviews:read`.","tags":["Ratings"],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":50},"description":"Sources per page: 1 to 50 (default 50)."},{"$ref":"#/components/parameters/Cursor"},{"name":"interval","in":"query","schema":{"type":"string","enum":["day","week","month"],"default":"day"}},{"name":"from","in":"query","schema":{"type":"string","format":"date"},"description":"Default 90 days before to. At most 731 days."},{"name":"to","in":"query","schema":{"type":"string","format":"date"},"description":"Default today."},{"name":"country","in":"query","schema":{"type":"string","default":"worldwide"}},{"name":"source","in":"query","schema":{"type":"string"}},{"name":"platform","in":"query","schema":{"type":"string"}},{"name":"location","in":"query","schema":{"type":"string"}},{"name":"dimension[key]","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Series.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PageMeta"},{"type":"object","properties":{"interval":{"type":"string"},"from":{"type":"string","format":"date"},"to":{"type":"string","format":"date"},"data":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"platform":{"type":"string"},"country":{"type":"string"},"local":{"type":"boolean"},"points":{"type":"array","items":{"type":"object","properties":{"period":{"type":"string","format":"date","description":"Start of the day, week or month."},"as_of":{"type":"string","format":"date","description":"The snapshot used."},"score":{"type":["number","null"]},"count":{"type":["integer","null"]},"stars":{"$ref":"#/components/schemas/Stars"},"stars_share":{"$ref":"#/components/schemas/Stars"},"new_ratings":{"type":["integer","null"]},"new_by_star":{"$ref":"#/components/schemas/Stars"}}}}}}}}}]}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["reviews:read"]}]}},"/replies":{"get":{"operationId":"listReplies","summary":"List replies","description":"Replies written in Reviewflowz (drafts, submitted, published, failed), newest first. Replies written directly on a platform appear on the review (include=reply).\n\nRequires `replies:read`.","tags":["Replies"],"parameters":[{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"},{"name":"status","in":"query","schema":{"type":"string"},"description":"Comma-separated: draft, submitted, published, failed."},{"name":"review","in":"query","schema":{"type":"string"}},{"name":"source","in":"query","schema":{"type":"string"}},{"name":"updated_after","in":"query","schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"A page of replies.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PageMeta"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Reply"}}}}]}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["replies:read"]}]}},"/reviews/{review_id}/reply":{"parameters":[{"name":"review_id","in":"path","required":true,"schema":{"type":"string"}}],"post":{"operationId":"replyToReview","summary":"Create a reply","description":"With publish (the default) the reply is posted to the platform now; on platforms we can't post to (409 not_repliable) save a draft and post it there. A published reply is replaced by posting again.\n\nRequires `replies:write`.","tags":["Replies"],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["text"],"properties":{"text":{"type":"string"},"publish":{"type":"boolean","default":true}}}}}},"responses":{"201":{"description":"The reply, published (replies_controller.rb:196-198). With publish false, the draft.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Reply"}],"x-example-as":"reply.published"}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"502":{"$ref":"#/components/responses/Problem"},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["replies:write"]}]}},"/reviews/{review_id}/reply/draft":{"parameters":[{"name":"review_id","in":"path","required":true,"schema":{"type":"string"}}],"post":{"operationId":"draftReply","summary":"Draft a reply","description":"The account's reply agent (or `agent`) writes the review's draft. Nothing is posted.\nWith `save: false` the text comes back (200) without becoming the review's draft, so\nthe reply queue is left as it was; that also works on a review already replied to.\n\n\nRequires `replies:write`.","tags":["Replies"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"agent":{"type":"string","description":"A reply agent id."},"save":{"type":"boolean","default":true,"description":"false returns the text without saving it as the review's draft."}}}}}},"responses":{"201":{"description":"The draft.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Reply"}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"200":{"description":"save: false (listed after 201, the default): the text, not saved.","content":{"application/json":{"schema":{"type":"object","required":["review","text","saved"],"properties":{"review":{"type":"string"},"text":{"type":"string"},"agent":{"type":["string","null"],"examples":[null],"description":"The agent you sent, or null for the account's default agent (replies_controller.rb:159)."},"saved":{"type":"boolean","const":false,"examples":[false]}}}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["replies:write"]}],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}]}},"/replies/{id}":{"parameters":[{"$ref":"#/components/parameters/Id"}],"patch":{"operationId":"updateReply","summary":"Update a reply","description":"Edit a draft, or a published reply where the platform allows it.\n\nRequires `replies:write`.","tags":["Replies"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["text"],"properties":{"text":{"type":"string"}}}}}},"responses":{"200":{"description":"The draft.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Reply"}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"201":{"description":"The reply, posted again (replies_controller.rb:109-110).","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Reply"}],"x-example-as":"reply.updated"}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["replies:write"]}]},"delete":{"operationId":"deleteReply","summary":"Delete a reply","description":"Deletes a draft or a failed reply.\n\nRequires `replies:write`.","tags":["Replies"],"responses":{"204":{"$ref":"#/components/responses/NoContent"},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["replies:write"]}]}},"/reply-agents":{"get":{"operationId":"listReplyAgents","summary":"List reply agents","description":"The AI agents that write replies.\n\nRequires `replies:read`.","tags":["Replies"],"responses":{"200":{"description":"Agents.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ReplyAgent"}}}}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["replies:read"]}]}},"/reply-agents/{id}":{"parameters":[{"$ref":"#/components/parameters/Id"}],"get":{"operationId":"getReplyAgent","summary":"Get a reply agent","tags":["Replies"],"responses":{"200":{"description":"The agent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplyAgent"}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["replies:read"]}],"description":"Requires `replies:read`."},"patch":{"operationId":"updateReplyAgent","summary":"Update a reply agent","description":"Change an agent's name, tone or instructions.\n\nRequires `replies:write`.","tags":["Replies"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"instructions":{"type":"string"},"signature":{"type":["string","null"]},"reply_language":{"type":"string","description":"same_as_review, or an ISO 639-1 code to always reply in that language."},"learn_from_past_replies":{"type":"boolean"},"default":{"type":"boolean"}}}}}},"responses":{"200":{"description":"The agent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplyAgent"}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["replies:write"]}]}},"/tags":{"get":{"operationId":"listTags","summary":"List tags","description":"Every tag, alphabetically. With q, the tags whose name matches (prefix and fuzzy), best match first.\n\nRequires `organize:read`.","tags":["Organize"],"parameters":[{"name":"q","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Tag"}}}}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["organize:read"]}]},"post":{"operationId":"createTag","summary":"Create a tag","tags":["Organize"],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tag"}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"default":{"$ref":"#/components/responses/Problem"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string"},"auto_check":{"type":"boolean"}}}}}},"security":[{"apiKey":[]},{"oauth":["organize:write"]}],"description":"Requires `organize:write`.","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}]}},"/tags/{id}":{"parameters":[{"$ref":"#/components/parameters/Id"}],"get":{"operationId":"getTag","summary":"Get a tag","tags":["Organize"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tag"}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["organize:read"]}],"description":"Requires `organize:read`."},"patch":{"operationId":"updateTag","summary":"Update a tag","tags":["Organize"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tag"}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"auto_check":{"type":"boolean"}}}}}},"security":[{"apiKey":[]},{"oauth":["organize:write"]}],"description":"Requires `organize:write`."},"delete":{"operationId":"deleteTag","summary":"Delete a tag","description":"Deletes the tag and removes it from every review.\n\nRequires `organize:write`.","tags":["Organize"],"responses":{"204":{"$ref":"#/components/responses/NoContent"},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["organize:write"]}]}},"/reviews/{review_id}/tags/{tag_id}":{"parameters":[{"name":"review_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"tag_id","in":"path","required":true,"schema":{"type":"string"}}],"put":{"operationId":"tagReview","summary":"Tag a review","tags":["Organize"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewTags"}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["organize:write"]}],"description":"Requires `organize:write`."},"delete":{"operationId":"untagReview","summary":"Untag a review","tags":["Organize"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewTags"}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["organize:write"]}],"description":"Requires `organize:write`."}},"/owners":{"get":{"operationId":"listOwners","summary":"List owners","description":"The staff that reviews mention.\n\nRequires `organize:read`.","tags":["Organize"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PageMeta"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Owner"}}}}]}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"},{"name":"location","in":"query","schema":{"type":"string"},"description":"Owners available at this location."},{"name":"review","in":"query","schema":{"type":"string"},"description":"Owners who can be assigned to this review, by its location and, on accounts with tours, its tour."},{"name":"q","in":"query","schema":{"type":"string"},"description":"Matches the full name, first name, last name or a nickname, or the start of the employee ID."}],"security":[{"apiKey":[]},{"oauth":["organize:read"]}]},"post":{"operationId":"createOwner","summary":"Create an owner","tags":["Organize"],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Owner"}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"default":{"$ref":"#/components/responses/Problem"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerInput"}}}},"security":[{"apiKey":[]},{"oauth":["organize:write"]}],"description":"Requires `organize:write`.","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}]}},"/owners/{id}":{"parameters":[{"$ref":"#/components/parameters/Id"}],"get":{"operationId":"getOwner","summary":"Get an owner","tags":["Organize"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Owner"}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["organize:read"]}],"description":"Requires `organize:read`."},"patch":{"operationId":"updateOwner","summary":"Update an owner","tags":["Organize"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Owner"}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerInput"}}}},"security":[{"apiKey":[]},{"oauth":["organize:write"]}],"description":"Requires `organize:write`."},"delete":{"operationId":"deleteOwner","summary":"Delete an owner","tags":["Organize"],"responses":{"204":{"$ref":"#/components/responses/NoContent"},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["organize:write"]}],"description":"Requires `organize:write`."}},"/reviews/{review_id}/owners/{owner_id}":{"parameters":[{"name":"review_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"owner_id","in":"path","required":true,"schema":{"type":"string"}}],"put":{"operationId":"assignOwner","summary":"Assign an owner","description":"The owner must work at the review's location.\n\nRequires `organize:write`.","tags":["Organize"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewOwners"}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["organize:write"]}]},"delete":{"operationId":"unassignOwner","summary":"Unassign an owner","description":"Takes an owner's credit for a review off.\n\nRequires `organize:write`.","tags":["Organize"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewOwners"}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["organize:write"]}]}},"/owner-suggestions":{"get":{"operationId":"listOwnerSuggestions","summary":"List owner suggestions","description":"Owners we think reviews mention, waiting for you to accept or reject them.\n\nRequires `organize:read`.","tags":["Organize"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PageMeta"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/OwnerSuggestion"}}}}]}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"},{"name":"review","in":"query","schema":{"type":"string"}}],"security":[{"apiKey":[]},{"oauth":["organize:read"]}]}},"/owner-suggestions/{id}/accept":{"parameters":[{"$ref":"#/components/parameters/Id"}],"post":{"operationId":"acceptOwnerSuggestion","summary":"Accept a suggestion","description":"Credits the suggested owner with the review.\n\nRequires `organize:write`.","tags":["Organize"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerSuggestion"}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["organize:write"]}],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}]}},"/owner-suggestions/{id}/reject":{"parameters":[{"$ref":"#/components/parameters/Id"}],"post":{"operationId":"rejectOwnerSuggestion","summary":"Reject a suggestion","description":"Clears the suggestion.\n\nRequires `organize:write`.","tags":["Organize"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerSuggestion"}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["organize:write"]}],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}]}},"/locations":{"get":{"operationId":"listLocations","summary":"List locations","description":"The physical places that group sources.\n\nRequires `organize:read`.","tags":["Organize"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PageMeta"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Location"}}}}]}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"},{"name":"q","in":"query","schema":{"type":"string"}}],"security":[{"apiKey":[]},{"oauth":["organize:read"]}]},"post":{"operationId":"createLocation","summary":"Create a location","description":"Creates the location and its Google Maps source. On accounts billed per location it is billed.\n\nRequires `organize:write`.","tags":["Organize"],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Location"}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"default":{"$ref":"#/components/responses/Problem"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"place_id":{"type":"string","description":"Google place id (or cid)."},"url":{"type":"string","description":"A Google Maps link, instead of place_id."},"name":{"type":"string"},"address":{"type":"string"}}}}}},"security":[{"apiKey":[]},{"oauth":["organize:write"]}],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}]}},"/locations/{id}":{"parameters":[{"$ref":"#/components/parameters/Id"}],"get":{"operationId":"getLocation","summary":"Get a location","tags":["Organize"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Location"}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["organize:read"]}],"description":"Requires `organize:read`."},"patch":{"operationId":"updateLocation","summary":"Update a location","description":"Change a location's name, phone or website.\n\nRequires `organize:write`.","tags":["Organize"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Location"}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"phone":{"type":"string"},"website":{"type":"string"}}}}}},"security":[{"apiKey":[]},{"oauth":["organize:write"]}]},"delete":{"operationId":"deleteLocation","summary":"Delete a location","description":"Removes the location and stops monitoring its sources.\n\nRequires `organize:write`.","tags":["Organize"],"responses":{"204":{"$ref":"#/components/responses/NoContent"},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["organize:write"]}]}},"/dimensions":{"get":{"operationId":"listDimensions","summary":"List dimensions","description":"Every custom dimension on the account.\n\nRequires `organize:read`.","tags":["Dimensions"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Dimension"}}}}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["organize:read"]}]},"post":{"operationId":"createDimension","summary":"Create a dimension","tags":["Dimensions"],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Dimension"}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"default":{"$ref":"#/components/responses/Problem"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["label"],"properties":{"label":{"type":"string"},"key":{"type":"string","description":"Defaults to the label in snake_case."}}}}}},"security":[{"apiKey":[]},{"oauth":["organize:write"]}],"description":"Requires `organize:write`.","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}]}},"/dimensions/{key}":{"parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string"}}],"get":{"operationId":"getDimension","summary":"Get a dimension","tags":["Dimensions"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Dimension"}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["organize:read"]}],"description":"Requires `organize:read`."},"patch":{"operationId":"updateDimension","summary":"Update a dimension","description":"Renames a dimension's label.\n\nRequires `organize:write`.","tags":["Dimensions"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Dimension"}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["label"],"properties":{"label":{"type":"string"}}}}}},"security":[{"apiKey":[]},{"oauth":["organize:write"]}]},"delete":{"operationId":"deleteDimension","summary":"Delete a dimension","description":"Deletes the dimension and every value set on it.\n\nRequires `organize:write`.","tags":["Dimensions"],"responses":{"204":{"$ref":"#/components/responses/NoContent"},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["organize:write"]}]}},"/dimensions/{key}/values":{"parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string"}}],"get":{"operationId":"listDimensionValues","summary":"List dimension values","description":"The values in use, with how many sources have each.\n\nRequires `organize:read`.","tags":["Dimensions"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"source_count":{"type":"integer"}}}}}}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["organize:read"]}]}},"/dimensions/{key}/values/{value}":{"parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string"}},{"name":"value","in":"path","required":true,"schema":{"type":"string"}}],"patch":{"operationId":"renameDimensionValue","summary":"Rename a value","description":"Renames a value on every source that has it.\n\nRequires `organize:write`.","tags":["Dimensions"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"value":{"type":"string"},"previous_value":{"type":"string"},"source_count":{"type":"integer"}}}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["value"],"properties":{"value":{"type":"string","description":"The new value."}}}}}},"security":[{"apiKey":[]},{"oauth":["organize:write"]}]}},"/sources/{id}/dimensions/{key}":{"parameters":[{"$ref":"#/components/parameters/Id"},{"name":"key","in":"path","required":true,"schema":{"type":"string"}}],"put":{"operationId":"setSourceDimension","summary":"Set a source's value","tags":["Dimensions"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Source"}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["value"],"properties":{"value":{"type":"string"}}}}}},"security":[{"apiKey":[]},{"oauth":["organize:write"]}],"description":"Requires `organize:write`."},"delete":{"operationId":"clearSourceDimension","summary":"Clear a source's value","tags":["Dimensions"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Source"}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["organize:write"]}],"description":"Requires `organize:write`."}},"/sources/dimensions":{"patch":{"operationId":"batchSourceDimensions","summary":"Set values in bulk","description":"A string sets the value, null clears it. All or nothing: every row is checked before anything is written.\n\nRequires `organize:write`.","tags":["Dimensions"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Source"}},"updated":{"type":"integer"}}}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","maxItems":100,"items":{"type":"object","required":["source"],"properties":{"source":{"type":"string"}},"additionalProperties":{"type":["string","null"]}}}}}},"security":[{"apiKey":[]},{"oauth":["organize:write"]}]}},"/stats":{"get":{"operationId":"getStats","summary":"Get stats","description":"For any set of reviews (the /reviews filters), as one total or grouped. Sentiment counts topic mentions (needs the sentiment feature).\n\nRequires `analytics:read`.","tags":["Analytics"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"group_by":{"type":"string"},"interval":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/StatsRow"}}}}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"x-parameter-groups":[{"title":"How to group","parameters":["group_by","interval"]},{"title":"Which reviews","parameters":["id","source","platform","location","product","dimension[key]","source_created_after","rating","rating_min","rating_max","date_after","date_before","created_after","created_before","updated_after","language","country","tag","owner","topic","subtopic","sentiment","has_reply","removed","q","keywords","has_text","text_length_min","versions"]}],"parameters":[{"name":"group_by","in":"query","schema":{"type":"string","enum":["none","period","source","location","platform"],"default":"none"},"description":"One total (none), or a row per period, source, location or platform."},{"name":"interval","in":"query","schema":{"type":"string","enum":["day","week","month","quarter","year"],"default":"month"},"description":"With group_by=period: the length of each period, by the date the review was posted."},{"name":"id","in":"query","schema":{"type":"string"},"description":"Comma-separated review ids, up to 500."},{"name":"source","in":"query","schema":{"type":"string"},"description":"Comma-separated source ids."},{"name":"platform","in":"query","schema":{"type":"string"},"description":"Comma-separated platform ids."},{"name":"location","in":"query","schema":{"type":"string"},"description":"Comma-separated location ids."},{"name":"product","in":"query","schema":{"type":"string"},"description":"Comma-separated product ids (accounts that group sources into products)."},{"name":"dimension[key]","in":"query","schema":{"type":"string"},"description":"Reviews of sources with this custom dimension value (comma-separated values)."},{"name":"source_created_after","in":"query","schema":{"type":"string","format":"date-time"},"description":"Reviews of sources added at or after."},{"name":"rating","in":"query","schema":{"type":"string"},"description":"Star ratings, comma-separated: rating=1,2 (4 includes 4.5)."},{"name":"rating_min","in":"query","schema":{"type":"number"},"description":"Scores of at least this: rating_min=4."},{"name":"rating_max","in":"query","schema":{"type":"number"},"description":"Scores of at most this: rating_max=3 (3.5 is out)."},{"name":"date_after","in":"query","schema":{"type":"string","format":"date-time"},"description":"Posted on the platform at or after."},{"name":"date_before","in":"query","schema":{"type":"string","format":"date-time"},"description":"Posted on the platform before."},{"name":"created_after","in":"query","schema":{"type":"string","format":"date-time"},"description":"Found by Reviewflowz at or after."},{"name":"created_before","in":"query","schema":{"type":"string","format":"date-time"},"description":"Found by Reviewflowz before."},{"name":"updated_after","in":"query","schema":{"type":"string","format":"date-time"},"description":"Reviews found, edited, removed, reinstated, replied to, tagged or assigned an owner after this time."},{"name":"language","in":"query","schema":{"type":"string"},"description":"Comma-separated ISO 639-1 codes."},{"name":"country","in":"query","schema":{"type":"string"},"description":"The reviewer's country, where the platform gives one: comma-separated ISO 3166 codes."},{"name":"tag","in":"query","schema":{"type":"string"},"description":"Comma-separated tag ids: reviews with any of them."},{"name":"owner","in":"query","schema":{"type":"string"},"description":"Comma-separated owner ids (confirmed assignments). pending matches reviews with an owner suggestion waiting for a person; with ids, a review matching either is returned."},{"name":"topic","in":"query","schema":{"type":"string"},"description":"Comma-separated topic names."},{"name":"subtopic","in":"query","schema":{"type":"string"},"description":"Comma-separated subtopic names. With topic or sentiment, the same mention."},{"name":"sentiment","in":"query","schema":{"type":"string","enum":["positive","negative","neutral"]},"description":"With topic, a mention of that topic with that sentiment."},{"name":"has_reply","in":"query","schema":{"type":"boolean"},"description":"Reviews with a live reply (true) or with none (false). A draft doesn't count."},{"name":"removed","in":"query","schema":{"type":"boolean"},"description":"Reviews the platform took down (true), or the ones still up (false). Left out, both are counted."},{"name":"q","in":"query","schema":{"type":"string"},"description":"Full-text search (title, text, pros, cons, reviewer); every word must match."},{"name":"keywords","in":"query","schema":{"type":"string"},"description":"Like q, but any of the words: keywords=refund,late."},{"name":"has_text","in":"query","schema":{"type":"boolean"},"description":"Reviews with written text (true) or a rating alone (false)."},{"name":"text_length_min","in":"query","schema":{"type":"integer","minimum":1},"description":"At least this many words, title, text, pros and cons together."},{"name":"versions","in":"query","schema":{"type":"string","enum":["latest","all"],"default":"latest"},"description":"latest counts only the current version of an edited review; all counts every version."}],"security":[{"apiKey":[]},{"oauth":["analytics:read"]}]}},"/reports/options":{"get":{"operationId":"getReportOptions","summary":"List report fields","description":"For this account (its custom dimensions included), with the rules that decide which\ncombinations are valid. Send a partial selection (visualization, dimensions, metrics)\nto also get what can still be added to it, narrowed the way the app's report builder\nnarrows its dropdowns, and what is wrong with it so far.\n\n\nRequires `analytics:read`.","tags":["Analytics"],"parameters":[{"name":"visualization","in":"query","schema":{"type":"string"}},{"name":"dimensions","in":"query","schema":{"type":"string"},"description":"Comma-separated dimension keys already chosen."},{"name":"metrics","in":"query","schema":{"type":"string"},"description":"Comma-separated metric keys already chosen."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"dimensions":{"type":"array","items":{"type":"object"}},"metrics":{"type":"array","items":{"type":"object"}},"visualizations":{"type":"array","items":{"type":"object"}},"rules":{"type":"array","items":{"type":"string"}},"selection":{"type":"object","description":"With a partial selection only.","properties":{"visualization":{"type":"string"},"dimensions":{"type":"array","items":{"type":"string"}},"metrics":{"type":"array","items":{"type":"string"}}}},"addable_dimensions":{"type":"array","items":{"type":"object"}},"addable_metrics":{"type":"array","items":{"type":"object"}},"config_errors":{"type":"array","items":{"type":"string"}}}}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["analytics:read"]}]}},"/reports/query":{"post":{"operationId":"queryReport","summary":"Run a report","description":"Runs a custom report without saving it.\n\nRequires `analytics:read`.","tags":["Analytics"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","additionalProperties":true,"description":"One row per dimension combination: the dimension values, each metric, and comparison_\u003cmetric\u003e when comparing."}},"next_cursor":{"type":["string","null"]},"has_more":{"type":"boolean"},"report":{"type":"string"},"from":{"type":"string","format":"date"},"to":{"type":"string","format":"date"}}}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"name":"from","in":"query","schema":{"type":"string"},"description":"Start date (default 30 days before to)."},{"name":"to","in":"query","schema":{"type":"string"},"description":"End date (default today)."},{"name":"compare_from","in":"query","schema":{"type":"string"},"description":"Comparison window start."},{"name":"compare_to","in":"query","schema":{"type":"string"},"description":"Comparison window end."},{"name":"sort_by","in":"query","schema":{"type":"string"}},{"name":"sort_direction","in":"query","schema":{"type":"string"}},{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"visualization":{"type":"string","default":"table"},"dimensions":{"type":"array","items":{"type":"string"}},"metrics":{"type":"array","items":{"type":"string"}},"keywords":{"type":"array","items":{"type":"string"}},"filters":{"$ref":"#/components/schemas/ReportFilters"}}}}}},"security":[{"apiKey":[]},{"oauth":["analytics:read"]}]}},"/reports":{"get":{"operationId":"listReports","summary":"List reports","description":"The account's saved custom reports.\n\nRequires `analytics:read`.","tags":["Analytics"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PageMeta"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Report"}}}}]}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"}],"security":[{"apiKey":[]},{"oauth":["analytics:read"]}]},"post":{"operationId":"createReport","summary":"Create a report","tags":["Analytics"],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Report"}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"default":{"$ref":"#/components/responses/Problem"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"visualization":{"type":"string","default":"table"},"dimensions":{"type":"array","items":{"type":"string"}},"metrics":{"type":"array","items":{"type":"string"}},"keywords":{"type":"array","items":{"type":"string"}},"filters":{"$ref":"#/components/schemas/ReportFilters"}}}}}},"security":[{"apiKey":[]},{"oauth":["analytics:write"]}],"description":"Requires `analytics:write`.","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}]}},"/reports/{id}":{"parameters":[{"$ref":"#/components/parameters/Id"}],"get":{"operationId":"getReport","summary":"Get a report","tags":["Analytics"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Report"}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["analytics:read"]}],"description":"Requires `analytics:read`."},"patch":{"operationId":"updateReport","summary":"Update a report","tags":["Analytics"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Report"}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"visualization":{"type":"string","default":"table"},"dimensions":{"type":"array","items":{"type":"string"}},"metrics":{"type":"array","items":{"type":"string"}},"keywords":{"type":"array","items":{"type":"string"}},"filters":{"$ref":"#/components/schemas/ReportFilters"}}}}}},"security":[{"apiKey":[]},{"oauth":["analytics:write"]}],"description":"Requires `analytics:write`."},"delete":{"operationId":"deleteReport","summary":"Delete a report","tags":["Analytics"],"responses":{"204":{"$ref":"#/components/responses/NoContent"},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["analytics:write"]}],"description":"Requires `analytics:write`."}},"/reports/{id}/results":{"parameters":[{"$ref":"#/components/parameters/Id"}],"get":{"operationId":"runReport","summary":"Run a saved report","tags":["Analytics"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","additionalProperties":true,"description":"One row per dimension combination: the dimension values, each metric, and comparison_\u003cmetric\u003e when comparing."}},"next_cursor":{"type":["string","null"]},"has_more":{"type":"boolean"},"report":{"type":"string"},"from":{"type":"string","format":"date"},"to":{"type":"string","format":"date"}}}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"name":"from","in":"query","schema":{"type":"string"},"description":"Start date (default 30 days before to)."},{"name":"to","in":"query","schema":{"type":"string"},"description":"End date (default today)."},{"name":"compare_from","in":"query","schema":{"type":"string"},"description":"Comparison window start."},{"name":"compare_to","in":"query","schema":{"type":"string"},"description":"Comparison window end."},{"name":"sort_by","in":"query","schema":{"type":"string"}},{"name":"sort_direction","in":"query","schema":{"type":"string"}},{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"}],"security":[{"apiKey":[]},{"oauth":["analytics:read"]}],"description":"Requires `analytics:read`."}},"/contacts":{"get":{"operationId":"listContacts","summary":"List contacts","description":"The customers you ask for reviews.\n\nRequires `requests:read`.","tags":["Review requests"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PageMeta"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Contact"}}}}]}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"},{"name":"email","in":"query","schema":{"type":"string"},"description":"Exact email (case-insensitive)."},{"name":"phone","in":"query","schema":{"type":"string"},"description":"Exact phone, international format."},{"name":"segment","in":"query","schema":{"type":"string"}},{"name":"campaign","in":"query","schema":{"type":"string"},"description":"A campaign id. Only the people in it, who POST /v3/campaigns/{id}/contacts would refuse to add again."},{"name":"created_after","in":"query","schema":{"type":"string"}}],"security":[{"apiKey":[]},{"oauth":["requests:read"]}]},"post":{"operationId":"createContact","summary":"Create a contact","tags":["Review requests"],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Contact"}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"default":{"$ref":"#/components/responses/Problem"}},"description":"Never messages anyone: the contact joins All contacts silently. Use POST /campaigns/{id}/contacts to put someone in a campaign.\n\nRequires `requests:write`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string"},"phone":{"type":"string","description":"International format, +14155550100."},"first_name":{"type":"string"},"last_name":{"type":"string"},"attributes":{"type":"object","additionalProperties":true,"description":"Values for existing contact attributes, by name."}}}}}},"security":[{"apiKey":[]},{"oauth":["requests:write"]}],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}]}},"/contacts/batch":{"post":{"operationId":"batchContacts","summary":"Upsert contacts","description":"A row with the email (or phone) of an existing contact updates it. Bad rows are reported one by one; the good ones are saved.\n\nRequires `requests:write`.","tags":["Review requests"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"status":{"type":"string","enum":["created","updated","failed"]},"id":{"type":"string"},"errors":{"type":"array","items":{"type":"object"}}}}},"created":{"type":"integer"},"updated":{"type":"integer"},"failed":{"type":"integer"}}}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"default":{"$ref":"#/components/responses/Problem"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["contacts"],"properties":{"contacts":{"type":"array","maxItems":100,"items":{"type":"object","properties":{"email":{"type":"string"},"phone":{"type":"string","description":"International format, +14155550100."},"first_name":{"type":"string"},"last_name":{"type":"string"},"attributes":{"type":"object","additionalProperties":true,"description":"Values for existing contact attributes, by name."}}}}}}}}},"security":[{"apiKey":[]},{"oauth":["requests:write"]}],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}]}},"/contacts/{id}":{"parameters":[{"$ref":"#/components/parameters/Id"}],"get":{"operationId":"getContact","summary":"Get a contact","tags":["Review requests"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Contact"}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["requests:read"]}],"description":"Requires `requests:read`."},"patch":{"operationId":"updateContact","summary":"Update a contact","tags":["Review requests"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Contact"}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string"},"phone":{"type":"string","description":"International format, +14155550100."},"first_name":{"type":"string"},"last_name":{"type":"string"},"attributes":{"type":"object","additionalProperties":true,"description":"Values for existing contact attributes, by name."}}}}}},"security":[{"apiKey":[]},{"oauth":["requests:write"]}],"description":"Requires `requests:write`."},"delete":{"operationId":"deleteContact","summary":"Delete a contact","tags":["Review requests"],"responses":{"204":{"$ref":"#/components/responses/NoContent"},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["requests:write"]}],"description":"Requires `requests:write`."}},"/contact-attributes":{"get":{"operationId":"listContactAttributes","summary":"List contact fields","description":"The custom fields on contacts.\n\nRequires `requests:read`.","tags":["Review requests"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ContactAttribute"}}}}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["requests:read"]}]},"post":{"operationId":"createContactAttribute","summary":"Create a contact field","description":"Adds a custom field to contacts.\n\nRequires `requests:write`.","tags":["Review requests"],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactAttribute"}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"default":{"$ref":"#/components/responses/Problem"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string"},"data_type":{"type":"string","enum":["string","number","boolean","datetime","email"]}}}}}},"security":[{"apiKey":[]},{"oauth":["requests:write"]}],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}]}},"/segments":{"get":{"operationId":"listSegments","summary":"List segments","description":"Saved groups of contacts.\n\nRequires `requests:read`.","tags":["Review requests"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Segment"}}}}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["requests:read"]}]},"post":{"operationId":"createSegment","summary":"Create a segment","tags":["Review requests"],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Segment"}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"default":{"$ref":"#/components/responses/Problem"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string"}}}}}},"security":[{"apiKey":[]},{"oauth":["requests:write"]}],"description":"Requires `requests:write`.","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}]}},"/segments/{id}":{"parameters":[{"$ref":"#/components/parameters/Id"}],"get":{"operationId":"getSegment","summary":"Get a segment","tags":["Review requests"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Segment"}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["requests:read"]}],"description":"Requires `requests:read`."},"patch":{"operationId":"renameSegment","summary":"Update a segment","tags":["Review requests"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Segment"}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"}}}}}},"security":[{"apiKey":[]},{"oauth":["requests:write"]}],"description":"Requires `requests:write`."},"delete":{"operationId":"deleteSegment","summary":"Delete a segment","description":"Deletes a segment that no campaign uses.\n\nRequires `requests:write`.","tags":["Review requests"],"responses":{"204":{"$ref":"#/components/responses/NoContent"},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["requests:write"]}]}},"/segments/{id}/members":{"parameters":[{"$ref":"#/components/parameters/Id"}],"post":{"operationId":"updateSegmentMembers","summary":"Update segment contacts","description":"Adding to a segment a live campaign sends to is refused: use POST /campaigns/{id}/contacts, which confirms the send.\n\nRequires `requests:write`.","tags":["Review requests"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Segment"}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"default":{"$ref":"#/components/responses/Problem"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"add":{"type":"array","maxItems":100,"items":{"type":"string"}},"remove":{"type":"array","maxItems":100,"items":{"type":"string"}}}}}}},"security":[{"apiKey":[]},{"oauth":["requests:write"]}],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}]}},"/campaigns":{"get":{"operationId":"listCampaigns","summary":"List campaigns","description":"The account's review-request campaigns.\n\nRequires `requests:read`.","tags":["Review requests"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PageMeta"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Campaign"}}}}]}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"}],"security":[{"apiKey":[]},{"oauth":["requests:read"]}]},"post":{"operationId":"createCampaign","summary":"Create a campaign","description":"Created off, set up as the app sets up a new campaign for whatever the call leaves out: its own list of contacts, one `most_reviews` destination per platform the account has a source on (accounts billed per location; others name their sources), and the default first message, sent as you. An incomplete message is kept as a draft; `blockers` says what is missing before it can be turned on.\n\nRequires `requests:write`.","tags":["Review requests"],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Campaign"}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"default":{"$ref":"#/components/responses/Problem"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"channel":{"type":"string","enum":["email","sms","whatsapp"]},"segment":{"type":["string","null"],"description":"A segment id, so its new members get the request. Null or left out, the campaign's own list."},"destinations":{"type":"array","maxItems":20,"description":"Where the review page sends customers, in order of preference. Replaces the ones it has.","items":{"type":"object","properties":{"platform":{"type":"string","description":"A platform id, on accounts billed per location (each customer's location picks the source)."},"source":{"type":"string","description":"A source id, on any other account."},"goal":{"type":"string","enum":["most_reviews","rating","five_star_reviews"],"default":"most_reviews"},"target":{"type":"number","description":"The rating to reach (1 to 5) for `rating`, the number of 5-star reviews for `five_star_reviews`."},"button_text":{"type":"string"}}}},"send_delay_minutes":{"type":"integer","description":"Minutes from being added to the first message."},"message":{"type":"object","properties":{"subject":{"type":"string"},"body":{"type":"string"},"cta_text":{"type":"string"},"sender":{"type":"string"},"reply_to":{"type":"string"}}}}}}}},"security":[{"apiKey":[]},{"oauth":["requests:write"]}],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}]}},"/campaigns/{id}":{"parameters":[{"$ref":"#/components/parameters/Id"}],"get":{"operationId":"getCampaign","summary":"Get a campaign","tags":["Review requests"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Campaign"}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["requests:read"]}],"description":"Requires `requests:read`."},"patch":{"operationId":"updateCampaign","summary":"Update a campaign","description":"Changes a campaign that is switched off. One that is on answers 409 campaign_live, unless you send `while_on: pause_and_resume`.\n\nRequires `requests:write`.","tags":["Review requests"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Campaign"}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"channel":{"type":"string","enum":["email","sms","whatsapp"]},"segment":{"type":["string","null"],"description":"A segment id, so its new members get the request. Null or left out, the campaign's own list."},"destinations":{"type":"array","maxItems":20,"description":"Where the review page sends customers, in order of preference. Replaces the ones it has.","items":{"type":"object","properties":{"platform":{"type":"string","description":"A platform id, on accounts billed per location (each customer's location picks the source)."},"source":{"type":"string","description":"A source id, on any other account."},"goal":{"type":"string","enum":["most_reviews","rating","five_star_reviews"],"default":"most_reviews"},"target":{"type":"number","description":"The rating to reach (1 to 5) for `rating`, the number of 5-star reviews for `five_star_reviews`."},"button_text":{"type":"string"}}}},"send_delay_minutes":{"type":"integer","description":"Minutes from being added to the first message."},"while_on":{"type":"string","enum":["pause_and_resume"],"description":"For a campaign that is on: change it without switching it off. It keeps sending throughout: no one waiting for their first request loses their place, and no campaign.paused or campaign.resumed event goes out. A change that would leave it unable to send (an incomplete message, no destination) answers 409 campaign_incomplete with the blockers, and nothing is changed."},"message":{"type":"object","properties":{"subject":{"type":"string"},"body":{"type":"string"},"cta_text":{"type":"string"},"sender":{"type":"string"},"reply_to":{"type":"string"}}}}}}}},"security":[{"apiKey":[]},{"oauth":["requests:write"]}]},"delete":{"operationId":"deleteCampaign","summary":"Delete a campaign","description":"Deletes a campaign that is switched off.\n\nRequires `requests:write`.","tags":["Review requests"],"responses":{"204":{"$ref":"#/components/responses/NoContent"},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["requests:write"]}]}},"/campaigns/{id}/activate":{"parameters":[{"$ref":"#/components/parameters/Id"}],"post":{"operationId":"activateCampaign","summary":"Start a campaign","description":"The app's own turn-on: the same checks, credit charge and setup steps. Only people who join after this get a request. 409 lists blockers; 402 asks for credits or a 3-D Secure confirmation (hosted_invoice_url).\n\nRequires `requests:write`.","tags":["Review requests"],"responses":{"200":{"description":"On. (campaigns_controller.rb:81 and :85-86 answer only an active campaign with 200.)","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Campaign"},{"type":"object","properties":{"state":{"type":"string","enum":["active"]}}}]}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"202":{"description":"Waiting on an auto-recharge of credits; it turns on when they land.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Campaign"},{"type":"object","properties":{"activation":{"type":"string","enum":["pending_credits"],"description":"The turn-on waits for the credits the card was charged for (campaigns_controller.rb:87-88). `state` stays what it was until then."}}}]}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["requests:write"]}],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}]}},"/campaigns/{id}/pause":{"parameters":[{"$ref":"#/components/parameters/Id"}],"post":{"operationId":"pauseCampaign","summary":"Stop a campaign","description":"Scheduled follow-ups hold until the campaign is turned on again.\n\nRequires `requests:write`.","tags":["Review requests"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Campaign"}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["requests:write"]}],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}]}},"/campaigns/{id}/contacts":{"parameters":[{"$ref":"#/components/parameters/Id"}],"post":{"operationId":"addCampaignContacts","summary":"Add people to a campaign","description":"All or nothing: if any contact is invalid, nobody is added.\n\nRequires `requests:write`.","tags":["Review requests"],"responses":{"201":{"description":"Added","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","x-example-omit":["unreachable"],"properties":{"contact":{"type":"string"},"sends":{"type":"boolean"},"unreachable":{"type":"string","description":"Why this person gets no request, when the campaign is on and they don't. Absent when `sends` is true."}}}}}}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"default":{"$ref":"#/components/responses/Problem"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["contacts"],"properties":{"contacts":{"type":"array","maxItems":100,"items":{"type":"object","properties":{"email":{"type":"string"},"phone":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"location":{"type":"string","description":"Entry location, on accounts billed per location with several."},"attributes":{"type":"object","description":"Custom contact fields by name, like `{\"Ticket type\": \"Summit\"}`, for the message's merge fields. Each must exist (GET /v3/contact-attributes). A value sent replaces the one on file; first and last names only fill a blank.","additionalProperties":true}}}},"confirm":{"type":"boolean","description":"Required when any of them would get a request. Without it the call adds nobody and answers 409 confirmation_required with who would be messaged and when."}}}}}},"security":[{"apiKey":[]},{"oauth":["requests:write"]}],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}]}},"/invitations":{"get":{"operationId":"listInvitations","summary":"List requests","description":"Every review request sent.\n\nRequires `requests:read`.","tags":["Review requests"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PageMeta"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Invitation"}}}}]}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"},{"name":"campaign","in":"query","schema":{"type":"string"}},{"name":"contact","in":"query","schema":{"type":"string"}},{"name":"created_after","in":"query","schema":{"type":"string"}}],"security":[{"apiKey":[]},{"oauth":["requests:read"]}]}},"/invitations/{id}":{"parameters":[{"$ref":"#/components/parameters/Id"}],"get":{"operationId":"getInvitation","summary":"Get a request","tags":["Review requests"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Invitation"}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["requests:read"]}],"description":"Requires `requests:read`."}},"/senders":{"get":{"operationId":"listSenders","summary":"List senders","description":"The email and SMS senders the account can send from.\n\nRequires `requests:read`.","tags":["Review requests"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"channel":{"type":"string","enum":["email","sms"]},"from":{"type":"string"},"status":{"type":"string"},"created_at":{"type":"string","format":"date-time"}}}}}}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["requests:read"]}]}},"/opt-outs":{"get":{"operationId":"listOptOuts","summary":"List opt-outs","description":"Contacts who must never be contacted.\n\nRequires `requests:read`.","tags":["Review requests"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PageMeta"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/OptOut"}}}}]}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"}],"security":[{"apiKey":[]},{"oauth":["requests:read"]}]},"post":{"operationId":"createOptOut","summary":"Create an opt-out","tags":["Review requests"],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OptOut"}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"default":{"$ref":"#/components/responses/Problem"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string"},"phone":{"type":"string"},"contact":{"type":"string"},"channels":{"type":"array","items":{"type":"string","enum":["email","sms"]},"description":"Default both."}}}}}},"security":[{"apiKey":[]},{"oauth":["requests:write"]}],"description":"Requires `requests:write`.","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}]}},"/opt-outs/{id}":{"parameters":[{"$ref":"#/components/parameters/Id"}],"delete":{"operationId":"deleteOptOut","summary":"Delete an opt-out","description":"Lifts an opt-out. Only do this when the person asked to hear from you again.\n\nRequires `requests:write`.","tags":["Review requests"],"responses":{"204":{"$ref":"#/components/responses/NoContent"},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"name":"channels","in":"query","schema":{"type":"string"},"description":"email, sms or both (default)."}],"security":[{"apiKey":[]},{"oauth":["requests:write"]}]}},"/widgets":{"get":{"operationId":"listWidgets","summary":"List widgets","description":"The account's website widgets.\n\nRequires `widgets:read`.","tags":["Widgets"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Widget"}}}}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["widgets:read"]}]},"post":{"operationId":"createWidget","summary":"Create a widget","tags":["Widgets"],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Widget"}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"default":{"$ref":"#/components/responses/Problem"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"template":{"type":"string","enum":["masonry","slider"]},"sources":{"type":"array","items":{"type":"string"},"description":"At least one."},"count":{"type":"integer","minimum":1,"maximum":100},"min_rating":{"type":"integer","minimum":1,"maximum":5},"language":{"type":"string"},"require_content":{"type":"boolean"},"require_reviewer":{"type":"boolean"},"tags":{"type":"array","items":{"type":"string"}},"custom_css":{"type":"string"}}}}}},"security":[{"apiKey":[]},{"oauth":["widgets:write"]}],"description":"Requires `widgets:write`.","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}]}},"/widgets/{id}":{"parameters":[{"$ref":"#/components/parameters/Id"}],"get":{"operationId":"getWidget","summary":"Get a widget","description":"One widget, with its embed code.\n\nRequires `widgets:read`.","tags":["Widgets"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Widget"}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["widgets:read"]}]},"patch":{"operationId":"updateWidget","summary":"Update a widget","tags":["Widgets"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Widget"}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"template":{"type":"string","enum":["masonry","slider"]},"sources":{"type":"array","items":{"type":"string"},"description":"At least one."},"count":{"type":"integer","minimum":1,"maximum":100},"min_rating":{"type":"integer","minimum":1,"maximum":5},"language":{"type":"string"},"require_content":{"type":"boolean"},"require_reviewer":{"type":"boolean"},"tags":{"type":"array","items":{"type":"string"}},"custom_css":{"type":"string"}}}}}},"security":[{"apiKey":[]},{"oauth":["widgets:write"]}],"description":"Requires `widgets:write`."},"delete":{"operationId":"deleteWidget","summary":"Delete a widget","tags":["Widgets"],"responses":{"204":{"$ref":"#/components/responses/NoContent"},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["widgets:write"]}],"description":"Requires `widgets:write`."}},"/alerts":{"get":{"operationId":"listAlerts","summary":"List alerts","description":"Where new reviews are sent.\n\nRequires `widgets:read`.","tags":["Alerts"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Alert"}}}}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["widgets:read"]}]},"post":{"operationId":"createAlert","summary":"Create an alert","tags":["Alerts"],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Alert"}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"default":{"$ref":"#/components/responses/Problem"}},"description":"Created off. Turning it on (active: true) needs a destination and a source, and counts against the plan's active automations.\n\nRequires `widgets:write`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["each_review","daily_recap","weekly_recap"]},"destination":{"oneOf":[{"type":"string","description":"A destination id from GET /alerts/destinations."},{"type":"object","properties":{"webhook_url":{"type":"string","format":"uri"}}}]},"sources":{"type":"array","items":{"type":"string"}},"min_rating":{"type":["integer","null"]},"max_rating":{"type":["integer","null"]},"active":{"type":"boolean"}}}}}},"security":[{"apiKey":[]},{"oauth":["widgets:write"]}],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}]}},"/alerts/destinations":{"get":{"operationId":"listAlertDestinations","summary":"List alert destinations","description":"Slack, Teams, email recipients and the rest are connected in the app; a webhook URL can be given directly on an alert.\n\nRequires `widgets:read`.","tags":["Alerts"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","description":"slack, msteams, email, webhook, google_sheets..."},"name":{"type":"string"}}}}}}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["widgets:read"]}]}},"/alerts/{id}":{"parameters":[{"$ref":"#/components/parameters/Id"}],"get":{"operationId":"getAlert","summary":"Get an alert","tags":["Alerts"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Alert"}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["widgets:read"]}],"description":"Requires `widgets:read`."},"patch":{"operationId":"updateAlert","summary":"Update an alert","description":"Change an alert, or turn it on or off.\n\nRequires `widgets:write`.","tags":["Alerts"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Alert"}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["each_review","daily_recap","weekly_recap"]},"destination":{"oneOf":[{"type":"string","description":"A destination id from GET /alerts/destinations."},{"type":"object","properties":{"webhook_url":{"type":"string","format":"uri"}}}]},"sources":{"type":"array","items":{"type":"string"}},"min_rating":{"type":["integer","null"]},"max_rating":{"type":["integer","null"]},"active":{"type":"boolean"}}}}}},"security":[{"apiKey":[]},{"oauth":["widgets:write"]}]},"delete":{"operationId":"deleteAlert","summary":"Delete an alert","tags":["Alerts"],"responses":{"204":{"$ref":"#/components/responses/NoContent"},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["widgets:write"]}],"description":"Requires `widgets:write`."}},"/sources/{id}/forecast":{"get":{"operationId":"forecastSource","summary":"Forecast a source","description":"How many reviews it takes for a Google or Tripadvisor source to show a target rating,\nand where its rating lands after `days` at a given pace. Computed from the source's\nwhole review history on every call, the same numbers as the Forecast report. Leave\nout any input to get the report's default.\n\n\nRequires `analytics:read`.","tags":["Tools"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"example":"src_123"},{"$ref":"#/components/parameters/ForecastTarget"},{"$ref":"#/components/parameters/ForecastPace"},{"$ref":"#/components/parameters/ForecastNewRating"},{"$ref":"#/components/parameters/ForecastDays"}],"responses":{"200":{"description":"The forecast.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Forecast"},{"type":"object","properties":{"id":{"type":"null"}}}],"x-example-omit":["created_at","error"]}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["analytics:read"]}]}},"/forecasts":{"post":{"operationId":"createForecast","summary":"Forecast a Google business","description":"The same forecast for any business on Google Maps, yours or not, like the free\ncalculator. Its reviews are fetched first, which takes a few seconds: send\n`Prefer: wait=25` to get the answer in this call (200), or take the 202 and\nGET /forecasts/{id}. Each call counts toward the account's daily allowance\n(see /usage). Leave out any input to get the default.\n\n\nRequires `analytics:read`.","tags":["Tools"],"parameters":[{"$ref":"#/components/parameters/PreferWait"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["url"],"properties":{"url":{"type":"string","format":"uri","examples":["https://maps.app.goo.gl/AbCdEf123"],"description":"The business on Google Maps."},"target_rating":{"type":"number","minimum":1,"maximum":5},"reviews_per_month":{"type":"number","minimum":0,"maximum":10000},"new_reviews_rating":{"type":"number","minimum":1,"maximum":5},"days":{"type":"integer","minimum":1,"maximum":365}}}}}},"responses":{"200":{"description":"The forecast, ready.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Forecast"},{"type":"object","properties":{"source":{"type":"null"}}}],"x-example-omit":["error"]}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"},"Preference-Applied":{"$ref":"#/components/headers/PreferenceApplied"}}},"202":{"description":"Still fetching the reviews. GET the Location header's URL.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Forecast"},{"type":"object","properties":{"source":{"type":"null"},"status":{"type":"string","enum":["pending"]}}}],"x-example-omit":["error","current","last_30_days","inputs","projection"]}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"},"Preference-Applied":{"$ref":"#/components/headers/PreferenceApplied"}}},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["analytics:read"]}]}},"/forecasts/{id}":{"get":{"operationId":"getForecast","summary":"Get a forecast","description":"A forecast made with POST /forecasts, recomputed for the inputs you send here (the review data stays the one fetched then). Free.\n\nRequires `analytics:read`.","tags":["Tools"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"example":"fc_8b6f2d1e-5a43-4c2b-9d0e-7f1a2b3c4d5e"},{"$ref":"#/components/parameters/PreferWait"},{"$ref":"#/components/parameters/ForecastTarget"},{"$ref":"#/components/parameters/ForecastPace"},{"$ref":"#/components/parameters/ForecastNewRating"},{"$ref":"#/components/parameters/ForecastDays"}],"responses":{"200":{"description":"The forecast.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Forecast"},{"type":"object","properties":{"source":{"type":"null"}}}],"x-example-omit":["error"]}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"Preference-Applied":{"$ref":"#/components/headers/PreferenceApplied"}}},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["analytics:read"]}]}},"/review-link":{"get":{"operationId":"getReviewLink","summary":"Get a review link","description":"The link that opens a platform's review form for a business, from the business's page URL, built as the free Links tool builds it. Creates nothing.\n\nRequires `sources:read`.","tags":["Tools"],"parameters":[{"name":"platform","in":"query","required":true,"schema":{"type":"string"},"example":"google_maps","description":"A platform id from /platforms."},{"name":"url","in":"query","required":true,"schema":{"type":"string","format":"uri"},"example":"https://www.google.com/maps/place/?cid=1234567890","description":"The business's page on that platform."}],"responses":{"200":{"description":"The link.","content":{"application/json":{"schema":{"type":"object","required":["platform","url","review_url"],"properties":{"platform":{"type":"string","examples":["google_maps"]},"url":{"type":"string","format":"uri"},"review_url":{"type":"string","format":"uri","examples":["https://search.google.com/local/writereview?placeid=ChIJN1t_tDeuEmsRUsoyG83frY4"]}}}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["sources:read"]}]}},"/webhook-endpoints":{"get":{"operationId":"listWebhookEndpoints","summary":"List endpoints","description":"Your webhook endpoints.\n\nRequires `webhooks:read`.","tags":["Webhooks"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/WebhookEndpoint"}}}}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["webhooks:read"]}]},"post":{"operationId":"createWebhookEndpoint","summary":"Create an endpoint","description":"Up to 20 endpoints per account; the ones our Zapier, Make, Power Automate, Pipedream and Activepieces apps make for their workflows don't count. The answer carries the signing secret (`whsec_...`); keep it to check each request's signature (see the Webhooks guide). The endpoint acts as the member whose key or app made it: it gets events only about the sources they can see, and it can only subscribe to events whose data the credential can read.\n\nRequires `webhooks:write`.","tags":["Webhooks"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["url","events"],"properties":{"url":{"type":"string","format":"uri","description":"An https URL on the public internet.","examples":["https://hooks.yourcompany.com/reviewflowz"]},"events":{"type":"array","items":{"$ref":"#/components/schemas/EventType"},"examples":[["review.created","review.updated"]]},"description":{"type":"string","maxLength":200}}}}}},"responses":{"201":{"description":"Created","headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"},"Location":{"description":"The new endpoint's URL with an unsubscribe token, like https://api.reviewflowz.com/v3/webhook-endpoints/we_12?unsubscribe=eyJfcmFpbHMi... DELETE it to unsubscribe, with or without your token. The token deletes this endpoint and does nothing else, and stops working when you rotate the endpoint's secret.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEndpoint"},{"type":"object","properties":{"secret":{"type":"string","examples":["whsec_MfKQ9r8GKYqrTwjUPD8ILPZIo2LaLaSw"]}}}]}}}},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["webhooks:write"]}],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}]}},"/webhook-endpoints/{id}":{"parameters":[{"$ref":"#/components/parameters/Id"}],"get":{"operationId":"getWebhookEndpoint","summary":"Get an endpoint","tags":["Webhooks"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpoint"}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["webhooks:read"]}],"description":"Requires `webhooks:read`."},"patch":{"operationId":"updateWebhookEndpoint","summary":"Update an endpoint","description":"Switching a switched-off endpoint back on (`status: active`) after it missed events needs `replay`: `true` also sends every event it missed while it was off; `false` skips them.\n\nRequires `webhooks:write`.","tags":["Webhooks"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"events":{"type":"array","items":{"$ref":"#/components/schemas/EventType"}},"description":{"type":"string","maxLength":200},"status":{"type":"string","enum":["active","disabled"]},"replay":{"type":"boolean"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpoint"}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["webhooks:write"]}]},"delete":{"operationId":"deleteWebhookEndpoint","summary":"Delete an endpoint","description":"With your token, or with none at all when you call the `Location` URL the create answer gave, which carries an unsubscribe token for this endpoint. That is how Power Automate and Logic Apps unsubscribe a flow's trigger.\n\nRequires `webhooks:write`.","tags":["Webhooks"],"parameters":[{"name":"unsubscribe","in":"query","description":"The token in the create answer's `Location` URL. Only needed without an `Authorization` header.","schema":{"type":"string"}}],"responses":{"204":{"$ref":"#/components/responses/NoContent"},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["webhooks:write"]}]}},"/webhook-endpoints/{id}/test":{"parameters":[{"$ref":"#/components/parameters/Id"}],"post":{"operationId":"testWebhookEndpoint","summary":"Send a test event","description":"One signed POST, sent right away, with your account's latest real object of that kind. Its id is `evt_test` and it carries `\"test\": true`. Nothing is stored or retried; the answer is what your endpoint said.\n\nRequires `webhooks:write`.","tags":["Webhooks"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/EventType"}}}}}},"responses":{"200":{"description":"What the endpoint answered","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/EventType"},"success":{"type":"boolean"},"status_code":{"type":["integer","null"],"examples":[200]},"error":{"type":["string","null"]},"response_body":{"type":["string","null"]},"duration_ms":{"type":"integer","examples":[142]}}}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["webhooks:write"]}],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}]}},"/webhook-endpoints/{id}/rotate-secret":{"parameters":[{"$ref":"#/components/parameters/Id"}],"post":{"operationId":"rotateWebhookSecret","summary":"Rotate the secret","description":"The old secret keeps signing too for 24 hours, so you can switch your receiver over.\n\nRequires `webhooks:write`.","tags":["Webhooks"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEndpoint"},{"type":"object","properties":{"secret":{"type":"string","examples":["whsec_MfKQ9r8GKYqrTwjUPD8ILPZIo2LaLaSw"]},"previous_secret_expires_at":{"type":"string","format":"date-time"}}}]}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["webhooks:write"]}],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}]}},"/events":{"get":{"operationId":"listEvents","summary":"List events","description":"Newest first, each with the object as it is now and where it was delivered.\n\nRequires `webhooks:read`.","tags":["Webhooks"],"parameters":[{"name":"type","in":"query","description":"One type or several, comma-separated.","schema":{"type":"string","examples":["review.created,review.updated"]}},{"name":"created_after","in":"query","description":"Events created after this time.","schema":{"type":"string","format":"date-time"}},{"name":"limit","in":"query","description":"Events per page: 1 to 100 (default 50).","schema":{"type":"integer","minimum":1,"maximum":100}},{"$ref":"#/components/parameters/Cursor"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"allOf":[{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Event"}}}},{"$ref":"#/components/schemas/PageMeta"}]}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["webhooks:read"]}]}},"/events/{id}":{"parameters":[{"$ref":"#/components/parameters/Id"}],"get":{"operationId":"getEvent","summary":"Get an event","description":"One event, with every delivery attempt.\n\nRequires `webhooks:read`.","tags":["Webhooks"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["webhooks:read"]}]}},"/events/{id}/redeliver":{"parameters":[{"$ref":"#/components/parameters/Id"}],"post":{"operationId":"redeliverEvent","summary":"Resend an event","description":"To one endpoint, or to every active endpoint subscribed to its type, with a fresh set of tries.\n\nRequires `webhooks:write`.","tags":["Webhooks"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"endpoint":{"type":"string","examples":["we_12"]}}}}}},"responses":{"202":{"description":"Queued. Each delivery starts over (pending, no tries yet); the last try's status code and time stay until the next one.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"allOf":[{"$ref":"#/components/schemas/Delivery"}],"examples":[{"id":"dlv_900","endpoint":"we_12","status":"pending","attempt_count":0,"last_status_code":500,"last_attempt_at":"2026-11-10T08:52:15Z","next_attempt_at":"2026-11-10T09:05:00Z","delivered_at":null}]}}}}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"Idempotent-Replayed":{"$ref":"#/components/headers/IdempotentReplayed"}}},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["webhooks:write"]}],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}]}},"/event-types":{"get":{"operationId":"listEventTypes","summary":"List event types","description":"Every event you can subscribe to.\n\nRequires `webhooks:read`.","tags":["Webhooks"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/EventType"},"group":{"type":"string","examples":["Reviews"]},"description":{"type":"string"}}}}}}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"apiKey":[]},{"oauth":["webhooks:read"]}]}}},"components":{"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","description":"An account API key (`rfz_live_...`), created in the app."},"oauth":{"type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://app.reviewflowz.com/oauth/authorize","tokenUrl":"https://app.reviewflowz.com/oauth/token","refreshUrl":"https://app.reviewflowz.com/oauth/token","scopes":{"sources:read":"See the review pages your account monitors","sources:write":"Add, refresh and remove the review pages your account monitors","reviews:read":"Read your reviews and ratings","replies:read":"Read your replies and reply agents","replies:write":"Reply to reviews and change your reply agents","organize:read":"See your tags, owners, locations and dimensions","organize:write":"Tag reviews and change owners, locations and dimensions","analytics:read":"Read your stats and reports","analytics:write":"Create and change your saved reports","requests:read":"See your contacts, campaigns and review requests","requests:write":"Change contacts and campaigns, and send review requests","widgets:read":"See your widgets and alerts","widgets:write":"Change your widgets and alerts","webhooks:read":"See your webhook endpoints and the events sent to them","webhooks:write":"Subscribe URLs to your events, and change or resend them"}}}}},"headers":{"ReviewflowzVersion":{"description":"The API version that answered.","schema":{"type":"string","examples":["2026-10-29"]}},"RateLimit":{"description":"Requests left in the current window (`r`) and seconds until it resets (`t`).","schema":{"type":"string","examples":["\"per-account\";r=299;t=42"]}},"RateLimitPolicy":{"description":"The limit (`q` requests per `w` seconds).","schema":{"type":"string","examples":["\"per-account\";q=300;w=60"]}},"IdempotentReplayed":{"description":"`true` when the answer is the first call's, replayed for a repeated `Idempotency-Key`. Absent otherwise.","schema":{"type":"string","examples":["true"]}},"PreferenceApplied":{"description":"The wait we applied for `Prefer: wait=N` (25 at most).","schema":{"type":"string","examples":["wait=25"]}}},"parameters":{"Limit":{"name":"limit","in":"query","description":"Rows per page: 1 to 500 (default 50).","schema":{"type":"integer","minimum":1,"maximum":500}},"Cursor":{"name":"cursor","in":"query","description":"The next_cursor from the previous page. Leave it out for the first page.","schema":{"type":"string"}},"PreferWait":{"name":"Prefer","in":"header","description":"`wait=N` (up to 25): wait up to N seconds for the work to finish. 200 if it did, 202 with the object in its current state if not. The answer's `Preference-Applied` header says the wait we applied.","schema":{"type":"string","examples":["wait=25"]}},"ForecastTarget":{"name":"target_rating","in":"query","schema":{"type":"number","minimum":1,"maximum":5},"description":"The rating to show. Default: one tenth above today's."},"ForecastPace":{"name":"reviews_per_month","in":"query","schema":{"type":"number","minimum":0,"maximum":10000},"description":"New reviews a month. Default: the last 30 days' count."},"ForecastNewRating":{"name":"new_reviews_rating","in":"query","schema":{"type":"number","minimum":1,"maximum":5},"description":"The new reviews' average. Default: the last 30 days' average."},"ForecastDays":{"name":"days","in":"query","schema":{"type":"integer","minimum":1,"maximum":365},"description":"How far ahead. Default: 90."},"IdempotencyKey":{"name":"Idempotency-Key","in":"header","description":"Any unique string (a UUID works). Retrying with the same key within 24 hours replays the first answer instead of running again, with `Idempotent-Replayed: true`.","schema":{"type":"string","maxLength":255}},"Id":{"name":"id","in":"path","required":true,"schema":{"type":"string"}}},"responses":{"SourcesCreated":{"description":"The sources created, and the URLs refused with a reason.","content":{"application/json":{"schema":{"type":"object","required":["data","rejected"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Source"}},"rejected":{"type":"array","items":{"type":"object","required":["url","reason","detail"],"properties":{"url":{"type":"string"},"reason":{"type":"string","enum":["unsupported_url","already_added","not_a_review_page","platform_timeout","platform_unreachable","location_required","on_another_account","source_limit_reached","invalid"]},"detail":{"type":"string"},"source":{"type":"string","description":"The existing source (already_added)."}}}}}}}},"headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"NoContent":{"description":"Done. No body.","headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"Problem":{"description":"An error, as RFC 9457 problem details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"RateLimited":{"description":"The account used its requests for this minute.","headers":{"Reviewflowz-Version":{"$ref":"#/components/headers/ReviewflowzVersion"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"Retry-After":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"schemas":{"Quota":{"type":"object","required":["limit","used","resets_at"],"properties":{"limit":{"type":"integer","description":"Calls allowed per day."},"used":{"type":"integer","description":"Calls counted today."},"resets_at":{"type":"string","format":"date-time","description":"Next midnight UTC."}}},"Forecast":{"type":"object","description":"A rating forecast, the same model as the Forecast report: new reviews arrive at\n`reviews_per_month`, each averaging `new_reviews_rating`, and the platform shows the\nresulting average rounded to one decimal. `current`, `last_30_days`, `inputs` and\n`projection` are there once `status` is ready.\n","required":["id","status","source","platform","url"],"properties":{"id":{"type":["string","null"],"examples":["fc_8b6f2d1e-5a43-4c2b-9d0e-7f1a2b3c4d5e"],"description":"The forecast of a Google business (POST /forecasts), to fetch again. Null for a source's forecast, which is computed on every call."},"status":{"type":"string","enum":["ready","pending","failed"],"description":"pending while the business's reviews are fetched; failed if they couldn't be."},"error":{"type":"string","description":"Why, when status is failed."},"source":{"type":["string","null"],"examples":["src_123"],"description":"The source forecast, or null for a Google business."},"name":{"type":["string","null"],"examples":["Juniper Ridge Dental"],"description":"The business's name."},"platform":{"type":"string","examples":["google_maps"]},"url":{"type":"string","format":"uri"},"created_at":{"type":"string","format":"date-time","description":"POST /forecasts only."},"current":{"type":"object","properties":{"rating":{"type":"number","examples":[4.612],"description":"The real average today, unrounded."},"displayed_rating":{"type":"number","examples":[4.6],"description":"What the platform shows."},"review_count":{"type":"integer","examples":[212]}}},"last_30_days":{"type":"object","properties":{"review_count":{"type":"integer","examples":[9]},"average_rating":{"type":["number","null"],"examples":[4.89]},"capped":{"type":"boolean","examples":[false],"description":"True when review_count is a floor: for a Google business we read its newest 100 reviews, and all of them are from the last 30 days."}}},"inputs":{"type":"object","description":"What the projection used, yours or the defaults.","properties":{"target_rating":{"type":"number","examples":[4.7],"description":"Default: one tenth above the displayed rating."},"reviews_per_month":{"type":"number","examples":[9],"description":"Default: the last 30 days' count."},"new_reviews_rating":{"type":"number","examples":[4.9],"description":"Default: the last 30 days' average, or the current rating without recent reviews."},"days":{"type":"integer","examples":[90],"description":"Default: 90."}}},"projection":{"type":"object","properties":{"rating":{"type":"number","description":"The real average after `days`."},"displayed_rating":{"type":"number"},"outcome":{"type":"string","enum":["on_track","gap","unreachable"],"description":"on_track: the target is shown within `days`. gap: reachable, but it takes longer. unreachable: new reviews at that rating can never lift it to the target (or none are coming)."},"reviews_needed":{"type":["integer","null"],"description":"New reviews at new_reviews_rating it takes to show the target. 0 when already shown, null when it never can be."},"months_needed":{"type":["number","null"],"description":"reviews_needed at reviews_per_month, in months."}}}}},"PageMeta":{"type":"object","required":["next_cursor","has_more"],"properties":{"next_cursor":{"type":["string","null"],"description":"Pass as cursor to get the next page. Null on the last page."},"has_more":{"type":"boolean"}}},"Problem":{"type":"object","description":"Some codes add fields of their own, like `required_scope` on insufficient_scope or `supported_versions` on unsupported_version: the errors guide lists them.","additionalProperties":true,"required":["type","title","status","code","detail","request_id"],"properties":{"type":{"type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer"},"code":{"type":"string","description":"Stable error code to branch on.","examples":["unauthorized","insufficient_scope","plan_restricted","unsupported_version","rate_limited","quota_exceeded","not_found","route_not_found","parameter_missing","invalid_json","forbidden","internal_error"]},"detail":{"type":"string","description":"What happened and what to do next."},"request_id":{"type":"string"},"errors":{"type":"array","description":"Field-level problems, when there are any.","items":{"type":"object","required":["field","code","detail"],"properties":{"field":{"type":"string"},"code":{"type":"string"},"detail":{"type":"string"}}}}}},"Account":{"type":"object","examples":[{"id":"acc_2318","name":"Example Travel Co","api_version":"2026-10-29","campaign_destinations":"platform","member":{"name":"Sofia Martin"},"credential":{"type":"api_key","name":"Production","scopes":["sources:read","reviews:read","replies:read","organize:read","analytics:read","requests:read","widgets:read","webhooks:read"],"expires_at":null},"created_at":"2025-03-14T10:22:05Z"}],"required":["id","name","api_version","campaign_destinations","member","credential","created_at"],"properties":{"id":{"type":"string","examples":["acc_123"]},"name":{"type":"string"},"api_version":{"type":"string","examples":["2026-10-29"]},"campaign_destinations":{"type":"string","enum":["platform","source"],"description":"What a campaign's `destinations` name on this account: `platform` (billed per location: each customer's location picks the source on that platform) or `source`."},"member":{"type":["object","null"],"description":"The team member the key or app acts as. Their access groups decide what it sees.","properties":{"name":{"type":["string","null"]}}},"credential":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["api_key","oauth"]},"name":{"type":"string","description":"The key's name (api_key only)."},"app":{"type":["string","null"],"description":"The OAuth app's name (oauth only)."},"scopes":{"type":"array","items":{"type":"string"},"description":"What this key or app may do: its permissions, like `reviews:read`."},"expires_at":{"type":["string","null"],"format":"date-time","description":"When the key stops working (api_key only). Null for a key that never expires."}}},"created_at":{"type":"string","format":"date-time"}}},"Platform":{"type":"object","examples":[{"id":"google_maps","name":"Google Maps","url_examples":["https://maps.app.goo.gl/Gjo5NDggCfPg8EWL8","https://www.google.com/maps/place/?q=place_id:ChIJLU7jZClu5kcR4PcOOO6p3I0"],"lookup":true,"ratings_by_country":false}],"required":["id","name","url_examples","lookup","ratings_by_country"],"properties":{"id":{"type":"string","examples":["google_maps","app_store","play_store"]},"name":{"type":"string","examples":["Google Maps"]},"url_examples":{"type":"array","items":{"type":"string","format":"uri"}},"lookup":{"type":"boolean","description":"Whether /lookup can find this platform's URLs from a name."},"ratings_by_country":{"type":"boolean","description":"Whether ratings come per country (App Store, Play Store)."}}},"Source":{"type":"object","examples":[{"id":"src_4812","url":"https://maps.app.goo.gl/Gjo5NDggCfPg8EWL8","platform":"google_maps","name":"Tour Eiffel","location":"loc_87","domain":"toureiffel.paris","external_id":"10222232094831998944","product":null,"address":{"line1":"Av. Gustave Eiffel","line2":null,"city":"Paris","postal_code":"75007","country":"FR"},"status":"synced","rating":{"score":4.7,"count":500407,"stars":{"5":398210,"4":71324,"3":18447,"2":5102,"1":7324}},"last_synced_at":"2026-11-10T08:40:12Z","dimensions":{"region":"Europe"},"created_at":"2026-02-03T14:05:51Z"}],"required":["id","url","platform","name","status","created_at"],"properties":{"id":{"type":"string","examples":["src_8Hk"]},"url":{"type":"string","format":"uri"},"platform":{"type":"string","examples":["google_maps"]},"name":{"type":["string","null"]},"location":{"type":["string","null"],"examples":["loc_12"]},"domain":{"type":["string","null"]},"external_id":{"type":["string","null"],"description":"The page's id on the platform."},"product":{"type":["object","null"],"description":"On accounts that group sources into products (a tour operator's tours). The name is null for a member who may not see the product.","properties":{"id":{"type":"string","examples":["prd_12"]},"name":{"type":["string","null"]}}},"address":{"type":["object","null"],"description":"Google listings only.","properties":{"line1":{"type":["string","null"]},"line2":{"type":["string","null"]},"city":{"type":["string","null"]},"postal_code":{"type":["string","null"]},"country":{"type":["string","null"],"description":"ISO 3166 code."}}},"status":{"type":"string","enum":["syncing","synced","failed","paused"],"description":"syncing: the first import or a refresh is running. failed: the platform no longer serves the page. paused: paused in the app (not fetched, not billed)."},"rating":{"type":["object","null"],"description":"The current worldwide rating as the platform shows it.","properties":{"score":{"type":["number","null"]},"count":{"type":["integer","null"]},"stars":{"type":["object","null"],"description":"The platform's own star split, where it publishes one (\"5\" to \"1\").","additionalProperties":{"type":["integer","null"]}}}},"last_synced_at":{"type":["string","null"],"format":"date-time"},"dimensions":{"type":"object","additionalProperties":{"type":"string"}},"created_at":{"type":"string","format":"date-time"},"reviews":{"description":"POST /sources and POST /sources/{id}/sync with a finished Prefer: wait only: the first page of reviews (for a sync, the ones it found). next_cursor continues with GET /reviews?source=\u003cid\u003e.","allOf":[{"$ref":"#/components/schemas/PageMeta"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Review"}}}}]}}},"Review":{"type":"object","examples":[{"id":"rev_918273","source":"src_4812","platform":"google_maps","location":"loc_87","rating":5,"title":null,"text":"Booked the summit tickets online and skipped the whole queue. The view at sunset was worth every euro, and the staff on the second floor were patient with our kids.","pros":null,"cons":null,"language":"en","reviewer":{"name":"Maya Chen","company":null,"avatar_url":null},"url":"https://www.google.com/maps/reviews/data=!4m8!14m7!1m6!2m5!1sChdDSUhNMG9nS0VJQ0FnTURRazh2cG5RRRAB","date":"2026-11-09T18:32:00Z","removed":false,"removed_at":null,"previous_version":null,"root_review":"rev_918273","latest_version":true,"tags":[{"id":"tag_3","name":"Tickets"}],"owners":[],"owner_suggestions":[],"topics":[{"topic":"Staff","subtopic":"Friendliness","sentiment":"positive","sentiment_score":0.86,"excerpt":"the staff on the second floor were patient with our kids"}],"created_at":"2026-11-10T08:40:09Z","updated_at":"2026-11-10T09:30:00Z"}],"required":["id","source","platform","rating","created_at","updated_at"],"properties":{"id":{"type":"string","examples":["rev_4Tq"]},"source":{"type":"string"},"platform":{"type":"string"},"location":{"type":["string","null"]},"rating":{"type":["number","null"]},"title":{"type":["string","null"]},"text":{"type":["string","null"]},"pros":{"type":["string","null"]},"cons":{"type":["string","null"]},"language":{"type":["string","null"],"description":"ISO 639-1."},"reviewer":{"type":"object","properties":{"name":{"type":["string","null"]},"company":{"type":["string","null"]},"avatar_url":{"type":["string","null"]}}},"url":{"type":["string","null"]},"date":{"type":["string","null"],"format":"date-time","description":"Posted on the platform."},"removed":{"type":"boolean"},"removed_at":{"type":["string","null"],"format":"date-time"},"previous_version":{"type":["string","null"],"description":"The version this edit replaced."},"root_review":{"type":"string","description":"The first version of this review."},"latest_version":{"type":"boolean"},"tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}}}},"owners":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}}}},"owner_suggestions":{"type":"array","description":"Owners we think the review mentions, waiting to be accepted or rejected (POST /owner-suggestions/{id}/accept or reject).","items":{"type":"object","properties":{"id":{"type":"string","examples":["sug_9"]},"owner":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}}},"certainty":{"type":["integer","null"]}}}},"topics":{"type":"array","items":{"type":"object","properties":{"topic":{"type":"string"},"subtopic":{"type":"string"},"sentiment":{"type":["string","null"],"enum":["positive","negative","neutral",null]},"sentiment_score":{"type":["number","null"]},"excerpt":{"type":["string","null"]}}}},"created_at":{"type":"string","format":"date-time","description":"Found by Reviewflowz."},"updated_at":{"type":"string","format":"date-time","description":"The latest change: found, edited, removed, reinstated, replied to, tagged or given an owner. updated_after= returns the reviews whose updated_at is after its time. Start your next sync from when this one started, not from the largest updated_at: a change made while you page can land on a page you've already read."},"columns":{"type":"object","description":"columns= only: each requested export column, as a CSV export writes it (null where no source of the account fills it).","additionalProperties":true},"media":{"type":"object","description":"include=media","properties":{"photos":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"}}}},"videos":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"}}}}}},"reply":{"description":"include=reply. The current reply, or null.","oneOf":[{"$ref":"#/components/schemas/Reply"},{"type":"null"}]},"events":{"type":"array","description":"include=events. The review's history, oldest first, named like the webhook events.","items":{"type":"object","properties":{"type":{"type":"string","examples":["review.created","review.updated","review.removed","review.reinstated","reply.detected","reply.published"]},"at":{"type":"string","format":"date-time"},"reason":{"type":"string"}}}}}},"Reply":{"type":"object","required":["review","origin","status"],"properties":{"id":{"type":["string","null"],"description":"Null for a reply written directly on the platform."},"review":{"type":"string"},"origin":{"type":"string","enum":["reviewflowz","platform"]},"status":{"type":"string","enum":["draft","submitted","published","failed"]},"text":{"type":["string","null"]},"author":{"description":"Who wrote it (ReplySerializer#author): a team member, or the AI agent, for a reply written in Reviewflowz; the name the platform shows, or null, for one written on the platform.","oneOf":[{"type":"object","description":"A team member.","properties":{"type":{"type":"string","enum":["user"]},"name":{"type":"string"}}},{"type":"object","description":"The AI reply agent.","properties":{"type":{"type":"string","enum":["agent"]},"id":{"type":"string","examples":["agt_2"],"description":"The reply agent's id (GET /v3/reply-agents)."},"name":{"type":"string","examples":["Friendly concierge"]}}},{"type":"string","description":"The replier's name as the platform shows it (origin platform)."},{"type":"null"}]},"via":{"type":"string","description":"Where it was written (reviewflowz, reply_rule, slack...)."},"published_at":{"type":["string","null"],"format":"date-time","examples":[null],"description":"When it went live. Null until it does."},"editable":{"type":"boolean"},"deletable":{"type":"boolean"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}}},"Stars":{"type":"object","description":"Keyed \"5\" to \"1\".","additionalProperties":{"type":"number"}},"RatingRow":{"type":"object","examples":[{"source":"src_4812","platform":"google_maps","country":"worldwide","local":true,"origin":"computed","score":4.7,"count":500407,"stars":{"5":398210,"4":71324,"3":18447,"2":5102,"1":7324},"stars_share":{"5":0.796,"4":0.143,"3":0.037,"2":0.01,"1":0.015},"new_ratings_7d":1204,"new_ratings_30d":5311,"score_change_7d":0.0,"score_change_30d":0.01,"as_of":"2026-11-10"}],"required":["source","platform","country","local","score","count","as_of"],"properties":{"source":{"type":"string"},"platform":{"type":"string"},"country":{"type":"string","description":"worldwide or an ISO country code."},"local":{"type":"boolean","description":"False for a Play Store country that only shows Google's worldwide rating."},"origin":{"type":"string","enum":["platform","computed"]},"score":{"type":["number","null"]},"count":{"type":["integer","null"],"description":"Null for Play Store countries (Google publishes no per-country count)."},"stars":{"$ref":"#/components/schemas/Stars"},"stars_share":{"$ref":"#/components/schemas/Stars"},"new_ratings_7d":{"type":["integer","null"]},"new_ratings_30d":{"type":["integer","null"]},"score_change_7d":{"type":["number","null"]},"score_change_30d":{"type":["number","null"]},"as_of":{"type":"string","format":"date"}}},"ReplyAgent":{"type":"object","properties":{"id":{"type":"string","examples":["agt_4"]},"name":{"type":"string"},"default":{"type":"boolean"},"instructions":{"type":["string","null"]},"signature":{"type":["string","null"]},"reply_language":{"type":"string","description":"same_as_review or an ISO 639-1 code."},"learn_from_past_replies":{"type":"boolean"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}}},"Tag":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"auto_check":{"type":"boolean"},"review_count":{"type":"integer"},"created_at":{"type":"string","format":"date-time"}}},"ReviewTags":{"type":"object","properties":{"review":{"type":"string"},"tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","examples":["tag_3"]},"name":{"type":"string"}}}}}},"Owner":{"type":"object","properties":{"id":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":["string","null"]},"name":{"type":"string"},"nicknames":{"type":"array","items":{"type":"string"}},"employee_id":{"type":["string","null"]},"team":{"type":["string","null"]},"locations":{"type":"array","items":{"type":"string"}},"tours":{"type":"array","items":{"type":"string"},"description":"Only on accounts that group listings into tours. The tours this owner works on; empty means every tour."},"review_count":{"type":"integer","description":"Reviews this owner is credited with (confirmed assignments)."},"created_at":{"type":"string","format":"date-time"}}},"OwnerInput":{"type":"object","properties":{"first_name":{"type":"string"},"last_name":{"type":"string"},"nicknames":{"type":"array","items":{"type":"string"}},"employee_id":{"type":"string"},"locations":{"type":"array","items":{"type":"string"},"description":"Location ids where this owner works. Empty means every location."}}},"ReviewOwners":{"type":"object","properties":{"review":{"type":"string"},"owners":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}}}},"suggestions":{"type":"array","items":{"type":"string"}}}},"OwnerSuggestion":{"type":"object","properties":{"id":{"type":"string"},"review":{"type":"string"},"owner":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}}},"certainty":{"type":"integer"},"matched_text":{"type":["string","null"]},"explanation":{"type":["string","null"]},"status":{"type":"string","enum":["pending","accepted","rejected"]},"created_at":{"type":"string","format":"date-time"}}},"Location":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"address":{"type":"object","properties":{"line1":{"type":["string","null"]},"line2":{"type":["string","null"]},"city":{"type":["string","null"]},"postal_code":{"type":["string","null"]},"country":{"type":["string","null"]}}},"phone":{"type":["string","null"]},"website":{"type":["string","null"]},"google_place_id":{"type":["string","null"]},"sources":{"type":"array","items":{"type":"string"}},"created_at":{"type":"string","format":"date-time"}}},"Dimension":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"source_count":{"type":"integer"},"created_at":{"type":"string","format":"date-time"}}},"StatsRow":{"type":"object","examples":[{"group":{"period":"2026-10-01","interval":"month"},"count":35,"average_rating":4.51,"ratings":{"5":25,"4":6,"3":2,"2":1,"1":1},"replied":31,"reply_rate":0.8857,"removed":0,"sentiment":{"positive":52,"neutral":6,"negative":9}}],"properties":{"group":{"type":"object","description":"{} for the total; else period, source, location or platform."},"count":{"type":"integer"},"average_rating":{"type":["number","null"]},"ratings":{"$ref":"#/components/schemas/Stars"},"replied":{"type":"integer"},"reply_rate":{"type":["number","null"],"description":"0 to 1."},"removed":{"type":"integer","description":"Reviews the platform took down (counted in count too; filter removed=false to leave them out)."},"sentiment":{"type":"object","properties":{"positive":{"type":"integer"},"neutral":{"type":"integer"},"negative":{"type":"integer"}}}}},"ReportFilters":{"type":"object","description":"Which reviews the report covers.","properties":{"source":{"type":"array","items":{"type":"string"}},"platform":{"type":"array","items":{"type":"string"}},"location":{"type":"array","items":{"type":"string"}},"rating":{"type":"array","items":{"type":"integer"}},"rating_min":{"type":"number","description":"Scores of at least this."},"rating_max":{"type":"number","description":"Scores of at most this (3 leaves out 3.5)."},"tag":{"type":"array","items":{"type":"string"}},"topic":{"type":"array","items":{"type":"string"}},"subtopic":{"type":"array","items":{"type":"string"}},"language":{"type":"array","items":{"type":"string"}},"owner":{"type":"array","items":{"type":"string"}},"has_reply":{"type":"boolean"},"removed":{"type":"boolean"},"product":{"type":"array","items":{"type":"string"}},"keyword":{"type":"array","items":{"type":"string"},"description":"Reviews with any of these words."},"country":{"type":"string","description":"ISO 3166 code of a Google listing's country."},"team":{"type":"array","items":{"type":"integer"},"description":"Team ids, as in the app."},"versions":{"type":"string","enum":["latest","all","edits","originals"],"description":"Which versions of edited reviews count (default latest)."},"dimensions":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}}}},"Report":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"visualization":{"type":"string"},"dimensions":{"type":"array","items":{"type":"string"}},"metrics":{"type":"array","items":{"type":"string"}},"filters":{"$ref":"#/components/schemas/ReportFilters"},"keywords":{"type":"array","items":{"type":"string"}},"url":{"type":"string","description":"The report in the app."},"used_in_flows":{"type":"boolean"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}}},"Contact":{"type":"object","properties":{"id":{"type":"string","examples":["con_16154923-64e7-477d-95ce-0e7fa88c0664"]},"email":{"type":["string","null"]},"phone":{"type":["string","null"]},"first_name":{"type":["string","null"]},"last_name":{"type":["string","null"]},"attributes":{"type":"object","additionalProperties":true},"opted_out":{"type":"object","properties":{"email":{"type":"boolean"},"sms":{"type":"boolean"}}},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}}},"ContactAttribute":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"data_type":{"type":"string"},"created_at":{"type":"string","format":"date-time"}}},"Segment":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"contact_count":{"type":"integer"},"filtered":{"type":"boolean","description":"Built from filters in the app."},"created_at":{"type":"string","format":"date-time"}}},"Campaign":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"channel":{"type":"string","enum":["email","sms","whatsapp"]},"state":{"type":"string","enum":["draft","active","paused"]},"segment":{"type":["string","null"],"description":"The segment whose new members get the request, or null for the campaign's own list (the people added to it with POST /v3/campaigns/{id}/contacts).","examples":[null]},"review_page_url":{"type":["string","null"],"description":"The page the request's button opens. It sends each customer on to one of `destinations`.","examples":["https://rvwz.page/m/zbX5nBqTXSQ"]},"destinations":{"type":"array","description":"Where the review page sends customers, in order of preference. An account billed per location names platforms, and each customer's location picks its source there; any other account names sources.","examples":[[{"platform":"google_maps","goal":"most_reviews","target":null,"button_text":null}]],"items":{"$ref":"#/components/schemas/CampaignDestination"}},"send_delay_minutes":{"type":["integer","null"]},"throttle":{"type":["object","null"],"description":"At most `limit` uploaded contacts let through every `period_minutes`, or null for no limit.","examples":[null],"properties":{"limit":{"type":"integer"},"period_minutes":{"type":"integer"}}},"messages":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer"},"channel":{"type":"string","enum":["email","sms","whatsapp"]},"subject":{"type":["string","null"]},"body":{"type":["string","null"]},"cta_text":{"type":["string","null"]},"sender":{"type":["string","null"]},"reply_to":{"type":["string","null"]},"delay_minutes":{"type":["integer","null"]},"complete":{"type":"boolean"}}}},"ready":{"type":"boolean"},"blockers":{"type":"array","description":"What is missing before it can be turned on. Empty when `ready` is true.","examples":[[]],"items":{"type":"string"}},"created_at":{"type":"string","format":"date-time"}}},"CampaignDestination":{"type":"object","properties":{"platform":{"type":"string","description":"A platform id (GET /v3/platforms), on accounts billed per location. Each customer is sent to that platform's source at their location. Absent when `source` is set."},"source":{"type":"string","description":"A source id, on any other account. Absent when `platform` is set."},"goal":{"type":"string","enum":["most_reviews","rating","five_star_reviews"],"description":"`most_reviews`: always send customers here. `rating`: send them here while its rating is under `target`. `five_star_reviews`: send them here until it has `target` 5-star reviews."},"target":{"type":["number","null"],"description":"The rating (1 to 5) for `rating`, the number of 5-star reviews for `five_star_reviews`, null for `most_reviews`."},"button_text":{"type":["string","null"],"description":"The button's words on the review page, or null for \"Review us on\" and the platform's name."}}},"Invitation":{"type":"object","properties":{"id":{"type":"string"},"contact":{"type":"string"},"campaign":{"type":["string","null"]},"channel":{"type":["string","null"],"enum":["email","sms","whatsapp"]},"state":{"type":"string","examples":["clicked"],"enum":["pending","sent","delivered","opened","clicked","reviewed","failed","opted_out"]},"location":{"type":["string","null"]},"sent_at":{"type":["string","null"]},"delivered_at":{"type":["string","null"]},"opened_at":{"type":["string","null"]},"clicked_at":{"type":["string","null"]},"reviewed_at":{"type":["string","null"]},"failed_at":{"type":["string","null"]},"open_count":{"type":["integer","null"]},"click_count":{"type":["integer","null"]},"created_at":{"type":"string","format":"date-time"}}},"OptOut":{"type":"object","properties":{"id":{"type":"string"},"contact":{"type":"string"},"email":{"type":["string","null"]},"phone":{"type":["string","null"]},"channels":{"type":"object","description":"Each opted-out channel with when. A channel that isn't opted out is left out.","properties":{"email":{"type":["string","boolean"],"format":"date-time","examples":["2026-11-12T16:20:00Z"],"description":"When email was opted out, or true for an opt-out saved without a date."},"sms":{"type":"string","format":"date-time","examples":["2026-11-12T16:20:00Z"]}}}}},"Widget":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":["string","null"]},"template":{"type":"string"},"sources":{"type":"array","items":{"type":"string"}},"count":{"type":"integer","examples":[12]},"min_rating":{"type":"integer"},"language":{"type":["string","null"]},"require_content":{"type":"boolean"},"require_reviewer":{"type":"boolean"},"tags":{"type":"array","items":{"type":"string"}},"custom_css":{"type":["string","null"]},"embed":{"type":"object","description":"Paste both on the page: the script, then the iframe where the widget goes.","properties":{"script":{"type":"string"},"iframe":{"type":"string"}}},"created_at":{"type":"string","format":"date-time"}}},"WebhookEndpoint":{"type":"object","examples":[{"id":"we_12","url":"https://hooks.yourcompany.com/reviewflowz","description":"New reviews to our CRM","events":["review.created","review.updated"],"status":"active","disabled_reason":null,"disabled_at":null,"failing_since":null,"last_success_at":"2026-11-10T08:40:15Z","created_via":"api","created_at":"2026-10-30T09:12:44Z","updated_at":"2026-10-30T09:12:44Z"}],"properties":{"id":{"type":"string","examples":["we_12"]},"url":{"type":"string","examples":["https://hooks.yourcompany.com/reviewflowz"]},"description":{"type":["string","null"]},"events":{"type":"array","items":{"$ref":"#/components/schemas/EventType"}},"status":{"type":"string","enum":["active","disabled"]},"disabled_reason":{"type":["string","null"],"enum":["manual","failing","gone",null],"description":"manual: switched off by a person. failing: every delivery failed for 5 days. gone: the endpoint answered 410."},"disabled_at":{"type":["string","null"],"format":"date-time"},"failing_since":{"type":["string","null"],"format":"date-time","description":"The first failure since the last success; null while deliveries succeed."},"last_success_at":{"type":["string","null"],"format":"date-time"},"created_via":{"type":"string","enum":["app","api"]},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}}},"EventType":{"type":"string","enum":["review.created","review.updated","review.removed","review.reinstated","review.deleted","review.enriched","review.tagged","review.untagged","review.owner_assigned","review.owner_unassigned","reply.drafted","reply.submitted","reply.published","reply.updated","reply.failed","source.created","source.synced","source.access_lost","source.access_restored","source.decommissioned","source.deleted","rating.changed","invitation.sent","invitation.clicked","invitation.skipped","invitation.failed","contact.reviewed","contact.opted_out","campaign.paused","campaign.resumed"]},"Event":{"type":"object","examples":[{"id":"evt_4821","type":"review.created","timestamp":"2026-11-10T08:40:09Z","data":{"object":{"id":"rev_918273","source":"src_4812","platform":"google_maps","location":"loc_87","rating":5,"title":null,"text":"Booked the summit tickets online and skipped the whole queue. The view at sunset was worth every euro, and the staff on the second floor were patient with our kids.","pros":null,"cons":null,"language":"en","reviewer":{"name":"Maya Chen","company":null,"avatar_url":null},"url":"https://www.google.com/maps/reviews/data=!4m8!14m7!1m6!2m5!1sChdDSUhNMG9nS0VJQ0FnTURRazh2cG5RRRAB","date":"2026-11-09T18:32:00Z","removed":false,"removed_at":null,"previous_version":null,"root_review":"rev_918273","latest_version":true,"tags":[{"id":"tag_3","name":"Tickets"}],"owners":[],"owner_suggestions":[],"topics":[{"topic":"Staff","subtopic":"Friendliness","sentiment":"positive","sentiment_score":0.86,"excerpt":"the staff on the second floor were patient with our kids"}],"created_at":"2026-11-10T08:40:09Z"},"source":"src_4812"},"created_at":"2026-11-10T08:40:10Z"}],"description":"What your endpoint receives, plus where it was delivered (deliveries, here only).","properties":{"id":{"type":"string","examples":["evt_4821"]},"type":{"$ref":"#/components/schemas/EventType"},"timestamp":{"type":"string","format":"date-time","description":"When it happened."},"data":{"type":"object","description":"object: the subject as GET /v3/... returns it now (a review, reply, source, invitation, contact or campaign), or { id, deleted: true } when it's gone. The other keys are facts about this event: source, reason, previous, owner, tag...","properties":{"object":{"type":"object"}},"additionalProperties":true},"created_at":{"type":"string","format":"date-time"},"deliveries":{"type":"array","items":{"$ref":"#/components/schemas/Delivery"}}}},"Delivery":{"type":"object","examples":[{"id":"dlv_900","endpoint":"we_12","status":"succeeded","attempt_count":1,"last_status_code":200,"last_attempt_at":"2026-11-10T08:40:15Z","next_attempt_at":null,"delivered_at":"2026-11-10T08:40:15Z"}],"properties":{"id":{"type":"string","examples":["dlv_900"]},"endpoint":{"type":"string","examples":["we_12"]},"status":{"type":"string","enum":["pending","succeeded","failed","exhausted","skipped"],"description":"failed: the last try failed and another is scheduled. exhausted: all 8 tries failed. skipped: recorded while the endpoint was off, and not sent when it was turned back on."},"attempt_count":{"type":"integer"},"last_status_code":{"type":["integer","null"]},"last_attempt_at":{"type":["string","null"],"format":"date-time"},"next_attempt_at":{"type":["string","null"],"format":"date-time"},"delivered_at":{"type":["string","null"],"format":"date-time"},"attempts":{"type":"array","description":"On GET /v3/events/{id} only.","items":{"type":"object","properties":{"attempt":{"type":"integer"},"status_code":{"type":["integer","null"]},"error":{"type":["string","null"]},"response_body":{"type":["string","null"],"description":"The first KB of what your endpoint answered."},"duration_ms":{"type":"integer"},"at":{"type":"string","format":"date-time"}}}}}},"Alert":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"type":{"type":"string","enum":["each_review","daily_recap","weekly_recap"]},"destination":{"type":["object","null"],"properties":{"id":{"type":"string"},"type":{"type":"string"},"name":{"type":"string"}}},"sources":{"type":"array","items":{"type":"string"}},"min_rating":{"type":["integer","null"]},"max_rating":{"type":["integer","null"]},"active":{"type":"boolean"},"created_at":{"type":"string","format":"date-time"}}}}},"webhooks":{"review.created":{"post":{"operationId":"on_review_created","summary":"review.created","description":"A new review was found. A source's first import of its history sends none.","tags":["Webhooks"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"Any 2xx means received. Anything else, or no answer within 10 seconds, is retried."}}}},"review.updated":{"post":{"operationId":"on_review_updated","summary":"review.updated","description":"The reviewer edited their review. The event carries the new version.","tags":["Webhooks"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"Any 2xx means received. Anything else, or no answer within 10 seconds, is retried."}}}},"review.removed":{"post":{"operationId":"on_review_removed","summary":"review.removed","description":"The review was taken down on the platform, or hidden as not recommended.","tags":["Webhooks"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"Any 2xx means received. Anything else, or no answer within 10 seconds, is retried."}}}},"review.reinstated":{"post":{"operationId":"on_review_reinstated","summary":"review.reinstated","description":"A removed review is back on the platform.","tags":["Webhooks"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"Any 2xx means received. Anything else, or no answer within 10 seconds, is retried."}}}},"review.deleted":{"post":{"operationId":"on_review_deleted","summary":"review.deleted","description":"We deleted the review. Deleting a source sends source.deleted instead.","tags":["Webhooks"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"Any 2xx means received. Anything else, or no answer within 10 seconds, is retried."}}}},"review.enriched":{"post":{"operationId":"on_review_enriched","summary":"review.enriched","description":"Sentiment, topics, tags and owners were added to a new review.","tags":["Webhooks"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"Any 2xx means received. Anything else, or no answer within 10 seconds, is retried."}}}},"review.tagged":{"post":{"operationId":"on_review_tagged","summary":"review.tagged","description":"A tag was added to the review.","tags":["Webhooks"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"Any 2xx means received. Anything else, or no answer within 10 seconds, is retried."}}}},"review.untagged":{"post":{"operationId":"on_review_untagged","summary":"review.untagged","description":"A tag was taken off the review.","tags":["Webhooks"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"Any 2xx means received. Anything else, or no answer within 10 seconds, is retried."}}}},"review.owner_assigned":{"post":{"operationId":"on_review_owner_assigned","summary":"review.owner_assigned","description":"A team member was credited for the review.","tags":["Webhooks"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"Any 2xx means received. Anything else, or no answer within 10 seconds, is retried."}}}},"review.owner_unassigned":{"post":{"operationId":"on_review_owner_unassigned","summary":"review.owner_unassigned","description":"A team member's credit for the review was taken off.","tags":["Webhooks"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"Any 2xx means received. Anything else, or no answer within 10 seconds, is retried."}}}},"reply.drafted":{"post":{"operationId":"on_reply_drafted","summary":"reply.drafted","description":"A reply draft was written, by a person or the AI agent.","tags":["Webhooks"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"Any 2xx means received. Anything else, or no answer within 10 seconds, is retried."}}}},"reply.submitted":{"post":{"operationId":"on_reply_submitted","summary":"reply.submitted","description":"A reply was sent to a platform that checks replies before they go live.","tags":["Webhooks"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"Any 2xx means received. Anything else, or no answer within 10 seconds, is retried."}}}},"reply.published":{"post":{"operationId":"on_reply_published","summary":"reply.published","description":"A reply went live on the platform.","tags":["Webhooks"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"Any 2xx means received. Anything else, or no answer within 10 seconds, is retried."}}}},"reply.updated":{"post":{"operationId":"on_reply_updated","summary":"reply.updated","description":"A live reply was edited.","tags":["Webhooks"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"Any 2xx means received. Anything else, or no answer within 10 seconds, is retried."}}}},"reply.failed":{"post":{"operationId":"on_reply_failed","summary":"reply.failed","description":"A reply could not be written or published.","tags":["Webhooks"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"Any 2xx means received. Anything else, or no answer within 10 seconds, is retried."}}}},"source.created":{"post":{"operationId":"on_source_created","summary":"source.created","description":"A source was added.","tags":["Webhooks"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"Any 2xx means received. Anything else, or no answer within 10 seconds, is retried."}}}},"source.synced":{"post":{"operationId":"on_source_synced","summary":"source.synced","description":"A source finished checking for reviews.","tags":["Webhooks"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"Any 2xx means received. Anything else, or no answer within 10 seconds, is retried."}}}},"source.access_lost":{"post":{"operationId":"on_source_access_lost","summary":"source.access_lost","description":"We can no longer reach the source through its connected account.","tags":["Webhooks"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"Any 2xx means received. Anything else, or no answer within 10 seconds, is retried."}}}},"source.access_restored":{"post":{"operationId":"on_source_access_restored","summary":"source.access_restored","description":"Access to the source works again.","tags":["Webhooks"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"Any 2xx means received. Anything else, or no answer within 10 seconds, is retried."}}}},"source.decommissioned":{"post":{"operationId":"on_source_decommissioned","summary":"source.decommissioned","description":"The listing was taken down on the platform for good.","tags":["Webhooks"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"Any 2xx means received. Anything else, or no answer within 10 seconds, is retried."}}}},"source.deleted":{"post":{"operationId":"on_source_deleted","summary":"source.deleted","description":"A source was deleted.","tags":["Webhooks"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"Any 2xx means received. Anything else, or no answer within 10 seconds, is retried."}}}},"rating.changed":{"post":{"operationId":"on_rating_changed","summary":"rating.changed","description":"A source's rating or review count changed, per country where the platform has several.","tags":["Webhooks"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"Any 2xx means received. Anything else, or no answer within 10 seconds, is retried."}}}},"invitation.sent":{"post":{"operationId":"on_invitation_sent","summary":"invitation.sent","description":"A review request was sent.","tags":["Webhooks"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"Any 2xx means received. Anything else, or no answer within 10 seconds, is retried."}}}},"invitation.clicked":{"post":{"operationId":"on_invitation_clicked","summary":"invitation.clicked","description":"A customer opened the review request's link.","tags":["Webhooks"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"Any 2xx means received. Anything else, or no answer within 10 seconds, is retried."}}}},"invitation.skipped":{"post":{"operationId":"on_invitation_skipped","summary":"invitation.skipped","description":"A review request was not sent, with the reason (unsubscribed, no phone...).","tags":["Webhooks"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"Any 2xx means received. Anything else, or no answer within 10 seconds, is retried."}}}},"invitation.failed":{"post":{"operationId":"on_invitation_failed","summary":"invitation.failed","description":"A review request bounced or could not be delivered.","tags":["Webhooks"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"Any 2xx means received. Anything else, or no answer within 10 seconds, is retried."}}}},"contact.reviewed":{"post":{"operationId":"on_contact_reviewed","summary":"contact.reviewed","description":"A customer left a review after their review request: a review on your sources was matched to them by name.","tags":["Webhooks"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"Any 2xx means received. Anything else, or no answer within 10 seconds, is retried."}}}},"contact.opted_out":{"post":{"operationId":"on_contact_opted_out","summary":"contact.opted_out","description":"A contact unsubscribed from review requests.","tags":["Webhooks"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"Any 2xx means received. Anything else, or no answer within 10 seconds, is retried."}}}},"campaign.paused":{"post":{"operationId":"on_campaign_paused","summary":"campaign.paused","description":"A campaign paused, by a person, an integration or credits running out.","tags":["Webhooks"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"Any 2xx means received. Anything else, or no answer within 10 seconds, is retried."}}}},"campaign.resumed":{"post":{"operationId":"on_campaign_resumed","summary":"campaign.resumed","description":"A paused campaign started sending again.","tags":["Webhooks"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"Any 2xx means received. Anything else, or no answer within 10 seconds, is retried."}}}}}}