---
title: "Get one consumer"
method: GET
path: "/apiops/projects/{projectName}/consumers/{consumerKey}"
tags: ["Consumer"]
---

# Get one consumer

`GET /apiops/projects/{projectName}/consumers/{consumerKey}`

## Request

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

The consumer addressed by its consumer key, with its ipList, role names and metadata; no secret material is ever included. A secret metadata entry carries no value: sending the list back on PUT stores that entry empty unless the value is sent again.

## Path parameters

- `projectName` string, required
- `consumerKey` string, required

## Response `200`

OK

- ApiOpsResponseConsumer
  - `consumerKey` string
  - `username` string
  - `fullName` string
  - `email` string
  - `description` string
  - `enabled` boolean
  - `organizationCode` string
  - `expireDate` string, date-time
  - `trafficLogDisabled` boolean
  - `ipList` string[]
  - `roleNames` string[]
  - `metadata` CredentialMetadataDTO[]
    - `key` string
    - `value` string
    - `secret` boolean
    - `includeInJwt` boolean
    - `includeInTokenResponse` boolean
    - `jwtClaimName` 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)
