Use API with Data Security
Use this page when your API requests need to include session properties so Row-Level Security and Column-Level Security can be evaluated correctly.
plan support
Data Security is only available in Enterprise Plan and above
You can provide session properties directly when calling the Wren AI API. These properties are 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