# Get a custom role

```http
GET https://trydimmi.com/api/v1/roles/{role}
```

## Authorization

Send an API token as `Authorization: Bearer <token>`.
The token needs: `members:read`.

## Path parameters

- `role` (string, required): Id of the role, starting with rol_, such as rol_01jx2m8k4t. Find it with GET /roles.

## Response 200 (OK)

- `data` (object, required)
  - `base_role` (string, required): Built-in role this one is or narrows: owner, admin or member.
  - `created_at` (string | null, required): When it was created, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.
  - `description` (string | null, required): What the custom role is for; null for a built-in role or when none was written.
  - `id` (string | null, required): The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.
  - `kind` (string, required): built_in for a role dimmi ships, custom for one the workspace made. A built-in role has no id; its name identifies it.
  - `member_count` (integer | null, required): How many members hold the custom role; null for a built-in role and for callers who do not manage roles.
  - `name` (string, required): The role's name.
  - `object` (string, required): The kind of record this is, the same for every record of its kind, such as article.
  - `permissions` (string[] | null, required): Keys of the permissions the role holds, such as conversations:read.
  - `updated_at` (string | null, required): When it last changed, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.

## Response default (Error)

- `code` (string, required): Stable code for programs to tell errors apart, such as validation_failed or internal_error.
- `errors` (object): Each rejected field mapped to its messages. Only present when the input was invalid.
- `message` (string, required): What went wrong, in words safe to show a person.

## Example request

```bash
curl --request GET \
  --url 'https://trydimmi.com/api/v1/roles/{role}' \
  --header 'Authorization: Bearer <token>'
```

## Example response

```json
{
  "data": {
    "base_role": "<string>",
    "created_at": "2026-11-01T09:30:00Z",
    "description": "<string>",
    "id": "<string>",
    "kind": "<string>",
    "member_count": 123,
    "name": "<string>",
    "object": "<string>",
    "permissions": [
      "<string>"
    ],
    "updated_at": "2026-11-01T09:30:00Z"
  }
}
```

---

Index of all dimmi docs: https://trydimmi.com/llms.txt (full text: https://trydimmi.com/llms-full.txt)
