Developers
Build with Ottla
Everything you need to know to add Ottla to your Magento, Adobe Commerce or custom storefront, and pull data from Ottla into your own systems.
On this page
Ottla adds an AI shopping assistant to your online store. It answers questions using your products, prices, stock and policies, and hands over to your team when appropriate. This is our developer documentation, for developers and agencies that want to add Ottla to their stores. If you are new to Ottla, check out our quick start guide to get your assistant up and running in 4 steps.
If you are on Magento Open Source or Adobe Commerce, you need to install our module and click Connect to Ottla. You do not need to create any API keys. If you have another type of storefront, you need to add our chat widget to your store with two script tags and use our REST API to send us your catalogue. Our API can be used to ask questions, search, get recommendations, hand off conversations to your team and keep your catalogue up to date. We also have signed webhooks that tell your own systems when something happens.
Ottla is hosted in the UK (London). Answers come from our AI service in London; if it is unavailable, the assistant can fall back to Mistral AI in the EU (France). We will be adding EU and US regions in the near future. Check our data residency page for more information.
Choose your path
I run Magento or Adobe Commerce
Install our module using Composer and click Connect to Ottla. We create any keys that your store needs. Compatible with Luma and Hyvä.
I run a headless or custom storefront
Add our chat widget to your store. Use our API to send us your catalogue and create your own search bar and product rows.
I want Ottla’s data in my systems
Use our signed webhooks to receive answers, handoffs, alerts and syncs from Ottla, and send handoffs to your own help desk.
The API at a glance
| Item | Detail |
|---|---|
| Base URL | https://ottla.ai/api/v1. https://uk.ottla.ai/api/v1 serves the same API; the Magento module uses it. |
| Format | JSON over HTTPS |
| Authentication | Authorization: Bearer with a key from Storefront → API keys |
| Versioning | /api/v1 in the path, and X-Ottla-Platform-Contract: 10 on every response |
| Request ids | X-Ottla-Request-Id on every response. Quote it when you contact us about a request. |
| Region | UK (London). EU and US regions are coming soon. |
| Status | Live service status on the Ottla status page |
Check out our Authentication documentation to learn more about keys and scopes, and our API reference to see all of our endpoints.
Check you can reach the API
GET /health needs no key, so it is a quick way to check your network and firewall before anything else.
curl https://ottla.ai/api/v1/health
const res = await fetch('https://ottla.ai/api/v1/health');
console.log(await res.json());
use GuzzleHttp\Client;
$client = new Client(['base_uri' => 'https://ottla.ai/api/v1/']);
$response = $client->get('health');
echo $response->getBody();
{"status":"ok","time":"2026-10-21T10:15:00+00:00"}
Reference
API reference
Base URLs, conventions and one page per resource.
Webhook events
All of the events Ottla sends you and the data each payload contains.
Errors
All status and error codes, with advice about each.
Rate limits
Our per-key request limits, the HTTP 429 response code and how to back off.
Versioning
What the contract header tells your client and how we announce changes.
Changelog
New endpoints, fields and fixes, newest first.
Latest developer changes
-
Platform contract 10: reviews, FAQ and product page tools
The Ottla platform has incremented its version (“contract”) to 10, required by the Magento module for FAQ page integration, product page tools and review display. Additional webhook events are introduced for reviews, questions and product page content suggestions.
-
Orders need a server key, and handoff webhooks follow live chats
Orders for revenue attribution now need a key only your server holds, a key limited to one website writes only there, and the handoff webhooks cover live chats and ratings.
-
Developer documentation rebuilt
Reference pages for all public endpoints and webhook events. Code snippets for curl, PHP and Node.js. Webhook verification for Node.js and PHP that we have tested.
See every entry in the developer changelog.
FAQ
Frequently asked questions
Is there an SDK?
No. Our API is JSON over HTTPS, so you can use any HTTP client. Each page has code snippets in curl, JavaScript and PHP that you can copy.
Do I need an API key for a Magento store?
No. When you click Connect to Ottla in your Magento admin, we create any keys that your store needs. You only need to create keys manually if you are using a headless or custom storefront.
Which platforms does Ottla support?
Magento Open Source and Adobe Commerce 2.4.6 to 2.4.9 (PHP 8.2 to 8.5), using our Magento module. Compatible with Luma and Hyvä themes. Any other type of storefront can use our REST API and widget, including PWA Studio and custom headless storefronts. These set-ups are not tested with our module.
Is there a sandbox or test key?
No. All keys are live. You can test using the Playground in the console. Questions asked in the Playground do not use your monthly answered questions. You can also use the widget’s IP allow-list so only your team can see it. Check out Test your integration.
Where does Ottla run?
The UK (London). We will be adding EU and US regions in the near future. Check our data residency page for more information.
In this section
-
Quick start
Go from signing up to having an assistant answering on your store, whether you’re using Magento or any other platform.
-
Concepts
Terms used in both the console and the API, and the field name we call each one.
-
Authentication
You need to send your key in the Authorization header. The scopes on your key determine which endpoints you can call.
-
API keys and origins
Use one key per job. Browser keys should be locked to your storefront’s address. Server keys should never leave your servers.
-
Testing
There is no sandbox environment. All API keys are live. Here’s how you can test safely.
-
Hyvä
No editing needed. The module renders Hyvä-compatible HTML by itself. No compatibility module to install, no Tailwind rebuilds to do and no...
-
Widget installation
Copy and paste the two tags provided by your console, with a browser key locked to your storefront’s address.
-
Widget configuration
Most settings can be found in the console’s widget builder. You can override some settings for one page using data attributes on your script...
-
JavaScript events and consent
Window events, and a handful of functions you write yourself. There’s no exposed JavaScript API beyond that.
-
Custom platform sync
Batch your products and content to the ingestion API, remove what is gone, and confirm each batch.
-
Live chat and handoff
The widget triggers this behaviour when you enable a channel; a custom chat calls the same escalation endpoints.
-
Go-live checklist
Twelve checks before you switch the assistant on for every shopper, and three for the week after.