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

Reference

Webhook events

39 events split across 10 categories, each with when it fires and what data it contains.

Updated 14 min read

On this page

Add a webhook under Storefront → Webhooks, tick the events you want, and Ottla sends a signed POST with a JSON body to your address whenever one happens. A help desk can open a ticket the moment a shopper asks for a person; a data team can log every unanswered question; your ops channel can hear when a catalogue batch fails. This page lists every Ottla webhook event and its payload. How to receive and verify them, with tested code for Node.js and PHP, is in the webhooks guide.

Webhooks are available on all plans. Some events belong to features that only some plans include, and are noted below.

Webhook events grouped by area in the Ottla console Example data
Pick events by area, or All events to receive new ones as they’re added.

Envelope

Every delivery has the same envelope. data holds the event’s details, described area by area below.

Every webhook body
{
  "id": "01JC5QC7D9F1H3K5N7Q9S1V3X5",
  "event": "escalation.opened",
  "created": "2026-10-21T10:15:00+00:00",
  "data": { }
}
HeaderWhat it holds
X-Ottla-Signaturev=1,t=<unix seconds>,sig=<hex>: an HMAC-SHA256 of the timestamp and the raw body with your webhook’s signing secret. While a rotated secret is still allowed, it carries a second sig.
X-Ottla-EventThe event name, the same as event in the body.
X-Ottla-Event-IdThe event’s id, the same as id. It stays the same on a retry or a replay, so store it and ignore repeats.
X-Ottla-DeliveryThis delivery’s id, as the console’s Deliveries list shows it.
User-AgentOttla-Webhooks/1.0

Answer with any 2xx status within 10 seconds. Otherwise Ottla tries again, up to six attempts in all, waiting about 5 seconds, 15 seconds, 1 minute, 4 minutes and 10 minutes between them. After 10 failures in a row the webhook is paused and its events are held for up to 72 hours. Ottla tries again after an hour, then after 2, 4, 8 and 16 hours, then daily, and sends the held events, oldest first, once a delivery succeeds.

Choose All events when you add a webhook and it also receives events we add later. Accept an event you don’t recognise with a 2xx, so new events never put your webhook on pause.

Which events for which job

You don’t need to subscribe to all 39 events. Here are some useful combinations:

If you want toSubscribe to
Open a ticket in your own help desk when a shopper asks for a person, and keep it in stepescalation.opened, escalation.message, escalation.resolved, escalation.rated
Tell your content team about questions the assistant couldn’t answerquestion.refused, and opportunity.created on Growth and above
Watch your catalogue sync from your own monitoringproduct.ingested, product.deindexed, content.deindexed
Follow up on demand for out of stock products in your email platformalert.subscribed, alert.notified
Remind repeat buyers before they run outreplenishment.due
Keep a record of merchandising changesmerchandising.rule_published, campaign.published
Post the weekly numbers to a team channeldigest.weekly
Keep a copy of your reviews in step, or tell your team about low-star reviews and shopper reportsreview.published, review.removed, review.low_star, review.reported, on Growth and above
Keep finance and access records up to datethe Billing and Team and workspace events

Assistant

EventConsole nameFires whenData
question.answeredQuestion answeredWhen the assistant answers a customer’s question, including polite refusals.question {id, text}, answer {id, confidence, fallback, refusal_reason, sources_count}. Includes the full question asked, so only send it to a system you control.
question.refusedQuestion not answeredWhen the assistant is unable to answer a question: a fallback or a refusal. This is sent along with question.answered.Same as question.answered.
question.approvedProduct question approvedWhen your team approves a product question and answer in Answer Studio.question_id, external_id (product), question, website_id.

Knowledge

Documents your team adds in the console, from an upload or an address, and Demand inbox answers. Documents your store sends through the API raise source.created and source.deleted, but not the processing events.

EventConsole nameFires whenData
source.createdDocument addedA document was added: in the console, from a Demand inbox answer, or sent by your store.source_id, website_id, source_type, title, source_url.
source.deletedDocument removedA document was removed.As source.created.
ingestion.startedDocument processing startedA document added in the console started processing.As source.created.
ingestion.completedDocument readyThe document was read and is ready for the assistant.As source.created.
ingestion.failedDocument failedThe document couldn’t be processed.As source.created, plus error in plain words.

Catalogue

EventConsole nameFires whenData
product.ingestedProducts syncedWhen a catalogue batch has created or updated products. Does not fire if nothing changed.website_id, store_view_id, summary {created, updated, skipped, indexed, skipped_over_limit, failed}. Only contains counts.
product.deindexedProduct removedWhen your store’s sync removes products.website_id, store_view_id, summary {deindexed}.
content.deindexedContent page removedWhen your store’s sync removes pages, FAQs or other content.website_id, source_type, summary {deindexed}.
channel_feed.updatedAI product feed updatedWhen your AI product feed has been rebuilt with changed products, prices or stock. Available with AI channels, on Pro and Enterprise.Contains the feed’s counts and download URL.
content_suggestion.acceptedProduct page suggestion acceptedWhen your team accepts a product page suggestion with Edit and accept, under AI assistant → Product page suggestions.suggestion_id, website_id, external_id, sku, locale, kind (questions or criticism) and text, your team’s own wording as accepted. No review text or reviewer data.

