Whether you're launching a feature-rich e-commerce site, building a virtual try-on experience, or powering a scalable AI engine, our developer-first architecture makes it easy to implement, customize, and deploy powerful AR and AI tools into your digital stack.
We offer flexible, modular solutions that can plug directly into your infrastructure, no heavy lifting required.
RESTful APIs & Webhooks
Pre-built SDKs for web & mobile
Clean, well-documented codebase
Full tech support & integration guides
Our platform is built to fit yours. Novagates works across all major environments, frameworks, and CMS platforms, from Shopify and Magento to custom-built systems.
Frontend agnostic
Headless architecture ready
Easy plugin options for CMS & storefronts
1
4
All you need is the publishable pk_… key from the API Keys tab in your dashboard. The SDK opens its own session; your backend is not involved.
Web
Add your storefront domain under Integrations → Domains & apps, then embed the script tag with your publishable key. The SDK posts the key to POST /api/sdk-session with a DPoP proof it makes in the browser (plus optional reCAPTCHA attestation) and gets back a short-lived sessionToken bound to the page origin and its DPoP key.
iOS & Android apps
Register your app under Domains & apps with its platform (iOS: Bundle ID + Team ID; Android: package name + signing certificate SHA-256). The native SDK gets a one-use challenge from POST /api/sdk/app-challenge, attests on the device (iOS App Attest; Android hardware Key Attestation), and posts app_id + app_attestation to /api/sdk-session, which Novagates verifies.
Plugins
The WooCommerce, Magento, Shopify and OpenCart plugins need only your publishable key.
Initialize the SDK by embedding its <script> tag with your publishable key as ?key=… and ?module=…. The SDK opens its own short-lived session and attaches it to every Novagates call.
Init flow
Novagates.init({ rootId, productsSource, immediate: true }) and opens its own session at /api/sdk-session. It sends the session token as Authorization: DPoP, with a proof for each request in the DPoP header. When managed products is on for your brand, it asks Novagates which module and language to load, loads your products from /api/sdk/products and ignores productsSource; the dashboard snippet shows which one applies to your brand.Implementation
<!doctype html><html lang="en"><head><meta charset="utf-8" /><title>Novagates Virtual Try-On</title></head><body><div id="novagates-root"></div><script>(function bootNovagates() {// 1. Load the SDK with your publishable key + module. The SDK opens// its own short-lived session; nothing else to call.const params = new URLSearchParams({module: "virtual-try-on",key: "pk_YOUR_PUBLISHABLE_KEY",});const script = document.createElement("script");script.src ="https://cdn.novagates.com/sdk/novagates-sdk.js?" + params.toString();script.async = true;script.onload = function () {// 2. Init once the loader has registered the global.window.Novagates.init({rootId: "novagates-root",productsSource: "/api/products.json",immediate: true,});};document.body.appendChild(script);})();// 3. Listen for product events emitted by the SDK.window.addEventListener("sdk:addToCart", function (e) {console.log("[novagates] add to cart", e.detail);// forward to your cart, analytics, etc.});</script></body></html>
The SDK runs inside your page, so it is governed by your site's Content Security Policy, not ours. If you enforce a strict CSP, allow the directives below before you go live - otherwise the SDK fails in ways that are hard to attribute from the outside: a black iframe, or a CompileError thrown from inside a minified bundle.
A srcdoc iframe does not isolate the SDK from your policy
The SDK runs in an about:srcdoc frame, and such a frame has no URL to derive a policy from - it inherits the embedding document's CSP, and its origin. Assuming the iframe isolates the SDK from your policy is the single most common misunderstanding here, and it is wrong.
| Directive | Sources to allow | Why |
|---|---|---|
script-src | 'self' https://cdn.novagates.com | The loader, the module bundles and the ONNX Runtime .mjs are all script src off the CDN. |
script-src | 'wasm-unsafe-eval' | MediaPipe, ONNX Runtime and TFLite all call WebAssembly.compile / instantiate, which CSP gates. Without it the SDK loads and then fails from inside with a CompileError - no blocked-resource message, so it is the hardest failure to attribute. 'unsafe-eval' also works but is strictly wider and should not be used. |
connect-src | 'self' blob: https://cdn.novagates.com | Model weights (.nova), MediaPipe .task landmarkers, .wasm runtimes, .glb / .hdr scene assets and the category manifests are all fetched. TFLite weights are decoded into a Blob and re-fetched through an object URL, which is why blob: belongs here too. |
worker-src | 'self' blob: https://cdn.novagates.com | The inference worker is bundled inline and instantiated from a blob: URL. Omit this directive and it does NOT fall back to default-src - the chain is child-src, then script-src, then default-src - so it silently inherits whatever script-src allows. The refusal itself does reach the console and the violation report - it is the SDK's fallback to main-thread inference that is silent, so the page keeps working and only gets slower. |
media-src | 'self' blob: data: | Uploaded and recorded video plus generated audio play through URL.createObjectURL. The live-camera path uses srcObject, which CSP does not gate - so camera try-on keeps working while upload try-on breaks, which is a nasty way to find out. |
style-src | 'self' 'unsafe-inline' | The SDK renders into your page and styles its own UI inline. Absent a style-src it falls back to default-src, so a strict policy renders the try-on surface unstyled rather than blocking it — visibly wrong, with nothing thrown. This is the value our own site serves, in Report-Only, while running the same SDK; if yours is stricter, prove it in Report-Only before promoting. Be clear-eyed that this one is a real relaxation of your policy and the only directive here that is: 'unsafe-inline' on style-src permits any injected CSS on your pages, so it is worth confirming you want it rather than pasting it. A nonce or hash works for styles too if you would rather not, at the cost of coordinating with each SDK release. |
font-src | 'self' data: | Icon and UI fonts the SDK inlines as data: URIs. Falls back to default-src when omitted, which drops them to the browser default — again visible, not thrown. |
img-src | 'self' data: blob: https://cdn.novagates.com | Canvas captures the SDK produces as data: and blob: URLs, plus the image assets it loads from the origin it is itself served from. Your PRODUCT imagery is not covered here — that comes from whatever origin your catalog points at, so add that origin yourself. This is also the one row not derived from our own middleware policy: that file allows the same origin in img-src for an unrelated reason (our marketing media CDN shares it), so it corroborates this row rather than proving it. If you would rather not grant it, drop it and watch the Report-Only reports. |
frame-src | 'self' https://cdn.novagates.com | The SDK draws its experience in a frame served from the CDN, a real cross-origin document. Absent a frame-src the browser falls back to child-src and then default-src, so a strict policy blocks the frame and the try-on never appears. |
The bootstrap above is an inline script — give it a nonce
The Vanilla JS example in the integration section above puts its boot function in an inline script tag on your page. Under a strict script-src that tag is blocked and the SDK never loads at all — this is the first thing anyone hits who copies both the snippet and the policy. Emit a per-request nonce on the tag and in the header: add a nonce attribute to the opening script tag of the Vanilla JS example above, with the same value you substitute for the nonce placeholder in the snippets below. Or move the function into a file that 'self' already covers, which needs no nonce at all. The example is left without a nonce attribute on purpose, because the value has to be generated per request and a copied placeholder would be worse than none. Do not reach for 'unsafe-inline': it re-enables every inline script on your site, which is a far higher price than this needs. AND MIND WHAT THE NONCE DOES TO A POLICY YOU ALREADY HAVE — under CSP Level 3, a script-src containing a nonce or hash makes 'unsafe-inline' in that same directive IGNORED. If you serve script-src 'self' 'unsafe-inline' today and simply append this nonce, every other inline script on your storefront (tag manager, analytics, chat widget) stops running, site-wide, with nothing on this page to warn you. Nonce them all in the same change, or externalise this one function instead.
# THESE ARE THE SDK'S DIRECTIVES, NOT A COMPLETE POLICY. Merge each source# expression into the directive you already serve - pasting this block as your# whole CSP replaces yours and breaks the rest of your site.## NOTE on the nonce: a script-src that contains a nonce makes 'unsafe-inline'# in that same directive IGNORED (CSP Level 3). If you serve 'unsafe-inline'# today, nonce your other inline scripts in the same change or they stop# running.## Roll it out FIRST in Report-Only, with a collector at /csp-report, and read# the reports before you promote. Shown wrapped for readability - send it as# ONE header line; HTTP header folding is obsolete and proxies will not# reassemble it.add_header Content-Security-Policy-Report-Only "script-src 'self' 'wasm-unsafe-eval' https://cdn.novagates.com 'nonce-<PER-REQUEST>';connect-src 'self' blob: https://cdn.novagates.com;worker-src 'self' blob: https://cdn.novagates.com;frame-src 'self' https://cdn.novagates.com;style-src 'self' 'unsafe-inline';font-src 'self' data:;media-src 'self' blob: data:;img-src 'self' data: blob: https://cdn.novagates.com;report-uri /csp-report;report-to csp-endpoint" always;# report-to needs this companion header to bind the group name to a URL.add_header Reporting-Endpoints 'csp-endpoint="https://your-site.example/csp-report"' always;
Check connect-src: the values above cover what the SDK fetches from the CDN and from your own origin, but the SDK also opens its session from the browser with POST /api/sdk-session at novagates.com, so allow that origin in connect-src. If reCAPTCHA attestation is on, allow Google reCAPTCHA too (www.google.com/recaptcha/, www.gstatic.com/recaptcha/).
Start Report-Only, then promote
Ship the policy on Content-Security-Policy-Report-Only with a reporting endpoint first, and leave it there for a full traffic cycle before promoting it to enforcing. That is the same ordering we hold ourselves to on this site.
Declare both report-uri and report-to
report-uri is deprecated in the spec but is the only one Firefox and Safari implement, while Chrome and Edge ignore it entirely whenever report-to is present. Declaring only one collects nothing from a whole browser family - which looks identical to having no violations.
frame-src names the SDK origin because the SDK frame is a real cross-origin document served from the CDN, not an about:srcdoc frame that would inherit your policy.
For WordPress / WooCommerce, Magento, Shopify, and OpenCart we ship the full plugin. It needs only your publishable key and handles the rest, including catalog sync. Download links and installation instructions live inside your dashboard.
Novagates keeps your products for you and shows only as many as your subscription allows. When managed products is on for your brand, the SDK loads them from GET /api/sdk/products with the same session token it uses for everything else, and ignores productsSource. The snippet under Integrations in your dashboard shows which one applies to your brand. Add your products in the dashboard under Products: from a feed link, from a spreadsheet, or by hand.
The number of products shown follows the product limit of your plan for the module. The limit itself is never in the answer.
A feed is a JSON array of products like this one, or an object with an items array. Every image and link must be an absolute https address.
{"sku": "LIP-001","name": "Velvet Matte Lipstick","price": 18.5,"currency": "AED","productTypes": "lip_shade","hexacode": "#B3263E","image": "https://shop.example.com/images/lip-001.jpg","url": "https://shop.example.com/products/lip-001"}
A field this table does not list is ignored. A product also needs an image (or a snapshot) of its own. Limits are counted in characters for text and in items for lists.
| Field | Required | Type | Limit |
|---|---|---|---|
sku | yes | text | 120 characters |
name | yes | text | 200 characters |
price | yes | number | no limit |
currency | yes | text | 500 characters |
productTypes | yes | text | 200 characters |
isSkincare | no | true or false | no limit |
image | no | text | 500 characters |
glb | no | text | 500 characters |
snapshot | no | list | 12 items |
pattern | no | text | 500 characters |
shape_image | no | text | 500 characters |
usdz | no | text | 500 characters |
url | no | text | 500 characters |
brand | no | text | 500 characters |
desc | no | text | 500 characters |
longDesc | no | text | 5000 characters |
color | no | one of: white, black, red, blue, green, beige, brass, brown, gold, grey, multicolor, orange, pink, purple, silver, transparent, yellow, bronze, nude | no limit |
sub_color | no | text | 500 characters |
hexacode | no | text | 200 characters |
texture | no | text | 500 characters |
material | no | text | 500 characters |
materials | no | text | 500 characters |
shape | no | text | 500 characters |
size | no | text | 500 characters |
fabric | no | text | 500 characters |
formation | no | text | 500 characters |
intensity | no | number | no limit |
wetness | no | number | no limit |
rating_summary | no | number | no limit |
review_count | no | number | no limit |
coverage | no | text | 500 characters |
lip_shape | no | text | 500 characters |
lip_art | no | text | 500 characters |
plump_level | no | text | 500 characters |
finish | no | text | 500 characters |
brush | no | text | 500 characters |
coating | no | text | 500 characters |
lash_region | no | text | 500 characters |
hair_effect | no | text | 500 characters |
french_tip | no | text | 500 characters |
pupil_size | no | text | 500 characters |
ring_size | no | number | no limit |
ring_sizes | no | list | 30 items |
skin_tone | no | text | 500 characters |
tone_type | no | text | 500 characters |
skin_type | no | text | 500 characters |
skin_concern | no | text | 500 characters |
hair_type | no | text | 500 characters |
hair_concern | no | text | 500 characters |
personality | no | text | 500 characters |
occasion | no | text | 500 characters |
face_shape | no | text | 500 characters |
fragrance_note | no | text | 500 characters |
shades | no | list | 64 items |
fit | no | object | no limit |
features | no | list | 24 items |
rating | no | number | no limit |
reviewsCount | no | number | no limit |
stock | no | number | no limit |
shipping | no | text | 500 characters |
warranty | no | text | 500 characters |
care | no | text | 500 characters |
weightKg | no | number | no limit |
widthCm | no | number | no limit |
depthCm | no | number | no limit |
heightCm | no | number | no limit |
scale | no | number | no limit |
rotation | no | list | 3 items |
position | no | list | 3 items |
arScale | no | number | no limit |
hasAnimation | no | true or false | no limit |
tintableMaterials | no | list | 64 items |
colorOptions | no | list | 32 items |
hotspots | no | list | 32 items |
viewer3d | no | true or false | no limit |
category | no | text | 500 characters |
Send the session token as Authorization: DPoP, with a proof for each request in the DPoP header. The query takes module (for example virtual-try-on-makeups) and lang (en or ar). The answer is never cached. Per key, at most the number of requests a minute shown below is allowed.
Requests a minute per key: 600
GET /api/sdk/products?module=virtual-try-on-makeups&lang=en HTTP/1.1Host: novagates.comAuthorization: DPoP <session-token>DPoP: <proof-for-this-request>
The products in the 200 example are shortened to two fields. A refusal carries an error code and an empty products list.
| status | Meaning |
|---|---|
ready | The list is current. Products are in the answer. |
stale | Products are in the answer, but the copy is more than an hour old and a refresh has been queued. |
pending | No copy exists yet (never fetched, a refresh is on its way, or the copy is gone). The list is empty. |
unavailable | No copy exists and the last refresh failed. The list is empty; the SDK treats it like pending. |
limit_not_set | The plan sets no product limit for the module, so nothing is shown. The list is empty. |
| HTTP | error | Meaning |
|---|---|---|
400 | unknown_module | The module parameter is missing or names no module. |
400 | module_not_supported | The module exists but shows no managed products. |
400 | bad_language | The lang parameter is missing or is not a language the SDK serves. |
401 | shared error body | The token is missing, expired or invalid, or is not a merchant token. |
403 | brand_inactive | The brand profile is deleted or deactivated. |
403 | not_usable | The organization may not use the application right now. |
403 | module_not_subscribed | The subscription does not include the module. |
403 | language_not_purchased | The subscription does not include the requested language. |
404 | shared error body | Not available yet for this brand. |
429 | shared error body | Too many requests for this key. Wait for the number of seconds in the Retry-After header. |
503 | shared error body | The central status is unavailable, or the request limiter cannot count. Retry later. |
A spreadsheet (CSV or Excel) names its columns after the fields above. Column names are not case sensitive; a column that is not listed is ignored and reported. Every cell is read as text, so a cell that starts with = or + stays text and is never evaluated. A file may be up to the size below. In a workbook the sheet name is the product type; in a CSV the productTypes column is.
Largest file (MiB): 10
One value per product
skupricecurrencyimageglbsnapshothexacodetexturecolorproductTypesisSkincareText per language: add _en or _ar (for example name_ar). The name without a suffix is the primary language.
name_enname_ardesc_endesc_arlongDesc_enlongDesc_arurl_enurl_arAttributes some product types use
intensitywetnessfinishcoveragelip_shapelip_artplump_levelbrushcoatinglash_regionskin_tonetone_typepatternsub_colorhair_effecthair_typehair_concernfrench_tippupil_sizeshapematerialfabricsizeface_shapering_sizeskin_typeskin_concernformationpersonalityoccasionfragrance_noteusdzshape_imagematerialscategorystockshippingwarrantycareweightKgwidthCmdepthCmheightCmscalearScalehasAnimationRepeating groups: group.N.part, with N counted from 0 and below the slot count shown. A cell never holds JSON.
shades.N.name, shades.N.hexacode, shades.N.texture (64 slots)features.N (24 slots)colorOptions.N.name, colorOptions.N.value (32 slots)hotspots.N.title, hotspots.N.body, hotspots.N.x, hotspots.N.y, hotspots.N.z (32 slots)rotation.N (3 slots)Novagates isn’t just a platform, it’s a partner.
We support developers every step of the way, with expert onboarding, shared codebases, and a growing developer community.