Skip to main content
If the embed script and dashboard are enough, start at AI chat on your site. This page summarizes the public API for custom integrations.

In short

  • Base: https://api.notifique.me/public/ai-widget
  • No workspace API Key. Security via widget public key, allowed domains, and session token.
  • Full routes, headers, and responses: API reference on the Web chat tab.

Typical flow

  1. Get widget configuration (theme, copy, identification rules). The embed script does this on load.
  2. Create or resume session with visitorClientId and visitor data (if the mode requires it).
  3. Send message with sessionToken and text in the body (see examples below).
  4. If the response status is handoff or automation, use polling for new messages.
  5. With OTP enabled: request code and verify code before unlocking chat.

Get configuration

Use the Get widget configuration operation in the API reference. Typical response:

Create or resume session

Use the Create session operation in the API reference.
Site with login (automatic verification):
Save the sessionToken from the response and send it in the body of following calls (sessionToken). Typical response:

Send message

Use the Send message operation in the API reference.
AI response:
Handoff (human transfer):

Fetch new messages (polling)

Use the List messages operation in the API reference, with after (timestamp). Recommended: poll every 2 s, for up to 3 minutes, when status is handoff or automation.

OTP

  • Request code: Request OTP operation with { "sessionToken": "..." }
  • Confirm code: Verify OTP operation with { "sessionToken": "...", "code": "482913" }

Common errors

Dashboard (internal use)

Widget management endpoints (list, create, update, rotate keys) require dashboard login. Details in the API reference on the Web chat tab.

All send types

In the API reference (Web chat tab), open Send widget message and pick an example in the playground: Session, Message, OTP.

Next steps