context

Asynchronously queue context data to add to the context processor

Changed on

This endpoint accepts context data and queues it for asynchronous processing by the context processor. It returns a success or error response depending on the queuing result.

post/api/v1/context/async/add

Request

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

webhook_idsstring[]

Optional IDs of webhooks to trigger after the context is processed

Response

Context queued successfully

queuedboolean required
jobIdstring required

Example response

{
  "queued": true,
  "jobId": "context-add-123456"
}

Changes