---
title: "Returns the role associated with the role ID in the document."
method: GET
path: "/v2/documents/{document_id}/roles/{role_id}"
tags: ["Documents"]
---

# Returns the role associated with the role ID in the document.

`GET /v2/documents/{document_id}/roles/{role_id}`

## Request

- Base URL: `http://localhost:8082`
- URL: `http://localhost:8082/v2/documents/{document_id}/roles/{role_id}`
- Auth: none declared. Required headers: `authorization`
- TypeScript: <https://skmtc.dev/centrifuge/apis/centrifuge-os-node-api/docs/v2/documents/:document_id/roles/:role_id/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns the role associated with the role ID in the document.

## Path parameters

- `document_id` string, required
- `role_id` string, required

## Headers

- `authorization` string, required

## Response `200`

OK

- V2Role
  - `collaborators` string[]
  - `id` string

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `404`: Not Found

---

[API](https://skmtc.dev/centrifuge/apis/centrifuge-os-node-api.md) - [All operations](https://skmtc.dev/centrifuge/apis/centrifuge-os-node-api/llms.txt) - [OpenAPI document](https://skmtc.dev/centrifuge/apis/centrifuge-os-node-api/revisions/36808f8744e0?raw)
