Humanity Verification
curl --request POST \
--url https://portal-api.magna.so/api/v2/{portalId}/humanity/status \
--header 'Content-Type: application/json' \
--data '
{
"value": {
"value": "0x01f9632ea55aa14ed6b39aa8ebcece425f7ef0e9"
}
}
'import requests
url = "https://portal-api.magna.so/api/v2/{portalId}/humanity/status"
payload = { "value": { "value": "0x01f9632ea55aa14ed6b39aa8ebcece425f7ef0e9" } }
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({value: {value: '0x01f9632ea55aa14ed6b39aa8ebcece425f7ef0e9'}})
};
fetch('https://portal-api.magna.so/api/v2/{portalId}/humanity/status', 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://portal-api.magna.so/api/v2/{portalId}/humanity/status",
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([
'value' => [
'value' => '0x01f9632ea55aa14ed6b39aa8ebcece425f7ef0e9'
]
]),
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://portal-api.magna.so/api/v2/{portalId}/humanity/status"
payload := strings.NewReader("{\n \"value\": {\n \"value\": \"0x01f9632ea55aa14ed6b39aa8ebcece425f7ef0e9\"\n }\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://portal-api.magna.so/api/v2/{portalId}/humanity/status")
.header("Content-Type", "application/json")
.body("{\n \"value\": {\n \"value\": \"0x01f9632ea55aa14ed6b39aa8ebcece425f7ef0e9\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://portal-api.magna.so/api/v2/{portalId}/humanity/status")
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 \"value\": {\n \"value\": \"0x01f9632ea55aa14ed6b39aa8ebcece425f7ef0e9\"\n }\n}"
response = http.request(request)
puts response.read_body{
"verified": true
}{
"errors": [
{
"path": "query.wallet",
"message": "Required"
}
]
}{
"error": "internal server error"
}Humanity Check
Humanity Verification
Whether the account passes the POH for the given portal.
POST
/
api
/
v2
/
{portalId}
/
humanity
/
status
Humanity Verification
curl --request POST \
--url https://portal-api.magna.so/api/v2/{portalId}/humanity/status \
--header 'Content-Type: application/json' \
--data '
{
"value": {
"value": "0x01f9632ea55aa14ed6b39aa8ebcece425f7ef0e9"
}
}
'import requests
url = "https://portal-api.magna.so/api/v2/{portalId}/humanity/status"
payload = { "value": { "value": "0x01f9632ea55aa14ed6b39aa8ebcece425f7ef0e9" } }
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({value: {value: '0x01f9632ea55aa14ed6b39aa8ebcece425f7ef0e9'}})
};
fetch('https://portal-api.magna.so/api/v2/{portalId}/humanity/status', 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://portal-api.magna.so/api/v2/{portalId}/humanity/status",
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([
'value' => [
'value' => '0x01f9632ea55aa14ed6b39aa8ebcece425f7ef0e9'
]
]),
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://portal-api.magna.so/api/v2/{portalId}/humanity/status"
payload := strings.NewReader("{\n \"value\": {\n \"value\": \"0x01f9632ea55aa14ed6b39aa8ebcece425f7ef0e9\"\n }\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://portal-api.magna.so/api/v2/{portalId}/humanity/status")
.header("Content-Type", "application/json")
.body("{\n \"value\": {\n \"value\": \"0x01f9632ea55aa14ed6b39aa8ebcece425f7ef0e9\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://portal-api.magna.so/api/v2/{portalId}/humanity/status")
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 \"value\": {\n \"value\": \"0x01f9632ea55aa14ed6b39aa8ebcece425f7ef0e9\"\n }\n}"
response = http.request(request)
puts response.read_body{
"verified": true
}{
"errors": [
{
"path": "query.wallet",
"message": "Required"
}
]
}{
"error": "internal server error"
}⌘I