POST
/
api
/
v2.1
/
twoFA
/
createTFAOption
Create a two-factor authentication option
curl --request POST \
  --url https://sandbox.finhub.cloud/api/v2.1/twoFA/createTFAOption \
  --header 'Content-Type: application/json' \
  --header 'X-Forwarded-For: <x-forwarded-for>' \
  --data '{
  "customerId": "<string>",
  "method": "<string>",
  "destination": "<string>",
  "setAsPreferred": true
}'
{
  "customerId": "<string>",
  "method": "<string>",
  "destination": "<string>",
  "preferred": true,
  "lastUpdated": "2022-03-10T12:15:50.000Z",
  "status": "<string>"
}

Headers

X-Forwarded-For
string
required

Forwarded client IP address

User-Agent
string

Client user agent information

X-Tenant-ID
string

Tenant identifier for multi-tenant operations

Body

application/json
customerId
string
required
method
string
required
destination
string
required
setAsPreferred
boolean

Response

Option created successfully

customerId
string
method
string
destination
string
preferred
boolean
lastUpdated
string<date-time>
Example:

"2022-03-10T12:15:50.000Z"

status
string