Support
Ask the support assistant
Asks the Nopasoft support assistant (Cloudflare AI Search). Accepts a question plus optional chat history (complete user/assistant pairs, oldest first) and optional attached settings (context). The customer identity comes from the API key; nopCommerce and plugin versions come from headers. Unknown top-level body fields are ignored.
Context: when context is sent and valid, it is passed to AI Search as reference data for the current question only, and the 200 response (JSON or stream) carries X-Nopasoft-Context-Accepted: 1. Requests without context are unchanged and do not get the header.
Modes: send Accept: text/event-stream to receive a Server-Sent Events stream (protocol 1: meta, status, delta, sources, then exactly one done or error). Any other Accept returns the JSON answer.
Limits: Content-Length is required and the body must be at most 65,536 bytes (411 / 413 otherwise); question 1-2,000 characters; history at most 10 messages in user/assistant pairs, user messages 1-2,000 characters, assistant messages 1-16,000 characters; context at most 12,000 bytes measured as UTF-8 compact JSON (413 otherwise). Malformed context returns 400.
Errors before streaming are problem responses with code, requestId and retryable. Sent with Cache-Control: private, no-store.
Headers
AuthorizationThe Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.
x-nopcommerce-versionnopCommerce version of the store, e.g. 4.70.
x-plugin-versionPlugin version, e.g. 1.2.0.
x-nopasoft-stream-protocolOptional. Stream protocol version; only 1 is supported. Any other value returns 400.
Ask the support assistant › Request Body
questionThe new question.
Previous completed turns, oldest first, alternating user/assistant and starting with user. At most 10 messages.
contextOptional settings the user attached. One or more groups; each group is a non-empty object whose values may include lists (e.g. several stores). At most 12,000 bytes as UTF-8 compact JSON. Omit when nothing is attached.
Ask the support assistant › Responses
Answer produced (JSON), or the answer stream (SSE).
answerMarkdown answer.
request_idSame value as the zp-rid header.

