Endpoint

Overview

Stores a 2FA setup key for your organization and returns the new 2FA entry with its current code. When you turn on two-factor authentication in an app, it shows a QR code and a setup key. Send either the setup key (for example JBSW Y3DP EHPK 3PXP; spaces are ignored) or the otpauth:// link the QR code contains. Then enter the returned code in the app to finish turning on 2FA. To have Phones Inc read the QR code off one of your phones’ screens instead, use Scan 2FA QR Code. The setup key is kept so the account can be recovered, and is never returned. A login in several organizations, or an administrator, must select the entry’s organization with X-Phonesinc-Organization.

Request Body

string
required
The app the account belongs to: tiktok or instagram.
string
required
A name for the entry, for example the account’s username. Up to 120 characters; it cannot be blank.
string
required
The setup key, or the otpauth:// link from the QR code.
string
The id of one of your phones to link the entry to.

Response

boolean
true when the entry is stored.
AuthenticatorEntry

Errors