---
title: "Get a consumer's secret-material references"
method: GET
path: "/apiops/projects/{projectName}/consumers/{consumerKey}/secrets"
tags: ["Consumer"]
---

# Get a consumer's secret-material references

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

## Request

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

The name and scope (PROJECT or ADMIN) of each certificate, key, keystore and JWK the consumer references — the names the PUT /<material>/{name} writes take. Never the material itself; an unset reference is absent.

## Path parameters

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

## Response `200`

OK

- ApiOpsResponseConsumerSecrets
  - `secretKey` Reference
    - `name` string
    - `scope` 'PROJECT' | 'ADMIN'
  - `certificate` Reference
    - `name` string
    - `scope` 'PROJECT' | 'ADMIN'
  - `publicKey` Reference
    - `name` string
    - `scope` 'PROJECT' | 'ADMIN'
  - `privateKey` Reference
    - `name` string
    - `scope` 'PROJECT' | 'ADMIN'
  - `keystore` Reference
    - `name` string
    - `scope` 'PROJECT' | 'ADMIN'
  - `truststore` Reference
    - `name` string
    - `scope` 'PROJECT' | 'ADMIN'
  - `jwkValidation` Reference
    - `name` string
    - `scope` 'PROJECT' | 'ADMIN'
  - `jwkEncryption` Reference
    - `name` string
    - `scope` 'PROJECT' | 'ADMIN'

---

[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)
