Retrieves answers

Retrieves AI powered answers to questions for a given item. If the client accepts server-sent events (text/event-stream content) response will be streamed back, otherwise complete response JSON is returned.

Path Params
string
required

The question provided by the user as free-form text.

Query Params
string
required

The key of the index to use.

string
required

The id of the item to return answer(s) for.

uuid

A unique identifier for the conversation thread. This ID links multiple requests to the same conversation.

string

The id of the variation of the item to return answer(s) for.

boolean
Defaults to false

Enable or disable the moderation check.

integer

The number of answers to return.

string

The id of the client and version that the request is coming from, such as cio-js-2.90.

us
array of strings

A customer defined context (such as vip-club-member) used to evaluate redirect or refined tag rules. Pass multiple segments by passing multiple us arguments.

us
string

A customer generated anonymized identifier for a user on a customer website. It should only be sent for logged in customers and helps constructor to tie multiple client and session ID's together to form a behavioral data profile across devices.

integer

An integer representing the users session number (starting with 1), incremented after a 30 minute period of inactivity.

string

A globally unique identifier for the user browser (or mobile application instance) making the request.

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

400

Invalid request parameters.

500

Internal server error.

Language
LoadingLoading…
Response
Choose an example:
application/json
text/event-stream