Use API with Data Security
plan support
Data Security is only available in Enterprise Plan and above
You can provide session properties directly when calling the WrenAI API. These properties will be evaluated by Row-Level Security (RLS) and Column-Level Security (CLS) policies during query execution.
How to send session properties
Include the header X-Wren-Session-Properties
in your API request. Properties are passed as comma‑separated key=value
pairs.
Example header:
X-Wren-Session-Properties: user_org_id=123