---
page_source: https://juspay.io/in/docs/upi-consumer-stack/docs/customer-onboarding/list-npci-keys
page_title: List NPCI Keys
---

## API Version: default


# List NPCI Keys



This api can be used for fetching the NPCI public keys.## Endpoints:
- Production: http://{{host}}/api/{uri}/merchants/npci/keys

## Request Type: 
GET

## Content-Type: 
application/json

## Headers:

#### x-merchant-id:
Will be shared while onboarding.
- Tags: String, Required

#### x-merchant-channel-id:
Will be shared while onboarding.
- Tags: String, Required

#### x-timestamp:
This is an epoch unix timestamp string. For example, `1496918882000`. It can be used by us to invalidate older requests.
- Tags: Integer, Required

#### x-merchant-signature:
This is a signature over combination of headers, payload. Refer Signature Calculation section for more details.
- Tags: String, Required

#### x-api-version:
This is used to modify the response structure of the request. Based on the version being passed, we can add fields in the response.This needs to be passed if CL version >= 1.8, by default x-api-version will be considered as 0.
- Tags: Numeric String, Conditional
## Sample Code Snippets:
### Code Snippets:

#### Shell Code Snippet:

```shell
{"success":false,"message":"No Data found for the given path"}
```

### Sample Request and Response:

#### Response:
```json
{"success":false,"message":"No Data found for the given path"}
```

## API Responses:
### 200:

#### status:
- Description: PSP status of the APIValue: `SUCCESS  | FAILURE`
- Tags: String, Mandatory

#### responseCode:
- Description: PSP response code for the API
- Tags: String, Mandatory

#### responseMessage:
- Description: PSP response message for the API
- Tags: String, Mandatory

#### payload:
- Value:
  - **MerchantId**:
    - Description: Unique id for the merchant as passed in request headers
    - Tags: String, Mandatory
  - **MerchantChannelId**:
    - Description: Unique id for the merchant channel as passed in request headers
    - Tags: String, Mandatory
  - **NpciKey**:
    - Description: NPCI public key to be passed to Common Library
    - Tags: Base64 encoded String, Mandatory
- Tags: String, Mandatory

#### udfParameters:
- Description: Stringified JSON for udf parameters
- Tags: Json String, Optional
