---
title: "Get Role Details"
url: "https://public-api-docs.cipherscale.com/apis/cipherscale-api-1/versions/fef69080-6094-4620-8bf0-16fd2de7b598/operations/RolesController_find"
---

> Full API specification: https://public-api-docs.cipherscale.com/apis/cipherscale-api-1/versions/fef69080-6094-4620-8bf0-16fd2de7b598.md

# Get Role Details

`GET` `/tenants/roles/{id}`

Operation ID: `RolesController_find`

Retrieves detailed information about a specific role including its permissions, type, and whether it can be deleted or modified.

## Path parameters

- `id` (string, uuid, required) - The unique identifier (UUID) of the role

## Responses

- `200` - Successfully retrieved the role
- `401` - Unauthorized - Invalid or missing authentication token
- `403` - Forbidden - Insufficient permissions. Requires OWNER, ADMIN, AUDITOR, or SUPPORT role.
- `404` - Role not found with the provided ID

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Cipherscale API
  version: "1.0"
servers:
  - url: https://public-api.cipherscale.com/qa
    description: Cipherscale Public API Server
paths:
  /tenants/roles/{id}:
    get:
      operationId: RolesController_find
      summary: Get Role Details
      description: Retrieves detailed information about a specific role including its
        permissions, type, and whether it can be deleted or modified.
      parameters:
        - name: id
          required: true
          in: path
          description: The unique identifier (UUID) of the role
          schema:
            format: uuid
            type: string
      responses:
        "200":
          description: Successfully retrieved the role
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/RoleDto"
        "401":
          description: Unauthorized - Invalid or missing authentication token
        "403":
          description: Forbidden - Insufficient permissions. Requires OWNER, ADMIN,
            AUDITOR, or SUPPORT role.
        "404":
          description: Role not found with the provided ID
      tags:
        - Roles
      security:
        - ApiKeyAuth: []
security:
  - ApiKeyAuth: []
components:
  schemas:
    RoleDto:
      type: object
      description: User role definition with specific permissions and capabilities
      properties:
        id:
          type: string
          format: uuid
          description: Unique identifier for the role
        createdAt:
          format: date-time
          type: string
          description: Timestamp when the role was created
        updatedAt:
          format: date-time
          type: string
          description: Timestamp when the role was last modified
        name:
          type: string
          description: Human-readable name of the role
        description:
          type: string
          description: Detailed description of the role's purpose and permissions
        deleteable:
          type: boolean
          description: Whether this role can be deleted (system roles are typically not
            deletable)
        type:
          enum:
            - OWNER
            - ADMIN
            - DEFAULT
            - BASIC
            - BILLING
            - AUDITOR
          type: string
          description: Predefined role type that determines the base permissions
      required:
        - id
        - createdAt
        - updatedAt
        - name
        - deleteable
        - type
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: apikey
```
