cURL
curl --request GET \ --url https://api.example.com/api/realtime/permissions \ --header 'Authorization: Bearer <token>'
{ "subscribe": { "policies": [ { "policyName": "allow_authenticated_subscribe", "tableName": "realtime_channels", "command": "SELECT", "roles": [ "authenticated" ], "using": "enabled = true", "withCheck": null } ] }, "publish": { "policies": [ { "policyName": "allow_authenticated_publish", "tableName": "realtime_messages", "command": "INSERT", "roles": [ "authenticated" ], "using": null, "withCheck": "true" } ] } }
Retrieve RLS policies for subscribe (channels) and publish (messages) operations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Realtime RLS permissions
Show child attributes