AuthController_verify2fa
POST
/admin/v1/auth/2fa
const url = 'https://your-store.example.com/admin/v1/auth/2fa';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"challengeId":"example","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 \ --header 'Content-Type: application/json' \ --data '{ "challengeId": "example", "totpCode": "example" }'Request Body required
Section titled “Request Body required ” Media type application/json
object
challengeId
required
string
totpCode
required
string
Example generated
{ "challengeId": "example", "totpCode": "example"}