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
}Get retrieves the RBAC policy for an environment.
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
}Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.