Skip to content

Enrolment URI not valid

authenticator.invalid_uri · HTTP 400

What it means

The otpauthUri does not read as an otpauth://totp/ URI: it has another scheme or type, no secret parameter, a parameter given twice, broken percent-encoding, or an issuer or account that is longer than 100 characters or carries a control character.

What to do

Send the URI exactly as the app under test shows it, or send its setup key as secret with issuer, account and the other parameters beside it.

Every error the API returns is a JSON problem (RFC 9457) whose code names it and whose type links to its page here. See the docs for how the API works.