---
title: "List role templates"
method: GET
path: "/api/v2/roles/templates"
tags: ["Roles"]
---

# List role templates

`GET /api/v2/roles/templates`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/roles/templates`
- Auth: one of:
  - API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`
  - OAuth 2
    - Authorization code: `/oauth2/v1/authorize`
    - Token URL: `/oauth2/v1/token` scopes: `user_access_read`

List all role templates

## Response `200`

OK

- RoleTemplateArray: The definition of `RoleTemplateArray` object.
  - `data` RoleTemplateData[], required: The `RoleTemplateArray` `data`.
    - `attributes` RoleTemplateDataAttributes: The definition of `RoleTemplateDataAttributes` object.
      - `description` string: The `attributes` `description`.
      - `name` string: The `attributes` `name`.
    - `id` string: The `RoleTemplateData` `id`.
    - `type` 'roles', required: Roles resource type.

## Other responses

- `429`: Too many requests

---

[API](https://skmtc.dev/datadog/apis/datadog-api-v2-collection.md) - [All operations](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/llms.txt) - [OpenAPI document](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/revisions/da68bf029e4c?raw)
