POST
/
api
/
v2.1
/
twoFA
/
createTFAOption
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

Response

200
application/json

Option created successfully

The response is of type object.