Send a query to AnswerGenius.
POST answergenius/ask
Authentication
This request requires basic authentication.
Request Parameters
Body params
| query |
string
|
The query to send to AnswerGenius
|
|---|---|---|
|
chatId
|
string
|
[optional] The ID of a specific chat conversation with AnswerGenius. Specifying the chatId adds more context to a conversation.
|
|
projectId
|
string
|
[optional] The ID of a publication for prioritized search. |
Samples
Request sample
Bash (Unix Shell) |
curl --location -g --request POST 'https://{portal-url}/api/v1/answergenius/ask' \ |
Response sample
JSON |
{ |
Response fields
| id |
The ID of the chat conversation with AnswerGenius. |
|---|---|
| messages |
The answer to the query. |
| messages[].html | The HTML content of the answer. |
| messages[].type | The type of the answer, for example: Assistant. |