Skip to main content
POST

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <api_key>, where <api_key> is your auth API key. Create an api_key

Path Parameters

datafile_id
string
required

Unique identifier for the Playground datafile to query

Body

application/json
userQuery
string
required

Natural language query to execute against the Playground datafile

Example:

"How many superheroes are there?"

knownData
object

Optional key-value pairs to provide additional context for Snow Leopard to use when answering the question.

Example:

Response

Streaming response with newline-delimited JSON objects

Stream of JSON objects, one per line, in order: ResponseStart, ResponseData, ResponseLLMResult (or EarlyTermination)

__type__
enum<string>
required

Type discriminator

Available options:
responseStart
callId
string<uuid>
required

Unique identifier for this API call

userQuery
string
required

The original user query