Enable Account MFA
curl --request POST \
--url https://staging-api.getpartna.com/v4/mfa \
--header 'x-api-key: <api-key>' \
--header 'x-api-user: <api-key>'import requests
url = "https://staging-api.getpartna.com/v4/mfa"
headers = {
"x-api-key": "<api-key>",
"x-api-user": "<api-key>"
}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-api-key': '<api-key>', 'x-api-user': '<api-key>'}};
fetch('https://staging-api.getpartna.com/v4/mfa', 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://staging-api.getpartna.com/v4/mfa",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>",
"x-api-user: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://staging-api.getpartna.com/v4/mfa"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("x-api-user", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://staging-api.getpartna.com/v4/mfa")
.header("x-api-key", "<api-key>")
.header("x-api-user", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://staging-api.getpartna.com/v4/mfa")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["x-api-user"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"qrCode": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHEAAABxAQMAAADYsN6TAAAABlBMVEX///8AAABVwtN+AAABtElEQVR42sTUMapmOwgH8EBawa0IaQW3LqQV3IpgK/i459438J1x2hm7X5No8sf1z6vLCHIlL28drIC3rG2jrclu4nCB+1rN7q8Dmw/8wQmAzWfNVohzAK8DrMld9lO/+v/wWrWuIZ/6f+JPqyumNKR26OQFJxcyAcQajObg2rThwuTeXsm07WzTweGm1Vdu2NPR2zvOlot8gXPycUBEqFUFk2k3FUeK3Oe+t7k5iEqiy9dgIUNOAS1OHdyAW1EUEXgyBqWYns70yVqIIcZZWpPtrrIsOcbPe7+Nfet6+ba2ya7BzHhAdXRbOYHzdfvOz8uhymwAifrE6W3tPBvLwzom32tsfOgq8uQNGulOUT2aTxCv7GWok8PskG28WKPhEm4XW8Q2mRu95SjalsmuqhSWknYnL8jUiFNEMll3MDBTFzwNv71xKx9EV3vy+nZu97hXAtInk3TIodry/Z9vyyaj2CerQQcXGrm03OqavFajFliC/myMT3fpwbIOMJusQIyFVKk+2e2ida/2733zu3du/5qGaY1GdUZZkjBZYS1lTpGNk7+mtCpJvVcH/936LwAA//9xl5M1Qm7l5gAAAABJRU5ErkJggg==",
"recoveryPhrases": [
"c5d61a-2e7f25",
"04f71d-fc0a2d",
"a444ec-8cfcbe",
"c890ba-571318",
"4693e1-73ab19",
"df621e-7052df",
"41eea9-61e7a1",
"562827-2712d3",
"154ce0-39b4ce",
"4b4b6d-f629a5"
],
"secret": "47G3S4DZLCEMWAZGF23DEVBILOHCIKOT"
},
"message": "success"
}{
"message": "unable to access this resource"
}{
"message": "account not found"
}MFA
Enable Account MFA
Initiate account MFA enrollment.
POST
/
mfa
Enable Account MFA
curl --request POST \
--url https://staging-api.getpartna.com/v4/mfa \
--header 'x-api-key: <api-key>' \
--header 'x-api-user: <api-key>'import requests
url = "https://staging-api.getpartna.com/v4/mfa"
headers = {
"x-api-key": "<api-key>",
"x-api-user": "<api-key>"
}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-api-key': '<api-key>', 'x-api-user': '<api-key>'}};
fetch('https://staging-api.getpartna.com/v4/mfa', 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://staging-api.getpartna.com/v4/mfa",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>",
"x-api-user: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://staging-api.getpartna.com/v4/mfa"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("x-api-user", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://staging-api.getpartna.com/v4/mfa")
.header("x-api-key", "<api-key>")
.header("x-api-user", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://staging-api.getpartna.com/v4/mfa")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["x-api-user"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"qrCode": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHEAAABxAQMAAADYsN6TAAAABlBMVEX///8AAABVwtN+AAABtElEQVR42sTUMapmOwgH8EBawa0IaQW3LqQV3IpgK/i459438J1x2hm7X5No8sf1z6vLCHIlL28drIC3rG2jrclu4nCB+1rN7q8Dmw/8wQmAzWfNVohzAK8DrMld9lO/+v/wWrWuIZ/6f+JPqyumNKR26OQFJxcyAcQajObg2rThwuTeXsm07WzTweGm1Vdu2NPR2zvOlot8gXPycUBEqFUFk2k3FUeK3Oe+t7k5iEqiy9dgIUNOAS1OHdyAW1EUEXgyBqWYns70yVqIIcZZWpPtrrIsOcbPe7+Nfet6+ba2ya7BzHhAdXRbOYHzdfvOz8uhymwAifrE6W3tPBvLwzom32tsfOgq8uQNGulOUT2aTxCv7GWok8PskG28WKPhEm4XW8Q2mRu95SjalsmuqhSWknYnL8jUiFNEMll3MDBTFzwNv71xKx9EV3vy+nZu97hXAtInk3TIodry/Z9vyyaj2CerQQcXGrm03OqavFajFliC/myMT3fpwbIOMJusQIyFVKk+2e2ida/2733zu3du/5qGaY1GdUZZkjBZYS1lTpGNk7+mtCpJvVcH/936LwAA//9xl5M1Qm7l5gAAAABJRU5ErkJggg==",
"recoveryPhrases": [
"c5d61a-2e7f25",
"04f71d-fc0a2d",
"a444ec-8cfcbe",
"c890ba-571318",
"4693e1-73ab19",
"df621e-7052df",
"41eea9-61e7a1",
"562827-2712d3",
"154ce0-39b4ce",
"4b4b6d-f629a5"
],
"secret": "47G3S4DZLCEMWAZGF23DEVBILOHCIKOT"
},
"message": "success"
}{
"message": "unable to access this resource"
}{
"message": "account not found"
}Was this page helpful?
⌘I