---
title: "Retrieve a company role"
method: GET
path: "/v1/companies/{company_id}/company_roles/{id}"
tags: ["Company role"]
---

# Retrieve a company role

`GET /v1/companies/{company_id}/company_roles/{id}`

## Request

- Base URL: `https://api.cardda.com`
- URL: `https://api.cardda.com/v1/companies/{company_id}/company_roles/{id}`
- Auth: HTTP bearer

Returns a single company role belonging to the company, including its
permissions (only `id` and `name` per permission).

## Path parameters

- `company_id` string, uuid, required
- `id` string, required

## Parameters

- `#/paths/~1v1~1users/get/parameters/0` (unresolved $ref)

## Response `200`

The requested company role.

- CompanyRole: A custom role scoped to a company, carrying a set of permissions.
  - `id` string, uuid, required
  - `company_id` string, uuid, required
  - `name` string, required
  - `description` string, nullable
  - `permissions` object[]: Permissions granted by this role (only `id` and `name` are returned).
    - `id` string, uuid
    - `name` string
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Other responses

- `401`: Unauthorized
- `404`: Company or company role not found

---

[API](https://skmtc.dev/cardda/apis/banking-api.md) - [All operations](https://skmtc.dev/cardda/apis/banking-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cardda/apis/banking-api/revisions/ff1aeb3fda8b?raw)
