v29

latestOpenAPI 3.1.0raw.githubusercontent.com2026-01-1415662.1 KB
context

Add context data to the context processor

This endpoint accepts context data and sends it to a context processor for further handling. It returns a success or error response depending on the result from the context processor.

post/api/v1/context/add

Request body

sourcestring required

The source of the context data

context_type'resource' | 'conversation' | 'instruction' required

Type of context being added

scope'internal' | 'external' required

Scope of the context

Response

Context added successfully

successboolean required
context_idstring required
processed_documentsnumber

Example response

{
  "success": true,
  "context_id": "ctx_01HXYZABC",
  "processed_documents": 2
}