1. Docs
  2. API Reference
  3. Get permissions for a role

Get permissions for a role

GET/portal/v1/accounts/{accountSlug}/applications/{appSlug}/environments/{envSlug}/roles/{id}/permissions

Authentication

  • Bearer Token Authorization

    JWT access token

Path Parameters

Name Required Type Description
idRequiredstring

Code samples

cURLJavaScriptPythonGo
curl -X GET "https://api.canopy.dev/portal/v1/accounts/{accountSlug}/applications/{appSlug}/environments/{envSlug}/roles/value/permissions" \
  -H "Authorization: Bearer $CANOPY_TOKEN"

Responses

200 Permission keys returned
{
  "items": [
    "string"
  ]
}

application/json

  • itemsstring[]*
401 Invalid or expired token
403 This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa)
404 Role not found
On this page

Related endpoints

GETList roles
POSTCreate a custom role
GETGet a role
PATCHUpdate a role
DELETEDelete a role
PUTReplace permissions on a role