Enum options: ACTIVITY_TYPE_CREATE_MFA_POLICY
Timestamp (in milliseconds) of the request, used to verify liveness of user requests.
Unique identifier for a given Organization.
The parameters object containing the specific intent data for this activity.
parameters.requiredAuthenticationMethods
An ordered list of authentication requirements. Each requirement must be satisfied sequentially to complete MFA.
parameters.requiredAuthenticationMethods.any
A list of authentication methods for this MFA step. If only one method is provided, it is required. If multiple are provided, the user must satisfy ANY one of them.
A successful response returns the following fields:
The activity object containing type, intent, and result
curl --request POST \
--url https://api.turnkey.com/public/v1/submit/create_mfa_policy \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header "X-Stamp: <string> (see Authorizations)" \
--data '{
"type": "ACTIVITY_TYPE_CREATE_MFA_POLICY",
"timestampMs": "<string> (e.g. 1746736509954)",
"organizationId": "<string> (Your Organization ID)",
"parameters": {
"userId": "<string>",
"mfaPolicyName": "<string>",
"condition": "<string>",
"requiredAuthenticationMethods": [
{
"any": [
{
"type": "<AUTHENTICATION_TYPE_EMAIL_OTP>",
"id": "<string>"
}
]
}
],
"order": "<number>",
"notes": "<string>"
}
}'
{
"activity" : {
"id" : "<activity-id>" ,
"status" : "ACTIVITY_STATUS_COMPLETED" ,
"type" : "ACTIVITY_TYPE_CREATE_MFA_POLICY" ,
"organizationId" : "<organization-id>" ,
"timestampMs" : "<timestamp> (e.g. 1746736509954)" ,
"result" : {
"activity" : {
"id" : "<string>" ,
"organizationId" : "<string>" ,
"status" : "<string>" ,
"type" : "<string>" ,
"intent" : {
"createMfaPolicyIntent" : {
"userId" : "<string>" ,
"mfaPolicyName" : "<string>" ,
"condition" : "<string>" ,
"requiredAuthenticationMethods" : [
{
"any" : [
{
"type" : "<AUTHENTICATION_TYPE_EMAIL_OTP>" ,
"id" : "<string>"
}
]
}
],
"order" : "<number>" ,
"notes" : "<string>"
}
},
"result" : {
"createMfaPolicyResult" : {
"mfaPolicyId" : "<string>"
}
},
"votes" : "<array>" ,
"fingerprint" : "<string>" ,
"canApprove" : "<boolean>" ,
"canReject" : "<boolean>" ,
"createdAt" : "<string>" ,
"updatedAt" : "<string>"
}
}
}
}