Skip to main content
GET
/
api
/
realtime
/
permissions
Get Realtime Permissions
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"
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

200 - application/json

Realtime RLS permissions

subscribe
object
required
publish
object
required