Report execution events
POST/gw/:token/events
Tell Bairav what your agent did, for applications whose steps do not all go through the chat endpoint: tool calls, database actions, policy checks and so on. Events with the same trace_id form one trace you can read back.
At most 200 events and 256 KB per request. Invalid events are counted in rejected; the rest are stored.
Request
Responses
- 200
- 400
- 401
- 413
The events were processed.
The body is not valid JSON, or trace_id and a non-empty events list are missing.
The gateway key is invalid or revoked.
The payload is larger than 256 KB.