POST
/
api
/
ai
/
search
/
v2
curl --request POST \
  --url https://api.worqhat.com/api/ai/search/v2 \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "question": "What is the capital of India?",
  "training_data": "1234567890"
}'
{
  "status": "success",
  "result": [
    {
      "sId": "07743dc2-2c1f-4b15-919e-7f7aae66586c",
      "type": "donut",
      "name": "Old Fashioned",
      "ppu": 0.55
    }
  ],
  "processing_time": 873,
  "processing_id": "9b174f6d-df21-460d-b81a-72ff3d9b9852",
  "processing_count": 2
}

Authorizations

Authorization
string
headerrequired

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

Body

application/json
question
string

The Search Query that you want to search for.

training_data
string

The ID of the Trained Dataset that you want to search in.

Response

200 - application/json
status
string

Status indicating the success of the request.

result
object[]
processing_time
integer

The time taken to process the request, in milliseconds.

processing_id
string

A universally unique identifier for the request. This can be used to track the request in the logs.

processing_count
integer

The number of times the request has been processed. This is what is considered in the Billing Process.