---
title: "POST /v1/accounts/{accountId}/resources/{resourceId}/qrcode"
method: POST
path: "/v1/accounts/{accountId}/resources/{resourceId}/qrcode"
---

# POST /v1/accounts/{accountId}/resources/{resourceId}/qrcode

`POST /v1/accounts/{accountId}/resources/{resourceId}/qrcode`

## Request

- Base URL: `https://api.usa.cloud.watchguard.com/rest/authpoint/authentication`
- URL: `https://api.usa.cloud.watchguard.com/rest/authpoint/authentication/v1/accounts/{accountId}/resources/{resourceId}/qrcode`
- Auth: API key in header `WatchGuard-API-Key` and HTTP bearer
- TypeScript: <https://skmtc.dev/watchguard/apis/authpoint-authentication-api/docs/v1/accounts/:accountId/resources/:resourceId/qrcode/post.ts> (a function with typed inputs; its response is checked against the schema)

Validates the Verification Code provided by a user for the generated QR code.

## Path parameters

- `accountId` string, required
- `resourceId` number, required

## Request body

- QRCodeAuthenticationRequest: The request body to authenticate a QRCode response
  - `login` string, required: Identifies the user to validate. This must be the email address or the user name of the user to validate.
  - `qrCodeResponse` string, required: The Verification Code that the user receives when they scan the QR code. When you generate a QR code and render it to show in the UI on the authentication page, a six digit Verification Code is generated.
  - `transactionId` string, required: Identifies the QR code to validate.
  - `originIpAddress` string: The end user IP address. The IP address must be in IPv4 format.

## Response `200`

Successful authentication response

- AuthenticationResponse: The authentication response
  - `authenticationResult` 'AUTHORIZED': The authentication result

## Other responses

- `400`: Bad request
- `403`: Authentication not authorized
- `404`: Resource or user not found

---

[API](https://skmtc.dev/watchguard/apis/authpoint-authentication-api.md) - [All operations](https://skmtc.dev/watchguard/apis/authpoint-authentication-api/llms.txt) - [OpenAPI document](https://skmtc.dev/watchguard/apis/authpoint-authentication-api/revisions/d0a6623e53ce?raw)