Support

Only sent to the webhook you select under Webhook handoff in Customer chat → Support settings, for the events it subscribes to. Your other webhooks never receive them, even with All events, because they carry the shopper’s messages and contact. Handoffs go to your team in Ottla’s Support inbox with the conversation attached, and this event is how you forward them to your own help desk.

EventConsole nameFires whenData
escalation.openedHandoff requestedA shopper asked for a person and the conversation was handed to your team.escalation {id, channel, status, opened_reason, subject, session_id, website_id, opened_at}, and shopper_contact when given. No transcript.
escalation.messageHandoff messageA message was posted in a handoff conversation.escalation {id, channel, status}, message {id, sender, body, sent_at}.
escalation.resolvedHandoff closedA handoff conversation was closed: status is resolved, or abandoned when a live chat closed after the shopper left.escalation {id, channel, status, rating, resolved_at}. rating is usually null: shoppers rate after the close, which sends escalation.rated.
escalation.ratedHandoff ratedA shopper rated a handoff conversation from 1 to 5, usually after it closed.escalation {id, channel, status, rating, rated_at}.

Reviews and questions

Sent only for a website whose review webhooks are switched on, under Reviews → Alerts, replies and follow-ups. The review events are on Growth and above; question.submitted is on every plan. A review is named magento: and its Magento review id, or ottla: and the id of a review Ottla collected that Magento doesn’t hold yet, the same ids as the reviews and questions API. Stars, “Verified purchase” and the incentive label are as your reviews list shows them, and a review with an incentive label must be shown with it. Nothing about who reported a review, and no shopper’s own question or email, is ever sent.

EventConsole nameFires whenData
review.publishedReview publishedA review was published on your store: once per review, for reviews written in the last 14 days and published after you switched review webhooks on. Sent again with restored true when a review that review.removed reported is back on your store.review_id, website_id, product {sku, name, external_id}, stars, title, body, pros, cons, author (as your store shows it), verified_purchase, incentivised, incentive {kind, text}, language, source, submitted_at, published_at, restored, console_url.
review.low_starLow-star review publishedA review with as many stars as your low-star limit, or fewer, was published. It is sent after publication: Ottla never holds a review back.As review.published, plus threshold.
review.reportedReview reportedA shopper reported a review.report_id, review_id, website_id, product {sku}, reason, reported_at.
review.removedReview removedA published review left your store.review_id, website_id, product {sku}, reason (removed_in_magento, rejected, removed_by_reviewer, erased, removal_request or other), removed_at. Never its words: delete your own copy.
review.repliedStore replied to a reviewYour reply to a review was published: shown in Ottla’s reviews list, or written into Amasty or MageWorx by the Ottla module.review_id, website_id, product {sku}, reply {text, public}, replied_at, written_to (ottla or magento).
question.submittedQuestion asked on a product pageA shopper asked a question on a product page.question_id, website_id, product {sku, name}, language, asked_on_product_page, new_question, console_url.

A review removed a second time is not reported again, so a system that keeps a copy should also check now and then with GET /reviews, updated_since and include_removed=1.

Alerts and reorders

Alert events never carry a shopper’s email address, only its SHA-256 hash. Reorder events identify the customer only by the pseudonymous customer_ref your store sends with orders.

EventConsole nameFires whenData
alert.subscribedStock or price alert setA shopper confirmed a back in stock or price drop alert.website_id, external_id, sku, alert_type, subscribed_at, email_sha256.
alert.notifiedStock or price alert sentA shopper’s alert email was sent.As alert.subscribed, plus notified_at.
replenishment.dueReorder dueA repeat buyer is due to reorder products.website_id, customer_ref, items (up to 20, each with sku, name, url, usual_qty, avg_interval_days, last_purchased_at, due_in_days).

Merchandising

EventConsole nameFires whenData
merchandising.rule_publishedRule publishedWhen a merchandising rule is published.rule_id, type, context, match_type, starts_at, ends_at, source, website_id.
campaign.publishedCampaign publishedWhen a campaign is published.campaign_id, website_id, name, slug, starts_at, ends_at, timezone, landing_path.
experiment.concludedExperiment concludedWhen a holdout experiment is concluded. Available on Growth and above.website_id, experiment_id, result, reason, probability_ottla_better, metric (orders or revenue), headline (the difference between the groups and its 90% range), arms (each with visitors, orders and revenue_minor in the headline currency).

Demand and digest

These events relate to the Demand inbox and are available on Growth and above.

