> ## Documentation Index
> Fetch the complete documentation index at: https://infisical.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Get a key's public key

> Fetch the public key of a KMS signing key with the Node.js SDK.

`client.kms().signing().getPublicKey()` fetches the public key of a signing key, so that you can verify signatures outside Infisical.

## Parameters

**options** `KmsGetPublicKeyOptions` *required*

**properties**

**keyId** `string` *required*

The ID of a signing key.

## Returns

**publicKey** `string`

The public key.

```typescript Basic theme={"dark"}
const publicKey = await client.kms().signing().getPublicKey({ keyId: "<key-id>" });
```

```json Response theme={"dark"}
"MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA..."
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.