DataAccess
Emit a data_event to the Rules Engine
Fire a data_event trigger in the Rules Engine for the given resource + action.
Philosophy: Creation over Conflict — instead of hardcoding side-effects in endpoint handlers, endpoints call this to let the Rules Engine react declaratively (webhook, notify, masking, etc.).
Valid actions: created, updated, deleted, read.
Example use in an order-creation handler::
await emit_data_event_internal(
resource="orders",
action="created",
event_data=new_order,
project_id=project_id,
user_id=user_id,
)
post/api/data-access/emit
Request
- Base URL: https://api.agentstack.tech (the document declares no server; this is the origin it was published from)
- URL: https://api.agentstack.tech/api/data-access/emit
- Auth: one of:
- API key in header X-API-Key
- HTTP bearer
Query parameters
project_idinteger required
Project ID
Headers
Idempotency-Keystring
Client-generated key to make mutating requests idempotent.
Request body
Response
Rules Engine execution result
unknown required
Changes
No recorded changes to this operation across all 1 revision of this API.