# Verify a Verifiable Presentation

This tutorial offers step-by-step guidance on how to verify a [Verifiable Presentation](https://w3c-ccg.github.io/vp-request-spec/).

> ⚠️ **Before you begin...**
>
> Make sure you've correctly [configured the cheqd plugin's agent settings](/product/sdk/veramo/setup.md) for Veramo CLI

## Instructions

The cryptographic verification in this tutorial will be based on JWT proof of a [previously-created Verifiable Presentation](/product/sdk/veramo/credentials/create-jwt-presentation.md).

### 1. Call Veramo's `presentation verify` function

If you have the generated Verifiable Presentation stored, pass it to the `presentation verify` function:

```bash
cat pres.txt | veramo presentation verify
```

### 2. Check verification output

If the verification is successful, you'll receive this response:

```bash
Presentation verified successfully
```

### 🤨 Troubleshoot verifying JWT presentations

If you belive you did everything right(created a verifiable presentation and you did not tamper it), and for some reason you're getting

```bash
Presentation could not be verified
```

#### You can fix it the following way

* First, make sure you are using a `node` with version `16` or above.
* Second, Change veramo cli version to `@veramo/cli@latest -g` as previous versions cause few issues in verification. This will override the previous version you have installed.

```bash
 npm i @veramo/cli@latest -g
```

* Run command below to verify your JWT presentation.

```bash
veramo presentation verify -r <enter-the-JWT-here>
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cheqd.io/product/sdk/veramo/credentials/verify-jwt-presentation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
