Open a signed single-prompt chat
const url = 'https://ai.work.optidata.cloud/api/ai/text/chat?request_guid=a305082f-f339-4825-9a40-144077d1f9fa&signature=example';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://ai.work.optidata.cloud/api/ai/text/chat?request_guid=a305082f-f339-4825-9a40-144077d1f9fa&signature=example'The target of the URL returned by POST /ai/text/chat/signed. Open the
URL exactly as returned — every query parameter is covered by the
signature — and the answer streams back as server-sent events. No
authentication key is needed.
A URL that was altered answers 403. Once the stored prompt has expired
(one hour), the URL answers 401.
Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters”Identifies the stored prompt. Part of the signed URL — do not change it.
Signature over the path and query. Part of the signed URL — do not
change it. The signed URL also carries a company identifier parameter
(for example owt1=1); keep it as returned.
Responses
Section titled “ Responses ”The answer, streamed as server-sent events. Each message event’s
data is a JSON-encoded piece of text; a final content-end event
closes the stream.
Examples
id: 0event: messagedata: ""
id: 1event: messagedata: "OK"
id: -1event: content-enddata: {"time": "2026-10-19 11:27:46"}The stored prompt is gone — the signed URL is older than one hour. Request a new one.
Error raised by the application itself.
object
What went wrong, in the caller’s language.
The HTTP status, repeated.
A hint on how to fix the request; may be empty.
Examples
{ "error": "The request parameters could not be found.", "status": 401, "help": "Check if the request GUID is correct and has not expired."}The URL was altered or is not a signed URL.
object
Examples
{ "message": "Invalid signature."}