---
updatedAt: 2026-09-28T12:02:33.000Z
agentTools:
  projectIndex: https://docs.umbrellacost.io/llms.txt
---

# Get a role by ID

&#x20;&#x20;

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "user-management/roles API",
    "version": "1.0.0",
    "description": "API documentation for user-management/roles endpoints"
  },
  "servers": [
    {
      "url": "https://api.umbrellacost.io/api/v2/user-management/roles"
    }
  ],
  "paths": {
    "/{roleId}": {
      "get": {
        "operationId": "getroleId",
        "summary": "Get a role by ID",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Bearer token for authentication"
          },
          {
            "name": "apikey",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "API key for authorization"
          },
          {
            "name": "roleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "OK": {
                    "summary": "OK",
                    "value": {
                      "id": "6f2a1c40-1111-2222-333-2f0c5d7e8a90",
                      "displayName": "Finance viewer",
                      "description": "Read-only access to cost data",
                      "subRoles": [
                        {
                          "id": "b31d…",
                          "displayName": "Dashboards reader"
                        }
                      ],
                      "permissions": {
                        "permissions": [
                          {
                            "category": "DASHBOARDS",
                            "actionPermissions": [
                              {
                                "action": "VIEW",
                                "permissions": [
                                  {
                                    "permissionType": "FULL",
                                    "derivedFromRole": {
                                      "id": "6f2a1c40-1f2e-4c1f-9a1b-2f0c5d7e8a90",
                                      "displayName": "Finance viewer"
                                    }
                                  }
                                ]
                              }
                            ]
                          }
                        ],
                        "isPartialData": false
                      },
                      "isPartialData": false
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": false
  }
}
```