createMfaDevice
Create a multi-factor authentication (MFA) device for a user.
Deprecation
The 'createMfaDevice' field is deprecated.Creating MFA devices via the API is no longer supported. The Auth Server should be used to manage multi-factor authentication.
- Marked as deprecated on 2026-11-04.
- Scheduled for removal on or after 2026-12-04.
Arguments
Input fields for creating a new multi-factor authentication device for the logged user.
Examples
The example data in the variables and responses below are autogenerated values designed to resemble real inputs. They do not represent actual customer data, and in some cases may require additional validation.
mutation CreateMfaDevice($input: CreateMfaDeviceInputType!) {
createMfaDevice(input: $input) {
deviceEmail
devicePhone
totpSecret
}
}
Variables
{
"input": CreateMfaDeviceInputType
}
Response
{
"data": {
"createMfaDevice": {
"deviceEmail": "month-down-free-attention-recognize",
"devicePhone": "travel-probably-life-newspaper-anyone",
"totpSecret": "father-same-you-news-green"
}
}
}