AI Assistant
Authorizations
Query parameters
wkspIdstringRequired
Workspace ID the user belongs to.
Body
jsmonIdstringRequired
JSMon ID corresponding to the JS file stored in S3.
questionstringRequired
The question to ask about the JavaScript file.
typestring · enumRequiredPossible values:
Type of input. Only 'file' is currently supported.
conversationNamestringOptional
Optional name of the conversation.
startNewConversationbooleanOptionalDefault:
Whether to start a new conversation thread.
falseResponses
200
AI-generated response from Gemini
application/json
400
Bad Request (invalid input or API usage exceeded)
403
Forbidden (unauthorized access to workspace)
404
Not Found (JSMon result not found)
500
Internal Server Error
post
/api/ask-jsmonAuthorizations
Body
questionstringRequired
The original question asked
geminiResponsestringRequired
The response from Gemini
Responses
200
Successfully generated prompt suggestions
application/json
400
Missing required fields
500
Internal server error
post
/api/v2/generatePromptSuggestionsLast updated