Skip to main content
POST
Build magical context for an agent turn (optionally extract & ingest).

Authorizations

Authorization
string
header
required

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

Headers

X-Flumes-Agent
string

Agent id within the org.

Maximum string length: 128
Idempotency-Key
string

Idempotency key for safe retries (unique per org).

Maximum string length: 128

Query Parameters

trace
boolean
default:false

Include verbose trace/debug fields.

Body

application/json
entity_id
string
required
turn
string
required
Maximum string length: 20000
namespace
string
default:default
goal
string | null
Maximum string length: 2000
budget
object
policy
object
retrieval
object
return
object
seed_context
object
must_include
string[]

memory_ids to pin if present

ingest
object

Response

Context + optional extraction/ingestion report

context
object
trace
object
extracted
object