Overview

An AuthenticatorEntry is one two-factor authentication (2FA) code that Phones Inc keeps for your organization, like an entry in Google Authenticator. You give it the setup key an app shows when you turn on 2FA, and from then on you can read the current 6-digit code at any time.
  1. Add 2FA Entry stores the setup key and returns the entry with its id. Scan 2FA QR Code does the same from the QR code on a phone’s screen.
  2. Get 2FA Code returns the current code for that id.
Each entry names the app the account belongs to and a label you choose, such as the account’s username. It can also be linked to one of your phones, for example the phone the account is logged in on. The link is optional and only for your reference: the code works the same either way, and the entry stays when the phone leaves your organization. Phones Inc keeps the setup key, and any backup codes you store with Update 2FA Entry, so the account can be recovered without the phone. No endpoint returns them: every entry carries its current code, which changes every 30 seconds, and how many backup codes are stored.

Properties

string
Unique identifier of the entry.
string
The app the account belongs to: tiktok or instagram.
string
The name you gave the entry, for example the account’s username.
string | null
The id of the phone the entry is linked to, or null.
string
The current code, usually 6 digits. Keep it as a string: it can start with 0.
string
When code stops being valid (ISO 8601 timestamp). Read the code again after this time to get the next one.
number
How many backup codes are stored for the entry (0 when none).
string
When the entry was added (ISO 8601 timestamp).

Example