POST
/
v1
/
question
/
{ai_id}
curl --request POST \
  --url https://api.gbase.ai/v1/question/{ai_id} \
  --header 'Content-Type: application/json' \
  --data '{
  "question": "<string>",
  "session_id": "<string>",
  "message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "anonymous_username": "",
  "use_faq": true,
  "max_tokens": 3000,
  "stream": false,
  "stream_obj": false,
  "format": "PLAIN_TEXT",
  "with_source": false,
  "with_images": true,
  "debug_with_messages": false,
  "recommend_faq_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "created_by": "",
  "page_info": {},
  "is_test": false,
  "metadata": [],
  "prompt_custom_goal": "",
  "dynamic_background": "<string>",
  "language": "<string>",
  "agent_mode": "<string>",
  "model": "<string>"
}'
{
  "answer": "<string>",
  "messages": [
    "<any>"
  ],
  "tool_calls": [
    "<any>"
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

ai_id
string
required

Body

application/json

Response

200
application/json

Successful Response

The response is of type object.