---
title: "Validate a one time authentication code"
method: POST
path: "/admin/totp/validate"
tags: ["admins"]
---

# Validate a one time authentication code

`POST /admin/totp/validate`

Checks if the given authentication code can be validated using the specified secret and config name

## Request body

- object
  - `config_name` string — name of the configuration to use to validate the passcode
  - `passcode` string — passcode to validate
  - `secret` string — secret to use to validate the passcode

## Response `200`

successful operation

- ApiResponse
  - `message` string — message, can be empty
  - `error` string — error description if any

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `500` — Internal Server Error
- `default` — Unexpected Error

---

[API](https://skmtc.net/kanton-bern/apis/sftpgo.md) · [All operations](https://skmtc.net/kanton-bern/apis/sftpgo/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kanton-bern/sftpgo/versions/d8d616a479b0/schema)
