Skip to main content
POST
/
users
/
totp
/
create
Create TOTP credential
curl --request POST \
  --url https://auth.platform.arb.inc/users/totp/create \
  --header 'Authorization: Bearer <token>'
{
  "secret": "JBSWY3DPEHPK3PXP",
  "issuer": "Arb",
  "accountName": "user@example.com",
  "algorithm": "SHA1",
  "digits": 6,
  "period": 30
}

Authorizations

Authorization
string
header
required

access token

Response

Successfully created TOTP credential

secret
string

Base32-encoded TOTP secret

Example:

"JBSWY3DPEHPK3PXP"

issuer
string

Issuer name for the authenticator app

Example:

"Arb"

accountName
string

Account name displayed in authenticator app

Example:

"user@example.com"

algorithm
string

TOTP algorithm

Example:

"SHA1"

digits
integer

Number of digits in TOTP code

Example:

6

period
integer

Time period in seconds for TOTP generation

Example:

30