Skip to main content
POST
/
users
/
totp
/
create
Create a new TOTP credential for a user
curl --request POST \
  --url https://auth.platform.arb.inc/users/totp/create \
  --header 'Authorization: Bearer <token>'
{
  "secret": "JBSWY3DPEHPK3PXP",
  "issuer": "Parkflow",
  "accountName": "[email protected]",
  "algorithm": "SHA1",
  "digits": 6,
  "period": 30
}

Authorizations

Authorization
string
header
required

access token

Response

TOTP credential successfully created.

secret
string

The shared secret for the TOTP credential.

Example:

"JBSWY3DPEHPK3PXP"

issuer
string

The name of the TOTP issuer.

Example:

"Parkflow"

accountName
string

The account name associated with the TOTP.

algorithm
string

The algorithm used for TOTP generation.

Example:

"SHA1"

digits
integer

Number of digits in the TOTP code.

Example:

6

period
integer

Time period in seconds for each TOTP code.

Example:

30