Skip to main content
POST
Node.js SDK

Authorizations

Authorization
string
header
required

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

Body

application/json

Search request

prompt
string
required

The search query.

context
object[]

An ordered list of message objects that define the conversation context for the LLM. Each message contains a role and content. Currently, only the "user" role is supported.

response_type
enum<string>
default:markdown

The optional format parameter can be "text" or "markdown" (default). "text" returns plain text without formatting, useful for logs or custom-styled outputs. "markdown" includes rich formatting (bold, italics, lists, code, links) for apps that can render Markdown. If omitted, the API defaults to "markdown".

Available options:
text,
markdown

Response

Search response

answer
string
required

The main response generated by the API based on the provided prompt and context.

response_type
string
required

The format of the response, as specified by the user.

sources
string[]
required

The list of sources used to generate the response.

response_time
number
required

The total time taken to generate the response, in milliseconds.