AuthController_confirm2fa
POST
/admin/v1/auth/2fa/confirm
const url = 'https://your-store.example.com/admin/v1/auth/2fa/confirm';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"totpCode":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://your-store.example.com/admin/v1/auth/2fa/confirm \ --header 'Content-Type: application/json' \ --data '{ "totpCode": "example" }'Request Body required
Section titled “Request Body required ” Media type application/json
object
totpCode
required
string
Example generated
{ "totpCode": "example"}