> For the complete documentation index, see [llms.txt](https://docs.inji.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.inji.io/inji-verify/build-and-deploy/creating-verifiable-credentials-and-generating-qr-codes.md).

# Generate QR Code

This guide will assist in creating a verifiable credential from an existing data source, converting it into a QR code, and then verifying the QR code online.

#### **Steps to Generate Verifiable Credential:**

1. **Install Inji Certify**: Follow the installation guide available on the [**Github Repository**](https://github.com/mosip/inji-certify/tree/v0.8.0?tab=readme-ov-file).
2. **Generate Verifiable Credential**: By following the provided documentation, users will be able to generate a verifiable credential in JSON-LD format using Inji Certify.
3. Copy the credential body(value of 'credential' from credential response) from the generated credential from Inji Certify to pass it as a data parameter to `generateQRCode` from Pixelpass library.

#### **Steps to Generate QR Code:**

1. Steps to create QR code using node -
   * Create a directory and npm init
   * npm install @mosip/pixelpass
   * Enter node shell -
   * `const {generateQRData} = require('@mosip/pixelpass')`
   * `generateQRCode(JSON.stringify(JSON.parse(<credential_data>)))`
2. **Save QR Code Image**: Copy the image data and paste it into the browser URL. Save the QR code image.

#### **Steps to Verify QR Code:**

The below steps are valid once it is deployed in your local system by following the[ **local setup guide.**](https://docs.mosip.io/inji/inji-verify/build-and-deploy/local-setup)

1. **Open Inji Verify Portal**: Access the Inji Verify portal in your browser once it is deployed in your local setup.
2. **Upload QR Code**: Select the 'upload QR code' option and upload the QR code retrieved from the Pixelpass integrated app. To see how the upload feature works you can refer to our [**end-user guide**](https://docs.mosip.io/inji/inji-verify/functional-overview/end-user-guide).
3. **Verify QR Code**: If the QR code is valid, credentials will be displayed along with a success message.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.inji.io/inji-verify/build-and-deploy/creating-verifiable-credentials-and-generating-qr-codes.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
