Skip to main content
GET
/
pwa
/
v3
/
projects
/
:project_slug
/
environments
/
:environment_slug
/
rbac_policy
Get
curl --request GET \
  --url https://management.stytch.com/pwa/v3/projects/:project_slug/environments/:environment_slug/rbac_policy \
  --header 'Authorization: Basic <encoded-value>'
{
  "request_id": "<string>",
  "policy": {
    "stytch_resources": [
      {
        "resource_id": "<string>",
        "description": "<string>",
        "available_actions": [
          "<string>"
        ]
      }
    ],
    "custom_roles": [
      {
        "role_id": "<string>",
        "description": "<string>",
        "permissions": [
          {
            "resource_id": "<string>",
            "actions": [
              "<string>"
            ]
          }
        ]
      }
    ],
    "custom_resources": [
      {
        "resource_id": "<string>",
        "description": "<string>",
        "available_actions": [
          "<string>"
        ]
      }
    ],
    "custom_scopes": [
      {
        "scope": "<string>",
        "description": "<string>",
        "permissions": [
          {
            "resource_id": "<string>",
            "actions": [
              "<string>"
            ]
          }
        ]
      }
    ],
    "stytch_member": {
      "permissions": [
        {
          "resource_id": "<string>",
          "actions": [
            "<string>"
          ]
        }
      ]
    },
    "stytch_admin": {
      "permissions": [
        {
          "resource_id": "<string>",
          "actions": [
            "<string>"
          ]
        }
      ]
    },
    "stytch_user": {
      "permissions": [
        {
          "resource_id": "<string>",
          "actions": [
            "<string>"
          ]
        }
      ]
    }
  },
  "status_code": 123
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

project_slug
string
required
environment_slug
string
required

Response

Successful response

Response type

request_id
string
required
policy
object
required
status_code
integer<int32>
required