---
title: "List consumer roles"
method: GET
path: "/apiops/projects/{projectName}/consumer-roles"
tags: ["Consumer Role"]
---

# List consumer roles

`GET /apiops/projects/{projectName}/consumer-roles`

## Request

- Base URL: `http://167.86.118.166:32080`
- URL: `http://167.86.118.166:32080/apiops/projects/{projectName}/consumer-roles`
- Auth: none declared
- TypeScript: <https://skmtc.dev/apinizer/apis/apinizer-management-apis/docs/apiops/projects/:projectName/consumer-roles/get.ts> (a function with typed inputs; its response is checked against the schema)

The project's consumer roles, by name; searchable by name.

## Path parameters

- `projectName` string, required

## Query parameters

- `search` string
- `page` integer
- `size` integer
- `sort` string

## Response `200`

OK

- ApiOpsPagedResponseApiOpsResponseConsumerRole
  - `status` 'SUCCESS' | 'FAILURE'
  - `items` ApiOpsResponseConsumerRole[]
    - `name` string
    - `oauthScope` string
  - `page` integer
  - `size` integer
  - `totalElements` integer
  - `totalPages` integer
  - `sort` string[]

---

[API](https://skmtc.dev/apinizer/apis/apinizer-management-apis.md) - [All operations](https://skmtc.dev/apinizer/apis/apinizer-management-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/apinizer/apis/apinizer-management-apis/revisions/e083046b24cd?raw)
