Send a new message to the agent and get a response
POSThttps://api.spectrallabs.xyz/chat
Authorization
Body
Chat request body
content*string
prompt
Response
Response from agent
Body
contentstring
The agent message
Request
constresponse=awaitfetch('https://api.spectrallabs.xyz/chat', { method:'POST', headers: {"Authorization":"Bearer <token>","Content-Type":"application/json" }, body:JSON.stringify({"message":"Hello, how can I help you?" }),});constdata=awaitresponse.json();