---
title: "Validate an authentication code"
method: POST
path: "/verify/validate"
---

# Validate an authentication code

`POST /verify/validate`

Validate an authentication code. Any unsuccessful response (either the response code is not 200 or an error is generated or `response.body.success` is not true) means that the code given by the user is not valid.

## Request body

- ValidateRequest
  - `target` string, email, required — Actual target to verify. If target_type is email, should be a valid email address
  - `target_type` 'email' — Type of target. Currently only email is supported
  - `code` integer, required — The code received by the target

## Response `200`

Success Response

- ValidateResponse
  - `success` boolean — Whether the code is valid or not

## Other responses

- `default` — Error Response

---

[API](https://skmtc.dev/clevyio/apis/nopass-me-api-documentation.md) · [All operations](https://skmtc.dev/clevyio/apis/nopass-me-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/clevyio/nopass-me-api-documentation/revisions/dcf8ad51cc68/schema)
