WoyraDocs
Get an API key

The signed-in user, account and MFA state

GET/v1/auth/me

Console · Requires an API key

Reachable even while MFA enrolment is outstanding, so the console can show what is required.

Example

curl https://api.woyra.io/v1/auth/me \
  -H "Authorization: Bearer $WOYRA_KEY"

Response

200 The session.

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