cURL
curl --request POST \
--url https://api.vishodi.com/api/v1 \
--header 'Content-Type: application/json' \
--header 'X-API-Token: <api-key>' \
--data '
{
"model": "user_verification",
"email": "<string>",
"firstname": "<string>",
"lastname": "<string>"
}
'import requests
url = "https://api.vishodi.com/api/v1"
payload = {
"model": "user_verification",
"email": "<string>",
"firstname": "<string>",
"lastname": "<string>"
}
headers = {
"X-API-Token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'user_verification',
email: '<string>',
firstname: '<string>',
lastname: '<string>'
})
};
fetch('https://api.vishodi.com/api/v1', 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.vishodi.com/api/v1",
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([
'model' => 'user_verification',
'email' => '<string>',
'firstname' => '<string>',
'lastname' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Token: <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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.vishodi.com/api/v1"
payload := strings.NewReader("{\n \"model\": \"user_verification\",\n \"email\": \"<string>\",\n \"firstname\": \"<string>\",\n \"lastname\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Token", "<api-key>")
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.vishodi.com/api/v1")
.header("X-API-Token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"user_verification\",\n \"email\": \"<string>\",\n \"firstname\": \"<string>\",\n \"lastname\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vishodi.com/api/v1")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"user_verification\",\n \"email\": \"<string>\",\n \"firstname\": \"<string>\",\n \"lastname\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"status": "<string>",
"received_data": {
"model": "user_verification",
"email": "<string>",
"firstname": "<string>",
"lastname": "<string>"
},
"request_count": 123,
"email_verification": {
"emailAddress": "<string>",
"disposable": true,
"username": "<string>",
"domain": "<string>",
"dnsCheck": "<string>",
"syntexCheck": "<string>"
},
"name_verification": {
"firstname": {
"value": "<string>",
"prediction": "<string>",
"confidence": 123
},
"lastname": {
"value": "<string>",
"prediction": "<string>",
"confidence": 123
}
}
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"type": "<string>",
"loc": [
"<string>"
],
"msg": "<string>",
"input": {}
}
]
}Endpoint Examples
Verify User
Verify user information including email and name
POST
/
api
/
v1
cURL
curl --request POST \
--url https://api.vishodi.com/api/v1 \
--header 'Content-Type: application/json' \
--header 'X-API-Token: <api-key>' \
--data '
{
"model": "user_verification",
"email": "<string>",
"firstname": "<string>",
"lastname": "<string>"
}
'import requests
url = "https://api.vishodi.com/api/v1"
payload = {
"model": "user_verification",
"email": "<string>",
"firstname": "<string>",
"lastname": "<string>"
}
headers = {
"X-API-Token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'user_verification',
email: '<string>',
firstname: '<string>',
lastname: '<string>'
})
};
fetch('https://api.vishodi.com/api/v1', 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.vishodi.com/api/v1",
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([
'model' => 'user_verification',
'email' => '<string>',
'firstname' => '<string>',
'lastname' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Token: <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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.vishodi.com/api/v1"
payload := strings.NewReader("{\n \"model\": \"user_verification\",\n \"email\": \"<string>\",\n \"firstname\": \"<string>\",\n \"lastname\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Token", "<api-key>")
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.vishodi.com/api/v1")
.header("X-API-Token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"user_verification\",\n \"email\": \"<string>\",\n \"firstname\": \"<string>\",\n \"lastname\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vishodi.com/api/v1")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"user_verification\",\n \"email\": \"<string>\",\n \"firstname\": \"<string>\",\n \"lastname\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"status": "<string>",
"received_data": {
"model": "user_verification",
"email": "<string>",
"firstname": "<string>",
"lastname": "<string>"
},
"request_count": 123,
"email_verification": {
"emailAddress": "<string>",
"disposable": true,
"username": "<string>",
"domain": "<string>",
"dnsCheck": "<string>",
"syntexCheck": "<string>"
},
"name_verification": {
"firstname": {
"value": "<string>",
"prediction": "<string>",
"confidence": 123
},
"lastname": {
"value": "<string>",
"prediction": "<string>",
"confidence": 123
}
}
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"type": "<string>",
"loc": [
"<string>"
],
"msg": "<string>",
"input": {}
}
]
}Authorizations
Body
application/json
User information to verify
⌘I