Mr. AIMr. AI Help Center

Connect your application with the System API

Create an independent chat key, call the chat endpoint, and revoke the key when needed.

On this pageHow do I use the System API inside my application?How to use itFrequently asked questionsHow can my system send products for AI organization?Can I keep a local product edit when an external system owns it?Check the result

How do I use the System API inside my application?

Create a clearly named key on the System API page, copy it when it is shown once, then POST to /api/v1/chat using a Bearer token plus a stable user_id and message. Each key is limited to chat requests.

  • The plaintext secret is shown only once.
  • Use a stable user_id per customer for correct context.
  • Revoke a key immediately if it may be exposed.

Open this page in Mr. AI ↗

Account API key management with secrets concealed
Account API key management with secrets concealed. Actual interface with synthetic examples; names, counts and prices are illustrative. Availability can vary by account. Select the image to enlarge it.

How to use it

  1. 1

    Open Settings, Connect, then API.

  2. 2

    Name and create the key, then copy its secret immediately.

  3. 3

    Store the key in a server-side secret manager or environment variable.

  4. 4

    POST to /api/v1/chat with Authorization: Bearer and a JSON body.

  5. 5

    Review last-used information and revoke unused keys.

Frequently asked questions

Should I place the key in browser or mobile code?

No. Proxy the request through a backend you control so users cannot extract the secret.

Can I display the same key again?

No. The complete value is shown once; create a new key if it is lost.

How can my system send products for AI organization?

  • In Settings, Integrations, API Keys create a key and tick "Also allow AI product enrichment" (products:enrich).
  • Your developer first saves a field description (profile) for the source, then sends each product. Fields marked private are stored but never sent to the AI.
  • Processing runs automatically in the background. Price-only updates apply directly; other changes are organized by AI before entering the Catalog.
  • Items without a confident category are placed in the Needs Review folder instead of receiving an invented classification.

AI product organization currently defaults to zero points; check the current estimate before starting. Use a different source name from any source already synchronized without AI, and keep the key on your server, never in a browser, app or chat.

This product route works with any store or system that can send stable product IDs: Salla, Shopify, Zid, ExpandCart, ERPs and custom stores, through your developer or an automation service such as Zapier or Make. They do not need WooCommerce credentials. The connector must send later updates and unpublishing too; a saved Connection does not push products.

Product images: send an images field with HTTPS image links (replace sets the full list, append adds to it), or upload image files for a product. Images download in the background into the item gallery; the first image is the main image, and images you added yourself in Mr. AI are never removed. Label each variant image, for example Color: Red, so the AI can send the picture that matches the customer question.

How to add online store products to the Mr. AI Catalog

Can I keep a local product edit when an external system owns it?

Review the item’s source mapping and current ownership before editing. Supported ownership controls let you review detaching an item from source management or returning it to that management. Returning control means a later source update may replace local edits. These controls do not initiate a synchronization.

Create, replace or revoke integration keys from your account’s Integration settings; never paste them into a chat or knowledge document. Ask the assistant to check which products are linked to your external source. After changing who manages an item, check its content and synchronization status before relying on it.

Check the result

Test a request with a stable user identifier, then a follow-up using that identifier. Inspect the response without exposing the key in public browser code.

Was this article helpful?

Your feedback helps us review and improve these guides.