Skip to main content
POST
Asynchronously queue context data to add to the context processor

Authorizations

Authorization
string
header
required

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

Body

application/json
documents
object[]
required

Array of documents with content and additional metadata

source
string
required

The source of the context data

context_type
enum<string>
required

Type of context being added

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

Scope of the context

Available options:
internal,
external
metadata
object

Additional metadata for the context

Response

Context queued successfully

queued
boolean
required
Example:

true

jobId
string
required
Example:

"context-add-123456"