API reference
Reviews and questions
Read your published reviews, what customers say and your product questions, save reply drafts and answer questions.
On this page
Read your published reviews, what customers say about a product, your product questions and the questions waiting for an answer, from your own systems: your reporting, a CRM or a customer service tool. Save reply drafts for your team to approve, and answer product questions in your own words.
Everything you read is what shoppers see on your store. Reviews waiting for approval, reviews imported only to inform Ottla’s summaries, replies you keep private and anything a shopper wrote that is not published are never sent.
Availability. Ottla is switching the reviews and questions API on step by step. Until it is on, these operations answer 404 not_found.
Showing reviews to shoppers
This API is for your own systems, not for showing reviews on a storefront. A page that shows reviews has to show more than the reviews: a link to your review policy saying how reviews are collected and checked, the incentive label of each review that has one, “Verified purchase” only where your store matched the review to an order, and the date each review was written (and, for a review Ottla collected, the month of the experience it describes). The API does not carry the policy link, the note on checks or the date of experience.
To show reviews on a headless storefront, read them through Magento GraphQL with the Ottla module’s Reviews and questions in GraphQL switched on. Its ottla_reviews and ottla_review_insights fields give the reviews, the notices and the labels exactly as the reviews block shows them, and only where your storefront may show them. If you show reviews from this API all the same, show each one with its incentive.text whenever there is one, and “Verified purchase” only when verified_purchase is true.
Keys, websites and limits
Create a key in the console under Storefront > API keys. A Reviews and questions data key has reviews:read and questions:read and changes nothing. To save reply drafts or answers, give a key reviews:write or questions:write under Custom. Limit each key to your servers’ IP addresses: these keys are for servers, never for a web page.
A key bound to a website reads and writes only that website. A key for every website names one on each call with website. Every operation counts on the reviews_api rate limit group: 120 a minute per key. The review operations are on Growth and above, and the question operations work on every plan.
| Scope | What the key can do |
|---|---|
| reviews:read | Read published reviews, removed reviews as tombstones, and what customers say about a product. |
| reviews:write | Save reply drafts. Your team approves each one in the console before shoppers see it. |
| questions:read | Read approved product questions and the questions waiting for an answer. |
| questions:write | Save your own answers to product questions, and approve them. |
Reviews
Your published reviews as shoppers see them, a page at a time. Filter by product (SKU), updated_since, stars, source and language. To keep a copy in step, ask for updated_since your last run with include_removed=1: reviews that have left your store come back as {review_id, status: removed, removed_at}, without their words, so you can delete your own copy.
- Key
Authorization: Bearerwith thereviews:readscope- Call from
- Your server only
- Rate limit
reviews_apigroup, 120 a minute
Headers and parameters
| Field | Description |
|---|---|
website
|
The website to read. A key bound to a website reads only that one and may leave this out; any other key must send it. |
product
|
Only this product, by SKU. |
updated_since
|
Only rows changed at or after this time (ISO 8601). |
stars
|
Only reviews with these stars, 1 to 5. |
source
|
Only reviews held by Magento, Amasty, MageWorx or Ottla. |
language
|
Only this language (two letters, such as fr). |
include_removed
|
Add removed reviews as tombstones. |
cursor
|
The next_cursor of the page before. |
limit
|
Rows a page, 1 to 100 (50 when left out). |
X-Ottla-Request-Id
|
Your own id for this request, returned in the response header. Ottla creates one when you send none. Servers only. |
Responses
-
200 OK
A page of reviews.
-
401 Unauthorised
No API key was sent (
unauthenticated), or the key is unknown, revoked or expired (invalid_api_key). -
403 Forbidden
The key lacks the scope (
forbidden_scope), is limited to other IP addresses (ip_not_allowed), is bound to another website (website_mismatch), or the plan does not include Ottla Reviews (not_on_plan). -
404 Not found
Not found: the API is not switched on yet (
not_found), the website is not one of this workspace’s (unknown_website), or no row of the website has that id (not_found). -
422 Invalid
The request is not valid (
validation_failed, witherrorskeyed by field), or theIdempotency-Keyheader is malformed (invalid_idempotency_key). -
429 Rate limited
A rate limit was reached: this key’s limit for the operation’s group (
rate_limited), the workspace’s limit across all its keys (tenant_rate_limited), the limit for one network address (ip_rate_limited) or for one shopper (shopper_rate_limited). Waitretry_afterseconds.
curl -H "Authorization: Bearer YOUR_SERVER_KEY" \
"https://ottla.ai/api/v1/reviews?updated_since=2026-11-01T00:00:00Z&include_removed=1&limit=100"
let cursor = null;
do {
const url = new URL('https://ottla.ai/api/v1/reviews');
url.searchParams.set('limit', '100');
if (cursor) url.searchParams.set('cursor', cursor);
const res = await fetch(url, { headers: { Authorization: 'Bearer YOUR_SERVER_KEY' } });
const page = await res.json();
for (const review of page.reviews) save(review);
cursor = page.next_cursor;
} while (cursor);
One review by its id, such as magento:1234. The ids are the same as in the review webhooks.
- Key
Authorization: Bearerwith thereviews:readscope- Call from
- Your server only
- Rate limit
reviews_apigroup, 120 a minute
Headers and parameters
| Field | Description |
|---|---|
review_id
|
The review’s id, such as magento:1234. |
website
|
The website to read. A key bound to a website reads only that one and may leave this out; any other key must send it. |
X-Ottla-Request-Id
|
Your own id for this request, returned in the response header. Ottla creates one when you send none. Servers only. |
Responses
-
200 OK
The review.
-
401 Unauthorised
No API key was sent (
unauthenticated), or the key is unknown, revoked or expired (invalid_api_key). -
403 Forbidden
The key lacks the scope (
forbidden_scope), is limited to other IP addresses (ip_not_allowed), is bound to another website (website_mismatch), or the plan does not include Ottla Reviews (not_on_plan). -
404 Not found
Not found: the API is not switched on yet (
not_found), the website is not one of this workspace’s (unknown_website), or no row of the website has that id (not_found). -
422 Invalid
The request is not valid (
validation_failed, witherrorskeyed by field), or theIdempotency-Keyheader is malformed (invalid_idempotency_key). -
429 Rate limited
A rate limit was reached: this key’s limit for the operation’s group (
rate_limited), the workspace’s limit across all its keys (tenant_rate_limited), the limit for one network address (ip_rate_limited) or for one shopper (shopper_rate_limited). Waitretry_afterseconds.
What your product page shows under What customers say for a store view, in the same words. It is sent only where your storefront would show it; otherwise the answer says why, with served: false.
- Key
Authorization: Bearerwith thereviews:readscope- Call from
- Your server only
- Rate limit
reviews_apigroup, 120 a minute
Headers and parameters
| Field | Description |
|---|---|
website
|
The website to read. A key bound to a website reads only that one and may leave this out; any other key must send it. |
product
|
The product, by SKU. |
store_view
|
The store view’s code. |
locale
|
The language to show it in, such as fr_FR; the store view’s when left out. |
X-Ottla-Request-Id
|
Your own id for this request, returned in the response header. Ottla creates one when you send none. Servers only. |
Responses
-
200 OK
What customers say, or why it is not shown.
-
401 Unauthorised
No API key was sent (
unauthenticated), or the key is unknown, revoked or expired (invalid_api_key). -
403 Forbidden
The key lacks the scope (
forbidden_scope), is limited to other IP addresses (ip_not_allowed), is bound to another website (website_mismatch), or the plan does not include Ottla Reviews (not_on_plan). -
404 Not found
Not found: the API is not switched on yet (
not_found), the website is not one of this workspace’s (unknown_website), or no row of the website has that id (not_found). -
422 Invalid
The request is not valid (
validation_failed, witherrorskeyed by field), or theIdempotency-Keyheader is malformed (invalid_idempotency_key). -
429 Rate limited
A rate limit was reached: this key’s limit for the operation’s group (
rate_limited), the workspace’s limit across all its keys (tenant_rate_limited), the limit for one network address (ip_rate_limited) or for one shopper (shopper_rate_limited). Waitretry_afterseconds.
Saves a reply as a draft. Nothing changes on your store until someone on your team approves it in the console under Reviews > All reviews. The API never publishes a reply.
- Key
Authorization: Bearerwith thereviews:writescope- Call from
- Your server only
- Rate limit
reviews_apigroup, 120 a minute
Headers and parameters
| Field | Description |
|---|---|
review_id
|
The review’s id, such as magento:1234. |
X-Ottla-Request-Id
|
Your own id for this request, returned in the response header. Ottla creates one when you send none. Servers only. |
Request body
| Field | Description |
|---|---|
text
|
|
website
|
Only for a key not bound to a website. |
Responses
-
201 Created
The draft was saved.
-
401 Unauthorised
No API key was sent (
unauthenticated), or the key is unknown, revoked or expired (invalid_api_key). -
403 Forbidden
The key lacks the scope (
forbidden_scope), is limited to other IP addresses (ip_not_allowed), is bound to another website (website_mismatch), or the plan does not include Ottla Reviews (not_on_plan). -
404 Not found
Not found: the API is not switched on yet (
not_found), the website is not one of this workspace’s (unknown_website), or no row of the website has that id (not_found). -
422 Invalid
The request is not valid (
validation_failed, witherrorskeyed by field), or theIdempotency-Keyheader is malformed (invalid_idempotency_key). -
429 Rate limited
A rate limit was reached: this key’s limit for the operation’s group (
rate_limited), the workspace’s limit across all its keys (tenant_rate_limited), the limit for one network address (ip_rate_limited) or for one shopper (shopper_rate_limited). Waitretry_afterseconds.
Product questions
Your approved product questions as your product pages show them, with the group title shoppers see, the answer, its sources and when it was approved.
- Key
Authorization: Bearerwith thequestions:readscope- Call from
- Your server only
- Rate limit
reviews_apigroup, 120 a minute
Headers and parameters
| Field | Description |
|---|---|
website
|
The website to read. A key bound to a website reads only that one and may leave this out; any other key must send it. |
product
|
Only this product, by SKU. |
kind
|
Only questions of this kind. |
updated_since
|
Only rows changed at or after this time (ISO 8601). |
language
|
Only this language (two letters, such as fr). |
cursor
|
The next_cursor of the page before. |
limit
|
Rows a page, 1 to 100 (50 when left out). |
X-Ottla-Request-Id
|
Your own id for this request, returned in the response header. Ottla creates one when you send none. Servers only. |
Responses
-
200 OK
A page of approved questions.
-
401 Unauthorised
No API key was sent (
unauthenticated), or the key is unknown, revoked or expired (invalid_api_key). -
403 Forbidden
The key lacks the scope (
forbidden_scope), is limited to other IP addresses (ip_not_allowed), is bound to another website (website_mismatch). -
404 Not found
Not found: the API is not switched on yet (
not_found), the website is not one of this workspace’s (unknown_website), or no row of the website has that id (not_found). -
422 Invalid
The request is not valid (
validation_failed, witherrorskeyed by field), or theIdempotency-Keyheader is malformed (invalid_idempotency_key). -
429 Rate limited
A rate limit was reached: this key’s limit for the operation’s group (
rate_limited), the workspace’s limit across all its keys (tenant_rate_limited), the limit for one network address (ip_rate_limited) or for one shopper (shopper_rate_limited). Waitretry_afterseconds.
The questions waiting in Answer Studio, with how many shoppers asked each one, since when it waits and whether an answer is drafted. A question still in a shopper’s own words has no text here: write it in your words in Answer Studio.
- Key
Authorization: Bearerwith thequestions:readscope- Call from
- Your server only
- Rate limit
reviews_apigroup, 120 a minute
Headers and parameters
| Field | Description |
|---|---|
website
|
The website to read. A key bound to a website reads only that one and may leave this out; any other key must send it. |
product
|
Only this product, by SKU. |
kind
|
Only questions of this kind. |
updated_since
|
Only rows changed at or after this time (ISO 8601). |
language
|
Only this language (two letters, such as fr). |
cursor
|
The next_cursor of the page before. |
limit
|
Rows a page, 1 to 100 (50 when left out). |
X-Ottla-Request-Id
|
Your own id for this request, returned in the response header. Ottla creates one when you send none. Servers only. |
Responses
-
200 OK
A page of waiting questions.
-
401 Unauthorised
No API key was sent (
unauthenticated), or the key is unknown, revoked or expired (invalid_api_key). -
403 Forbidden
The key lacks the scope (
forbidden_scope), is limited to other IP addresses (ip_not_allowed), is bound to another website (website_mismatch). -
404 Not found
Not found: the API is not switched on yet (
not_found), the website is not one of this workspace’s (unknown_website), or no row of the website has that id (not_found). -
422 Invalid
The request is not valid (
validation_failed, witherrorskeyed by field), or theIdempotency-Keyheader is malformed (invalid_idempotency_key). -
429 Rate limited
A rate limit was reached: this key’s limit for the operation’s group (
rate_limited), the workspace’s limit across all its keys (tenant_rate_limited), the limit for one network address (ip_rate_limited) or for one shopper (shopper_rate_limited). Waitretry_afterseconds.
Saves your answer and its sources. Send approve: true to publish it as well. Only an answer you wrote can be approved here: an AI draft, or an answer that states a price or a stock level, is approved in Answer Studio, by a person. An answer already on your product page is changed only with approve: true. The response lists the answer’s warnings in answer_flags.
- Key
Authorization: Bearerwith thequestions:writescope- Call from
- Your server only
- Rate limit
reviews_apigroup, 120 a minute
Headers and parameters
| Field | Description |
|---|---|
question_id
|
The question’s id, pq_ and 26 characters. |
X-Ottla-Request-Id
|
Your own id for this request, returned in the response header. Ottla creates one when you send none. Servers only. |
Request body
| Field | Description |
|---|---|
answer
|
Your answer, in your own words. |
sources
|
Pages that back the answer. Leave it out to keep the sources the answer has. |
sources[].title
|
|
sources[].url
|
|
approve
|
Approve it as well, so it shows on the product page. Only an answer you wrote, with no price or stock warning, can be approved here. Needed to change the answer of an approved question. |
website
|
Only for a key not bound to a website. |
Responses
-
200 OK
The question as saved.
-
401 Unauthorised
No API key was sent (
unauthenticated), or the key is unknown, revoked or expired (invalid_api_key). -
403 Forbidden
The key lacks the scope (
forbidden_scope), is limited to other IP addresses (ip_not_allowed), is bound to another website (website_mismatch). -
404 Not found
Not found: the API is not switched on yet (
not_found), the website is not one of this workspace’s (unknown_website), or no row of the website has that id (not_found). -
422 Invalid
The request is not valid (
validation_failed), or the answer cannot be saved or approved here: an answer from reviews or your store’s FAQ (not_editable), a rejected or archived question (not_open), an AI draft sent withapprove: true(ai_draft), a question still in a shopper’s own words (own_words), an answer with a price or stock warning sent withapprove: true(answer_flagged, withflags), a change to an approved answer withoutapprove: true(approved_answer), or one Answer Studio refused (answer_refused, witherrors). -
429 Rate limited
A rate limit was reached: this key’s limit for the operation’s group (
rate_limited), the workspace’s limit across all its keys (tenant_rate_limited), the limit for one network address (ip_rate_limited) or for one shopper (shopper_rate_limited). Waitretry_afterseconds.
FAQ
Questions developers ask
Can the API publish a reply to a review?
No. A reply sent through the API is saved as a draft. Someone on your team approves it in the console, and only then is it shown on your store.
Does the API send reviewers’ details?
Only what shoppers see on your store: the name the reviewer gave, their words, stars and photos. Never an email address, an order or anything Ottla keeps about a review.
Can I show these reviews on my storefront?
Use Magento GraphQL for that, with the Ottla module’s Reviews and questions in GraphQL switched on: it gives the reviews with your review policy link, how reviews are checked, incentive labels and dates, as your reviews block shows them. This API is for your own systems and does not carry all of those.
Why is a review missing from the list?
The list holds only published reviews. A review waiting for approval, rejected, removed or imported only to inform summaries is not listed. Ask for include_removed=1 to learn which reviews have left your store.
Can I approve an AI-drafted answer through the API?
No. An AI draft is approved by a person in Answer Studio. Through the API you can approve only an answer you wrote.
Related
Authentication
Create keys, choose their scopes and limit them to your servers.
Webhooks
Hear about new, removed and reported reviews as they happen.
Errors
View what each error means and what to do.
Rate limits
How limits are counted and what to do on a 429.