EventConsole nameFires whenData
opportunity.createdLost demand foundThe Demand inbox found lost demand: searches with no results or questions the assistant couldn’t answer.website_id, opportunity_id, kind, query, searches, est_value_minor, currency, window_days.
digest.weeklyWeekly digestThe weekly digest was built, when it’s switched on for the website.website_id, period_start, period_end, metrics, top_opportunities and markdown, a ready-written copy.

Team and workspace

Team events never include an email address.

EventConsole nameFires whenData
team.member_addedTeam member joinedSomeone joined the workspace.user_id, role, via (invitation, or staff when Ottla added them for you).
team.member_removedTeam member leftSomeone was removed from the workspace or left it.user_id, previous_role, reason (removed or left).
data_export.readyData export readyA workspace data export you asked for is ready.export {reference_id, completed_at, expires_at, bytes}. No download link: download it from the console.

Billing

These events are about your billing with Ottla, not your customers’ payments.

EventConsole nameFires whenData
subscription.status_changedSubscription status changedThe workspace’s subscription changed status, such as a trial starting or ending.subscription_id, previous_status, current_status, cancel_at_period_end, and sometimes reason and trial_ends_at.
subscription.past_duePayment failedA subscription payment failed.subscription_id, plan_id, invoice with its id, the amount due in minor units, the currency and a link to the invoice.
subscription.recoveredSubscription active againAn overdue subscription was paid and is active again.subscription_id, plan_id.
subscription.canceledSubscription cancelledThe workspace’s subscription was cancelled.subscription_id, plan_id.
invoice.paidInvoice paidAn Ottla invoice was paid.invoice with its id, the amount paid in minor units, the currency and a link to the invoice.

Example payloads

question.answered
{
  "id": "01JC5QC7D9F1H3K5N7Q9S1V3X5",
  "event": "question.answered",
  "created": "2026-10-21T10:45:00+01:00",
  "data": {
    "question": { "id": 66120, "text": "Is this tent waterproof?" },
    "answer": { "id": 58213, "confidence": "high", "fallback": false, "refusal_reason": null, "sources_count": 3 }
  }
}
escalation.opened
{
  "id": "01JC5QD2F4H6K8M0P2R4T6V8X0",
  "event": "escalation.opened",
  "created": "2026-10-21T10:44:01+01:00",
  "data": {
    "escalation": {
      "id": 912,
      "channel": "handoff",
      "status": "pending",
      "opened_reason": "shopper_request",
      "subject": "Can I change the delivery address on my order?",
      "session_id": "c1f0a7d2-5b4e-4d2b-9a51-3e8f2c6b7a90",
      "website_id": 12,
      "opened_at": "2026-10-21T10:44:00+01:00"
    },
    "shopper_contact": "[email protected]"
  }
}
product.ingested
{
  "id": "01JC5QE5G7J9L1N3Q5S7U9W1Y3",
  "event": "product.ingested",
  "created": "2026-10-21T09:14:03+01:00",
  "data": {
    "website_id": 12,
    "store_view_id": null,
    "summary": { "created": 12, "updated": 140, "skipped": 0, "indexed": 152, "skipped_over_limit": 0, "failed": 0 }
  }
}
alert.subscribed
{
  "id": "01JC5QF8H0K2M4P6R8T0V2X4Z6",
  "event": "alert.subscribed",
  "created": "2026-10-21T10:50:02+01:00",
  "data": {
    "website_id": 12,
    "external_id": "1187",
    "sku": "TENT-2P",
    "alert_type": "back_in_stock",
    "subscribed_at": "2026-10-21T10:50:00+01:00",
    "email_sha256": "4b2a3c5f0d9e8b7a6c5d4e3f2a1b0c9d8e7f6a5b4c3d2e1f0a9b8c7d6e5f4a3b"
  }
}

Not subscribable

EventWhat it is
webhook.testSent only by Send test event in the console, to the one webhook you’re testing. data holds test: true, endpoint_id and a message. Check its signature like any other delivery.
question.askedRetired and never sent. A webhook that already subscribes to it still saves. Use question.answered, which carries each question’s text.

FAQ

Questions developers ask

How many events are there?

39 you can subscribe to, in ten areas. That leaves out webhook.test, which only Send test event sends, and the retired question.asked.

Will I get events added later?

Yes, if you select All events when adding your webhook. If you select individual events, you only receive those.

Does escalation.opened include the conversation?

No. It carries the handoff’s details and the shopper’s contact address if they gave one. Your team reads the conversation in the Support inbox, and messages that follow arrive as escalation.message.

Are shopper emails in alert events?

No, only a SHA-256 hash of the address in email_sha256. Hash the lowercased address on your side to match it to a customer you already know.

Can I download a data export from the webhook?

No. data_export.ready tells you it’s ready; download it from the console while signed in.

Alert events come from stock and price alerts, which shoppers sign up for on your product pages.

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.