Base URLhttps://ottla.ai/api/v1

API reference

Reviews and questions

Read your published reviews, what customers say and your product questions, save reply drafts and answer questions.

Updated 17 min read

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.

Scopes
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

GET /api/v1/reviews List published 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: Bearer with the reviews:read scope
Call from
Your server only
Rate limit
reviews_api group, 120 a minute

Headers and parameters

GET /reviews: headers and parameters
FieldDescription
website integer query Optional 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 string query Optional Only this product, by SKU.
updated_since string (date-time) query Optional Only rows changed at or after this time (ISO 8601).
stars integer query Optional Only reviews with these stars, 1 to 5.
source string query Optional Only reviews held by Magento, Amasty, MageWorx or Ottla.
language string query Optional Only this language (two letters, such as fr).
include_removed boolean query Optional Add removed reviews as tombstones.
cursor string query Optional The next_cursor of the page before.
limit integer query Optional Rows a page, 1 to 100 (50 when left out).
X-Ottla-Request-Id string header Optional 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, with errors keyed by field), or the Idempotency-Key header 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). Wait retry_after seconds.

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"
GET /api/v1/reviews/{review_id} Get one review

One review by its id, such as magento:1234. The ids are the same as in the review webhooks.

Key
Authorization: Bearer with the reviews:read scope
Call from
Your server only
Rate limit
reviews_api group, 120 a minute

Headers and parameters

GET /reviews/{review_id}: headers and parameters
FieldDescription
review_id string path Required The review’s id, such as magento:1234.
website integer query Optional 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 string header Optional 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, with errors keyed by field), or the Idempotency-Key header 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). Wait retry_after seconds.

GET /api/v1/review-insights Get what customers say about a product

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: Bearer with the reviews:read scope
Call from
Your server only
Rate limit
reviews_api group, 120 a minute

Headers and parameters

GET /review-insights: headers and parameters
FieldDescription
website integer query Optional 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 string query Required The product, by SKU.
store_view string query Optional The store view’s code.
locale string query Optional The language to show it in, such as fr_FR; the store view’s when left out.
X-Ottla-Request-Id string header Optional 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, with errors keyed by field), or the Idempotency-Key header 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). Wait retry_after seconds.

POST /api/v1/reviews/{review_id}/reply Draft a reply to a review

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: Bearer with the reviews:write scope
Call from
Your server only
Rate limit
reviews_api group, 120 a minute

Headers and parameters

POST /reviews/{review_id}/reply: headers and parameters
FieldDescription
review_id string path Required The review’s id, such as magento:1234.
X-Ottla-Request-Id string header Optional Your own id for this request, returned in the response header. Ottla creates one when you send none. Servers only.

Request body

POST /reviews/{review_id}/reply: request body (application/json)
FieldDescription
text string Required
website integer Optional 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, with errors keyed by field), or the Idempotency-Key header 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). Wait retry_after seconds.

Product questions

GET /api/v1/questions List approved 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: Bearer with the questions:read scope
Call from
Your server only
Rate limit
reviews_api group, 120 a minute

Headers and parameters

GET /questions: headers and parameters
FieldDescription
website integer query Optional 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 string query Optional Only this product, by SKU.
kind string query Optional Only questions of this kind.
updated_since string (date-time) query Optional Only rows changed at or after this time (ISO 8601).
language string query Optional Only this language (two letters, such as fr).
cursor string query Optional The next_cursor of the page before.
limit integer query Optional Rows a page, 1 to 100 (50 when left out).
X-Ottla-Request-Id string header Optional 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, with errors keyed by field), or the Idempotency-Key header 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). Wait retry_after seconds.

GET /api/v1/questions/queue List questions waiting for an answer

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: Bearer with the questions:read scope
Call from
Your server only
Rate limit
reviews_api group, 120 a minute

Headers and parameters

GET /questions/queue: headers and parameters
FieldDescription
website integer query Optional 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 string query Optional Only this product, by SKU.
kind string query Optional Only questions of this kind.
updated_since string (date-time) query Optional Only rows changed at or after this time (ISO 8601).
language string query Optional Only this language (two letters, such as fr).
cursor string query Optional The next_cursor of the page before.
limit integer query Optional Rows a page, 1 to 100 (50 when left out).
X-Ottla-Request-Id string header Optional 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, with errors keyed by field), or the Idempotency-Key header 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). Wait retry_after seconds.

POST /api/v1/questions/{question_id}/answer Answer a product question

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: Bearer with the questions:write scope
Call from
Your server only
Rate limit
reviews_api group, 120 a minute

Headers and parameters

POST /questions/{question_id}/answer: headers and parameters
FieldDescription
question_id string path Required The question’s id, pq_ and 26 characters.
X-Ottla-Request-Id string header Optional Your own id for this request, returned in the response header. Ottla creates one when you send none. Servers only.

Request body

POST /questions/{question_id}/answer: request body (application/json)
FieldDescription
answer string Required Your answer, in your own words.
sources array of object Optional Pages that back the answer. Leave it out to keep the sources the answer has.
sources[].title string Optional
sources[].url string (uri) Required
approve boolean Optional 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 integer Optional 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 with approve: true (ai_draft), a question still in a shopper’s own words (own_words), an answer with a price or stock warning sent with approve: true (answer_flagged, with flags), a change to an approved answer without approve: true (approved_answer), or one Answer Studio refused (answer_refused, with errors).

  • 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). Wait retry_after seconds.

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.

Try Ottla on your own store

Start a 14-day free trial with no card needed. The trial has every Pro feature, with lower limits, so you can install the module or the widget, connect your catalogue and try the assistant on your own products.

14 days free. No card needed.