cURL
curl --request POST \
--url https://api.openformat.tech/key/verify \
--header 'Content-Type: application/json' \
--data '
{
"signature": "0x860729b.....",
"public_address": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266"
}
'import requests
url = "https://api.openformat.tech/key/verify"
payload = {
"signature": "0x860729b.....",
"public_address": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266"
}
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({
signature: '0x860729b.....',
public_address: '0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266'
})
};
fetch('https://api.openformat.tech/key/verify', 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://api.openformat.tech/key/verify",
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([
'signature' => '0x860729b.....',
'public_address' => '0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266'
]),
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://api.openformat.tech/key/verify"
payload := strings.NewReader("{\n \"signature\": \"0x860729b.....\",\n \"public_address\": \"0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266\"\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://api.openformat.tech/key/verify")
.header("Content-Type", "application/json")
.body("{\n \"signature\": \"0x860729b.....\",\n \"public_address\": \"0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.openformat.tech/key/verify")
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 \"signature\": \"0x860729b.....\",\n \"public_address\": \"0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266\"\n}"
response = http.request(request)
puts response.read_body{
"api_key": "5a2a5e28-1851-4029-b0db-987e4b235a35"
}{
"error": {
"issues": [
{
"code": "invalid_type",
"path": [
"some_field"
],
"message": "Required"
}
]
}
}{
"error": "Signature verification failed"
}API Key
Challenge verification
Verify your signed challenge. You can sign your challenge using Metamask and our signing tool.
POST
/
key
/
verify
cURL
curl --request POST \
--url https://api.openformat.tech/key/verify \
--header 'Content-Type: application/json' \
--data '
{
"signature": "0x860729b.....",
"public_address": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266"
}
'import requests
url = "https://api.openformat.tech/key/verify"
payload = {
"signature": "0x860729b.....",
"public_address": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266"
}
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({
signature: '0x860729b.....',
public_address: '0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266'
})
};
fetch('https://api.openformat.tech/key/verify', 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://api.openformat.tech/key/verify",
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([
'signature' => '0x860729b.....',
'public_address' => '0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266'
]),
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://api.openformat.tech/key/verify"
payload := strings.NewReader("{\n \"signature\": \"0x860729b.....\",\n \"public_address\": \"0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266\"\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://api.openformat.tech/key/verify")
.header("Content-Type", "application/json")
.body("{\n \"signature\": \"0x860729b.....\",\n \"public_address\": \"0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.openformat.tech/key/verify")
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 \"signature\": \"0x860729b.....\",\n \"public_address\": \"0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266\"\n}"
response = http.request(request)
puts response.read_body{
"api_key": "5a2a5e28-1851-4029-b0db-987e4b235a35"
}{
"error": {
"issues": [
{
"code": "invalid_type",
"path": [
"some_field"
],
"message": "Required"
}
]
}
}{
"error": "Signature verification failed"
}Body
application/json
Response
Generated API Key
Generated API key
Example:
"5a2a5e28-1851-4029-b0db-987e4b235a35"
⌘I