Skip to main content
POST
Create or overwrite an observer rule

Authorizations

Authorization
string
header
required

Runtime context-key (rctx_*) issued by the Ravi gateway. Required for every non-open scope. Bootstrap the first key with ravi daemon init-admin-key; rotate, derive, and revoke via the ravi context family. Specs: runtime/context-keys, sdk/auth.

Body

application/json
id
string
required

Observer rule id

observerAgentId
string
required

Agent id for the observer session

delivery
string

realtime|debounce|end_of_turn|manual

disabled
boolean

Create rule disabled

events
string

Comma-separated observation event types

meta
string

Free JSON metadata for the rule

mode
string

observe|summarize|report

model
string

Runtime model for observer execution; use 'clear' to inherit the observer agent model

permissions
string

Comma-separated permission grants for observer

priority
string

Lower priority wins

profile
string

Observer profile id for Markdown prompt rendering; use 'clear' to use the default profile

provider
string

Runtime provider id for observer execution; use 'clear' to inherit the observer agent provider

role
string

Observer role. Defaults to rule id.

scope
string

global|agent|session|task|profile|project|tag

sourceAgent
string

Match source agent id

sourceProfile
string

Match source task profile id

sourceProject
string

Match source project id

sourceSession
string

Match source session name/key

sourceTask
string

Match source task id

tag
string

Match tag slug for scope=tag

tagInherited
boolean

Allow inherited tag matching

tagTarget
string

agent|session|task|project|contact|profile|any

Response

Success — no @Returns schema declared; payload shape is loose.

The response is of type object.