# `Chatto.Api.V1.RoleService`
[🔗](https://github.com/xtian/elixir-chatto/blob/v0.1.0/lib/chatto/generated/chatto_api_v1_role_service.ex#L3)

Provides authenticated reads for public role metadata.

# `batch_get_roles`

```elixir
@spec batch_get_roles(Req.Request.t(), Chatto.Api.V1.BatchGetRolesRequest.t()) ::
  {:ok, Chatto.Api.V1.BatchGetRolesResponse.t()}
  | {:error, Chatto.Connect.Error.t()}
```

Gets public role records for multiple role names referenced by member rows,
mentions, or integration clients.

# `get_role`

```elixir
@spec get_role(Req.Request.t(), Chatto.Api.V1.GetRoleRequest.t()) ::
  {:ok, Chatto.Api.V1.GetRoleResponse.t()} | {:error, Chatto.Connect.Error.t()}
```

Gets one public role by stable name. Returns NOT_FOUND when the role is
unknown.

# `list_roles`

```elixir
@spec list_roles(Req.Request.t(), Chatto.Api.V1.ListRolesRequest.t()) ::
  {:ok, Chatto.Api.V1.ListRolesResponse.t()}
  | {:error, Chatto.Connect.Error.t()}
```

Lists the current role catalog as a finite snapshot. Requires an
authenticated user.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
