---
title: "Get a prebuilt entity's roles in a version of the application."
method: GET
path: "/apps/{appId}/versions/{versionId}/prebuilts/{entityId}/roles"
---

# Get a prebuilt entity's roles in a version of the application.

`GET /apps/{appId}/versions/{versionId}/prebuilts/{entityId}/roles`

## Request

- Base URL: `{Endpoint}/luis/authoring/v3.0-preview`
- URL: `{Endpoint}/luis/authoring/v3.0-preview/apps/{appId}/versions/{versionId}/prebuilts/{entityId}/roles`
- Auth: API key in header `Ocp-Apim-Subscription-Key`

## Path parameters

- `appId` string, uuid, required
- `versionId` string, required
- `entityId` string, uuid, required

## Response `200`

A list of the entity roles

- EntityRole[]: List of Pattern.Any Entity Extractors.
  - `id` string, uuid: The entity role ID.
  - `name` string: The entity role name.

## Other responses

- `default`: Error Response.

---

[API](https://skmtc.dev/azure/apis/luis-authoring-client.md) - [All operations](https://skmtc.dev/azure/apis/luis-authoring-client/llms.txt) - [OpenAPI document](https://skmtc.dev/azure/apis/luis-authoring-client/revisions/a26a0f7e5a37?raw)
