WoyraDocs
Get an API key

Confirm TOTP enrolment with a code

POST/v1/auth/mfa/confirm

Console · Requires an API key

Body

FieldTypeDescription
coderequiredstringSix digits from the authenticator app

Example

curl -X POST https://api.woyra.io/v1/auth/mfa/confirm \
  -H "Authorization: Bearer $WOYRA_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
    "code": "<code>"
  }'

Response

200 Enabled.

FieldTypeDescription
object"session"
userUser
accountobject
account.idstring
account.namestring
account.countrystring
account.currencystringThe billing currency.
account.payment_currencystringHow the account pays: USD by card, or ETB by bank deposit credited in USD.
One of ETB, USD.
account.regionstring
One of global, ethiopia.
account.statusstring
account.project_idstring
mfaobject
mfa.enabledbooleanAn authenticator app is on.
mfa.requiredboolean
mfa.pendingboolean
mfa.passkeysintegerHow many passkeys the user has. A passkey counts as a second factor.
mfa.recovery_codesintegerUnused recovery codes left.
sessionobject
session.idstring
session.expires_attimestamp
api_keyobjectOnly on signup — the test key, with its token shown once.

Errors

StatusCodes
401authentication_required, invalid_api_key

Also in Console