Skip to content

Start TOTP setup

GET
/admin/auth/totp-setup

Получение секрета и provisioning URI для настройки 2FA.
Секрет сохраняется в сессии до подтверждения через /admin/auth/totp-confirm.

Authorizations

sessionCookie

PHP session cookie (HTTP-only, Secure, SameSite=Lax)

Type
API Key (cookie: PARTIZAP_SESSION)

Responses

TOTP setup data

application/json
JSON
{
  
"data": {
  
  
"secret": "string",
  
  
"provisioning_uri": "string"
  
}
}

Playground

Server
Authorization

Samples

Powered by VitePress OpenAPI