Reference
Webhook events
39 events split across 10 categories, each with when it fires and what data it contains.
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.
Envelope
Every delivery has the same envelope. data holds the event’s details, described area by area below.
{
"id": "01JC5QC7D9F1H3K5N7Q9S1V3X5",
"event": "escalation.opened",
"created": "2026-10-21T10:15:00+00:00",
"data": { }
}
| Header | What it holds |
|---|---|
X-Ottla-Signature | v=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-Event | The event name, the same as event in the body. |
X-Ottla-Event-Id | The 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-Delivery | This delivery’s id, as the console’s Deliveries list shows it. |
User-Agent | Ottla-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 to | Subscribe to |
|---|---|
| Open a ticket in your own help desk when a shopper asks for a person, and keep it in step | escalation.opened, escalation.message, escalation.resolved, escalation.rated |
| Tell your content team about questions the assistant couldn’t answer | question.refused, and opportunity.created on Growth and above |
| Watch your catalogue sync from your own monitoring | product.ingested, product.deindexed, content.deindexed |
| Follow up on demand for out of stock products in your email platform | alert.subscribed, alert.notified |
| Remind repeat buyers before they run out | replenishment.due |
| Keep a record of merchandising changes | merchandising.rule_published, campaign.published |
| Post the weekly numbers to a team channel | digest.weekly |
| Keep a copy of your reviews in step, or tell your team about low-star reviews and shopper reports | review.published, review.removed, review.low_star, review.reported, on Growth and above |
| Keep finance and access records up to date | the Billing and Team and workspace events |
Assistant
| Event | Console name | Fires when | Data |
|---|---|---|---|
question.answered | Question answered | When 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.refused | Question not answered | When 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.approved | Product question approved | When 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.
| Event | Console name | Fires when | Data |
|---|---|---|---|
source.created | Document added | A 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.deleted | Document removed | A document was removed. | As source.created. |
ingestion.started | Document processing started | A document added in the console started processing. | As source.created. |
ingestion.completed | Document ready | The document was read and is ready for the assistant. | As source.created. |
ingestion.failed | Document failed | The document couldn’t be processed. | As source.created, plus error in plain words. |
Catalogue
| Event | Console name | Fires when | Data |
|---|---|---|---|
product.ingested | Products synced | When 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.deindexed | Product removed | When your store’s sync removes products. | website_id, store_view_id, summary {deindexed}. |
content.deindexed | Content page removed | When your store’s sync removes pages, FAQs or other content. | website_id, source_type, summary {deindexed}. |
channel_feed.updated | AI product feed updated | When 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.accepted | Product page suggestion accepted | When 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.
| Event | Console name | Fires when | Data |
|---|---|---|---|
escalation.opened | Handoff requested | A 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.message | Handoff message | A message was posted in a handoff conversation. | escalation {id, channel, status}, message {id, sender, body, sent_at}. |
escalation.resolved | Handoff closed | A 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.rated | Handoff rated | A 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.
| Event | Console name | Fires when | Data |
|---|---|---|---|
review.published | Review published | A 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_star | Low-star review published | A 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.reported | Review reported | A shopper reported a review. | report_id, review_id, website_id, product {sku}, reason, reported_at. |
review.removed | Review removed | A 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.replied | Store replied to a review | Your 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.submitted | Question asked on a product page | A 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.
| Event | Console name | Fires when | Data |
|---|---|---|---|
alert.subscribed | Stock or price alert set | A shopper confirmed a back in stock or price drop alert. | website_id, external_id, sku, alert_type, subscribed_at, email_sha256. |
alert.notified | Stock or price alert sent | A shopper’s alert email was sent. | As alert.subscribed, plus notified_at. |
replenishment.due | Reorder due | A 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
| Event | Console name | Fires when | Data |
|---|---|---|---|
merchandising.rule_published | Rule published | When a merchandising rule is published. | rule_id, type, context, match_type, starts_at, ends_at, source, website_id. |
campaign.published | Campaign published | When a campaign is published. | campaign_id, website_id, name, slug, starts_at, ends_at, timezone, landing_path. |
experiment.concluded | Experiment concluded | When 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.
| Event | Console name | Fires when | Data |
|---|---|---|---|
opportunity.created | Lost demand found | The 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.weekly | Weekly digest | The 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.
| Event | Console name | Fires when | Data |
|---|---|---|---|
team.member_added | Team member joined | Someone joined the workspace. | user_id, role, via (invitation, or staff when Ottla added them for you). |
team.member_removed | Team member left | Someone was removed from the workspace or left it. | user_id, previous_role, reason (removed or left). |
data_export.ready | Data export ready | A 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.
| Event | Console name | Fires when | Data |
|---|---|---|---|
subscription.status_changed | Subscription status changed | The 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_due | Payment failed | A 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.recovered | Subscription active again | An overdue subscription was paid and is active again. | subscription_id, plan_id. |
subscription.canceled | Subscription cancelled | The workspace’s subscription was cancelled. | subscription_id, plan_id. |
invoice.paid | Invoice paid | An Ottla invoice was paid. | invoice with its id, the amount paid in minor units, the currency and a link to the invoice. |
Example payloads
{
"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 }
}
}
{
"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]"
}
}
{
"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 }
}
}
{
"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
| Event | What it is |
|---|---|
webhook.test | Sent 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.asked | Retired 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.
Related
Receive and verify webhooks
Signature checks, retries and replays, with tested code.
Live chat handoff
How to use the support events to forward handoffs to your helpdesk.
Testing
Sending test events and checking your endpoint before going live.
Webhooks integration
What merchants can connect with Ottla webhooks.
Alert events come from stock and price alerts, which shoppers sign up for on your product pages.