मुख्य सामग्री पर जाएं
POST
Enroll a TOTP factor
जब totp फ़ैक्टर का पहला कोड फ़ोन सत्यापन कोड की जाँच करें पास कर देता है, तब वह verified हो जाता है। इसे भी देखें: किसी उपयोगकर्ता के फ़ोन प्रमाणीकरण फ़ैक्टरों की सूची बनाएँ।

प्राधिकरण

x-api-key
string
header
आवश्यक

Your application's API key, from Developers -> API keys in the Business Console. The primary key has full access. A named key can be scoped: none, read or write per resource, limited to some workflows or to approved sessions, to a list of IP addresses, and to an expiry date. 401 means the key is wrong, revoked or expired; 403 means no key was sent, the key has no access to this resource or action, or the request came from an address outside its IP list; 404 on a session route means the session is outside the key's workflows or statuses. A key without media access receives image, video and PDF URLs as null, and a key without sessions write receives session links and tokens as null. See https://docs.didit.me/console/api-keys.

बॉडी

application/json
type
enum<string>
आवश्यक

The factor to enroll: totp, for an authenticator app.

उपलब्ध विकल्प:
totp
उदाहरण:

"totp"

user_id
string
आवश्यक

Your id for the user the factor belongs to; a check names the factor and the user.

उदाहरण:

"u_481"

friendly_name
string

Shown in the authenticator app and in the factor list.

उदाहरण:

"Demo App"

metadata
object

Up to 10 keys and values of your own, returned with the factor.

उदाहरण:

प्रतिक्रिया

The factor, with what the app needs to finish enrolling it.

The enrollment of a TOTP factor: totp.uri is what the authenticator app needs.

factor_id
string
आवश्यक

Check it with POST /v3/phone/check/ by naming it as factor_id together with the code its app shows.

उदाहरण:

"fa_01JCH8K2"

type
enum<string>
आवश्यक

The factor type.

उपलब्ध विकल्प:
totp
उदाहरण:

"totp"

status
enum<string>
आवश्यक

unverified until the first successful check, then verified.

उपलब्ध विकल्प:
unverified,
verified,
disabled
उदाहरण:

"unverified"

totp
object
आवश्यक

A totp factor: what the authenticator app needs.

अंतिम संशोधन 23 नवंबर 2026