curl --request POST \
--url https://pria.praxislxp.com/api/auth/mfa-resend \
--header 'Content-Type: application/json' \
--data '
{
"challengeId": "65f2c9a1d8e4b3c5a1234567"
}
'import requests
url = "https://pria.praxislxp.com/api/auth/mfa-resend"
payload = { "challengeId": "65f2c9a1d8e4b3c5a1234567" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({challengeId: '65f2c9a1d8e4b3c5a1234567'})
};
fetch('https://pria.praxislxp.com/api/auth/mfa-resend', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://pria.praxislxp.com/api/auth/mfa-resend",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'challengeId' => '65f2c9a1d8e4b3c5a1234567'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://pria.praxislxp.com/api/auth/mfa-resend"
payload := strings.NewReader("{\n \"challengeId\": \"65f2c9a1d8e4b3c5a1234567\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://pria.praxislxp.com/api/auth/mfa-resend")
.header("Content-Type", "application/json")
.body("{\n \"challengeId\": \"65f2c9a1d8e4b3c5a1234567\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://pria.praxislxp.com/api/auth/mfa-resend")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"challengeId\": \"65f2c9a1d8e4b3c5a1234567\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"challengeId": "65f2cabe1234e5f6a8765432",
"maskedEmail": "hu***@praxis-ai.com"
}{
"success": false,
"code": "BAD_REQUEST",
"message": "<string>",
"attemptsRemaining": 4,
"retryAfter": 24,
"serverTime": 1790000000
}{
"success": false,
"code": "BAD_REQUEST",
"message": "<string>",
"attemptsRemaining": 4,
"retryAfter": 24,
"serverTime": 1790000000
}{
"success": false,
"code": "BAD_REQUEST",
"message": "<string>",
"attemptsRemaining": 4,
"retryAfter": 24,
"serverTime": 1790000000
}{
"success": false,
"code": "BAD_REQUEST",
"message": "<string>",
"attemptsRemaining": 4,
"retryAfter": 24,
"serverTime": 1790000000
}{
"success": false,
"code": "BAD_REQUEST",
"message": "<string>",
"attemptsRemaining": 4,
"retryAfter": 24,
"serverTime": 1790000000
}Request a new MFA code for the current challenge
Invalidates the current challenge and issues a fresh one with the same loginContext (so the verify step still lands you in the same branding / institution context). The new challenge has its own 5-min TTL and its own 5-attempt cap.
Cooldown: the previous challenge must be at least 30 seconds old before a Resend is allowed — prevents email-bombing.
First send: a challenge that has not emailed anything yet — one
returned by an SDK / Canvas launch with codeSent: false (“Send me a
code”), or an authenticator-app challenge whose person asks for an
email instead — sends its first code at once, without the cooldown. If
that email fails, the challenge stays usable so the person can try
again.
A resend is not a failed code and never counts toward the limit of
failed codes. When that limit is reached the resend answers 423
MFA_LOCKED and sends nothing. Codes for an embedded / Canvas launch, or
for a sign-in that asks for a code before any session (stepUp), are
limited to 5 an hour from one network and 15 an hour in all: over
that, 429 MFA_SEND_LIMIT with retryAfter, nothing is sent and the
challenge stays usable. A send that fails (502) is not counted. When
several resends of one challenge arrive at once, one sends a code and
the others answer 410.
curl --request POST \
--url https://pria.praxislxp.com/api/auth/mfa-resend \
--header 'Content-Type: application/json' \
--data '
{
"challengeId": "65f2c9a1d8e4b3c5a1234567"
}
'import requests
url = "https://pria.praxislxp.com/api/auth/mfa-resend"
payload = { "challengeId": "65f2c9a1d8e4b3c5a1234567" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({challengeId: '65f2c9a1d8e4b3c5a1234567'})
};
fetch('https://pria.praxislxp.com/api/auth/mfa-resend', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://pria.praxislxp.com/api/auth/mfa-resend",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'challengeId' => '65f2c9a1d8e4b3c5a1234567'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://pria.praxislxp.com/api/auth/mfa-resend"
payload := strings.NewReader("{\n \"challengeId\": \"65f2c9a1d8e4b3c5a1234567\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://pria.praxislxp.com/api/auth/mfa-resend")
.header("Content-Type", "application/json")
.body("{\n \"challengeId\": \"65f2c9a1d8e4b3c5a1234567\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://pria.praxislxp.com/api/auth/mfa-resend")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"challengeId\": \"65f2c9a1d8e4b3c5a1234567\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"challengeId": "65f2cabe1234e5f6a8765432",
"maskedEmail": "hu***@praxis-ai.com"
}{
"success": false,
"code": "BAD_REQUEST",
"message": "<string>",
"attemptsRemaining": 4,
"retryAfter": 24,
"serverTime": 1790000000
}{
"success": false,
"code": "BAD_REQUEST",
"message": "<string>",
"attemptsRemaining": 4,
"retryAfter": 24,
"serverTime": 1790000000
}{
"success": false,
"code": "BAD_REQUEST",
"message": "<string>",
"attemptsRemaining": 4,
"retryAfter": 24,
"serverTime": 1790000000
}{
"success": false,
"code": "BAD_REQUEST",
"message": "<string>",
"attemptsRemaining": 4,
"retryAfter": 24,
"serverTime": 1790000000
}{
"success": false,
"code": "BAD_REQUEST",
"message": "<string>",
"attemptsRemaining": 4,
"retryAfter": 24,
"serverTime": 1790000000
}Body
Opaque server-issued challenge identifier.
"65f2c9a1d8e4b3c5a1234567"
Response
New code emailed; client must use the newly-returned challengeId for subsequent verify / resend / cancel calls.
Was this page helpful?