# QR Code

## GET /api/v1/verifier/qr-codes/{id}

> Retrieves a QR code by its ID.\
> \
> Returns the QR code data as a string, which contains a data URI with base64-encoded\
> image data. This QR code encodes a URL pointing to an authorization request that\
> specifies what credentials a verifier is requesting from a user's wallet.

```json
{"openapi":"3.0.0","info":{"title":"verifier-service","version":"1.0.0-rc1"},"servers":[{"url":"/"}],"security":[],"paths":{"/api/v1/verifier/qr-codes/{id}":{"get":{"operationId":"GetQrCodeById","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{}}}}},"description":"Retrieves a QR code by its ID.\n\nReturns the QR code data as a string, which contains a data URI with base64-encoded\nimage data. This QR code encodes a URL pointing to an authorization request that\nspecifies what credentials a verifier is requesting from a user's wallet.","tags":["QR Code"],"parameters":[{"description":"- The unique identifier of the QR code to retrieve","in":"path","name":"id","required":true,"schema":{"type":"string"}}]}}}}
```

## DELETE /api/v1/verifier/qr-codes/{id}

> Deletes a QR code by its ID.\
> \
> QR codes are typically deleted after the authorization process is complete\
> and the verification flow has concluded, as they are no longer needed.

```json
{"openapi":"3.0.0","info":{"title":"verifier-service","version":"1.0.0-rc1"},"servers":[{"url":"/"}],"security":[{"clientSecret":[]}],"components":{"securitySchemes":{"clientSecret":{"type":"apiKey","name":"x-client-secret","in":"header"}}},"paths":{"/api/v1/verifier/qr-codes/{id}":{"delete":{"operationId":"DeleteQrCode","responses":{"204":{"description":"No Content"},"400":{"description":"Bad Request","content":{"application/json":{"schema":{}}}}},"description":"Deletes a QR code by its ID.\n\nQR codes are typically deleted after the authorization process is complete\nand the verification flow has concluded, as they are no longer needed.","tags":["QR Code"],"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}]}}}}
```

## GET /api/v1/verifier/qr-codes/image

> Displays a QR code image from a URL.\
> Fetches the QR code data from the provided URL, processes it, and returns the image.\
> \
> This endpoint allows client applications to display the QR code directly in browsers\
> or applications. When scanned by a user's wallet app, this QR code initiates the\
> credential verification flow by connecting the wallet to the authorization request.\
> The wallet can then retrieve the presentation definition that specifies what\
> credentials the verifier is requesting.

```json
{"openapi":"3.0.0","info":{"title":"verifier-service","version":"1.0.0-rc1"},"servers":[{"url":"/"}],"security":[],"paths":{"/api/v1/verifier/qr-codes/image":{"get":{"operationId":"GetQrCodeAsImage","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string","format":"byte"}}}}},"description":"Displays a QR code image from a URL.\nFetches the QR code data from the provided URL, processes it, and returns the image.\n\nThis endpoint allows client applications to display the QR code directly in browsers\nor applications. When scanned by a user's wallet app, this QR code initiates the\ncredential verification flow by connecting the wallet to the authorization request.\nThe wallet can then retrieve the presentation definition that specifies what\ncredentials the verifier is requesting.","tags":["QR Code"],"parameters":[{"in":"query","name":"url","required":true,"schema":{"type":"string"}}]}}}}
```
