← Error reference

totp_required

Two-factor code required

HTTP 401 retry will not help
Cause
The dashboard action needs a code from your authenticator app. Live purchases in the dashboard and issuing a live API key require a recent two-factor confirmation in the current session; signing in and revealing a fulfillment require the code itself. If two-factor authentication is not set up yet, the response carries totp_enrolled: false and setup_url.
What to do
Enter the six-digit code from your authenticator app: one code unlocks live purchases and live keys for 10 minutes in this session. Without two-factor authentication, set it up on the dashboard’s security page first. Partner API requests with a key are not affected.

Response example

{
  "type": "https://docs.kupikod.business/errors/totp_required",
  "title": "Two-factor code required",
  "status": 401,
  "code": "totp_required",
  "retryable": false,
  "doc_url": "https://docs.kupikod.business/errors/totp_required",
  "request_id": "req_01J…"
}