Emit Runtime Event
Raise an event from the runtime's machine. Sent by levain-runtime emit.
Raise an event from the runtime's machine. Sent by levain-runtime emit.
Authenticates with the runtime's own secret as a bearer token, not with a
workspace credential. Dispatches a run of every agent subscribed to the event
through a trigger on this runtime (create one via
POST /api/v1/agents/{agent_id}/triggers with runtime_id); the payload
reaches each run as the payload state field. Events are rate-limited per
runtime.
Path Parameters
Header Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://api.levainlabs.com/api/v1/runtimes/string/events" \ -H "Content-Type: application/json" \ -d '{ "event_type": "string" }'{
"status": "ok",
"dispatched": 0,
"skipped": 0,
"filtered": 0,
"run_ids": [
"string"
],
"reason": "string"
}