Authorization
string
required

Bearer authentication header of the form Bearer <API_KEY>, where <API_KEY> is your organization’s API key.

Body

projectId
string
required

The project ID to perform the search on. This is displayed in the “Project Details” card on the project page.

searchQuery
string
required

The search query string. For example, “companies that require HIPAA compliance”

numberOfBatches
integer
required

The number of batches of synthetic data to generate for the search. This parameter may range from 10 to 70. Increasing this may improve search quality but will increase response time.

topK
integer
required

The maximum number of results to return. This parameter may range from 1 to Infinity. Changing this parameter will not affect search time.

filterQuery
string

The filter query string which enables you to filter the search results using the filter columns in the dataset. Learn more about filter queries here.

Success Response

data
object
success
true

This field is always true if the search was successful.

error
null

This field is always null if the search was successful.

Error Response

data
null

This field is always null if the search was not successful.

success
false

Indicates the search was not successful.

error
object

An error object containing the error message and code.