> ## 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.

# Verify a signature

> Check a signature with a KMS key from the Node.js SDK.

`client.kms().signing().verify()` checks a signature that [`sign`](https://infisical.com/docs/sdks/languages/node/kms/sign) made.

## Parameters

**options** `KmsVerifyDataOptions` *required*

**properties**

**keyId** `string` *required*

The ID of the key that signed the data.

**data** `string` *required*

The data that was signed, encoded in base64.

**signature** `string` *required*

The signature that `sign` returned.

**signingAlgorithm** `SigningAlgorithm` *required*

The algorithm that signed the data.

**isDigest** `boolean` (default: false)

Whether `data` is a hash of the data that was signed.

## Returns

**result** `KmsVerifyDataResponse`

**properties**

**signatureValid** `boolean`

`true` if the signature is valid.

**keyId** `string`

The ID of the key.

**signingAlgorithm** `SigningAlgorithm`

The algorithm that the signature was checked with.

```typescript Basic theme={"dark"}
import { SigningAlgorithm } from "@infisical/sdk";

const { signatureValid } = await client.kms().signing().verify({
  keyId: "<key-id>",
  data: Buffer.from("release-v1.4.0").toString("base64"),
  signature,
  signingAlgorithm: SigningAlgorithm.RSASSA_PSS_SHA_256,
});
```

```json Response theme={"dark"}
{
  "signatureValid": true,
  "keyId": "1f2a3b4c-5d6e-4f7a-8b9c-0d1e2f3a4b5c",
  "signingAlgorithm": "RSASSA_PSS_SHA_256"
}
```


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