---
title: "Get TOTP configuration"
method: GET
path: "/api/users/{username}/totp"
tags: ["Users"]
---

# Get TOTP configuration

`GET /api/users/{username}/totp`

## Path parameters

- `username` string, required

## Response `200`

Returns the TOTP provisioning URI, if TOTP has not been configured.

- object
  - `provisioning_uri` string

## Other responses

- `400` — Bad request if TOTP is already configured for this user.
- `403` — For any {username} in URL but the currently logged in user (or no user is logged in).
- `503` — If the user is using Passkey authentication, TOTP cannot be configured.

---

[API](https://skmtc.net/contao/apis/contao-manager-api.md) · [All operations](https://skmtc.net/contao/apis/contao-manager-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/contao/contao-manager-api/versions/074d8046de13/schema)
