Skip to main content
POST
/
api
/
v1
/
context
/
add
{}

Authorizations

Authorization
string
header
required

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

Body

application/json
documents
object[]

Array of documents with content and additional metadata

source
string

The source of the context data

context_type
enum<string>

Type of context being added

Available options:
resource,
conversation,
instruction
scope
enum<string>
default:internal

Scope of the context

Available options:
internal,
external
metadata
object

Additional metadata for the context

Response

Context added successfully

The response is of type object.