Skip to main content
GET
/
workspaceManagement
/
roles
/
list
List roles
curl --request GET \
  --url https://api.getcargo.io/v1/workspaceManagement/roles/list \
  --header 'Authorization: Bearer <token>'
{
  "roles": [
    {
      "uuid": "<string>",
      "slug": "<string>",
      "permissions": [
        {
          "effect": "allow",
          "resources": [
            "<string>"
          ],
          "actions": [
            "ai:agent:*"
          ]
        }
      ],
      "workspaceUuid": "<string>",
      "createdAt": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Response

Successful response

Response body schema.

roles
object[]
required