---
title: "Validates OTP for the invite"
method: POST
path: "/v2/api/invites/otp/validate"
tags: ["Invites"]
---

# Validates OTP for the invite

`POST /v2/api/invites/otp/validate`

## Request body

- InviteValidateOtpRequest
  - `code` string, required
  - `otp` integer, required

## Response `204`

No content

## Other responses

- `404` — Invite not found
- `422` — Missing required fields or invalid values

## Changes

- **2026-01-20** `61835ad90a33` — 1 breaking
  - the `code` request property's minLength was increased from `0` to `1`
- **2025-11-25** `61821d66cdcb` — 1 info
  - the `code` request property's minLength was decreased from `1` to `0`
- **2025-04-10** `e1deccce0b14` — 1 breaking
  - the `code` request property's minLength was increased from `0` to `1`
- **2022-11-03** `616fb81b9ba9` — 1 breaking, 1 warning, 3 info
  - added the new required request property `otp`
  - removed the request property `otp_code`
  - added the non-success response with the status `404`
  - added the non-success response with the status `422`
  - …1 more
- **2022-10-28** `f536609ee57e` — 1 breaking, 1 info
  - removed the success response with the status `200`
  - added the success response with the status `204`

[Full history](https://skmtc.dev/government-digital-service/apis/adminusers-api/changes/v2/api/invites/otp/validate/post.md)

---

[API](https://skmtc.dev/government-digital-service/apis/adminusers-api.md) · [All operations](https://skmtc.dev/government-digital-service/apis/adminusers-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/government-digital-service/adminusers-api/revisions/8f9d543f352b/schema)
