---
title: "Retrieve a role with specific ID"
method: GET
path: "/api/2.0/roles/{objectId}"
tags: ["Role Management API"]
---

# Retrieve a role with specific ID

`GET /api/2.0/roles/{objectId}`

## Request

- Base URL: `https://app.agenticbi.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.agenticbi.com/api/2.0/roles/{objectId}`
- Auth: HTTP bearer

## Path parameters

- `objectId` integer, required

## Response `200`

Success

- Role: User role information
  - `createdDate` integer: Created date in milliseconds
  - `lastModDate` integer: Last modified date
  - `id` integer: Role id
  - `name` string: Role name
  - `jsonConfig` string: Role JSON config (viz settings, etc.)

## Other responses

- `401`: User is not authenticated
- `403`: User is not allowed to access this resource
- `500`: Error during processing

---

[API](https://skmtc.dev/agenticbi/apis/user-management-api.md) · [All operations](https://skmtc.dev/agenticbi/apis/user-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/agenticbi/apis/user-management-api/revisions/62c42a99830e?raw)
