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

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

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

## 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}/otp`
- 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/otp/post.ts> (a function with typed inputs; its response is checked against the schema)

Validates the one-time password provided by the user.

## Path parameters

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

## Request body

- OtpAuthenticationRequest: The body to request an OTP authentication
  - `login` string, required: Identifies the user to validate. This must be the email address or the user name of the user to validate.
  - `password` string: The password of the user to be validated. It must be filled in clear text.
  - `otp` string, required: The one-time password typed by the user. This must be a six-digit OTP that includes only numbers.
  - `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)
