Manual Fetching
If you have custom needs or can't use our JavaScript SDK, you'll need to manually fetch from our API using your own tech stack. This is still no big deal.
Each programming language and library has different methods for fetching data. We'll demonstrate the parameters needed to successfully verify a user from our API, accompanied by relevant examples.
Replace
<API_KEY>with your real API key. Check our introduction page for help on getting it.
POST /v1/verify HTTP/1.1
Authorization: Bearer <API_KEY>
Content-Length: 90
Content-Type: application/json
Host: guardient-api.jrcooler.workers.dev
User-Agent: HTTPie
{
"email": "mehmetuzun.veryreal@gmail.com",
"ip": "1.2.3.4",
"phone": "2983789123"
}curl -X POST \
https://guardient-api.jrcooler.workers.dev/v1/verify \
-H 'Authorization: Bearer <API_KEY>' \
-H 'Content-Type: application/json' \
-H 'Host: guardient-api.jrcooler.workers.dev' \
-H 'User-Agent: HTTPie' \
-d '{
"email": "mehmetuzun.veryreal@gmail.com",
"ip": "1.2.3.4",
"phone": "2983789123"
}'async function verifyUser(email, ip, phone) {
const response = await fetch(
"https://guardient-api.jrcooler.workers.dev/v1/verify",
{
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer <API_KEY>`,
},
body: JSON.stringify({
email: email,
ip: ip,
phone: phone,
}),
}
)
// You can handle the response as needed...
}import requests
import json
def verify_user(email, ip, phone):
url = "https://guardient-api.jrcooler.workers.dev/v1/verify"
headers = {
"Content-Type": "application/json",
"Authorization": f"Bearer <API_KEY>",
}
data = {
"email": email,
"ip": ip,
"phone": phone,
}
response = requests.post(url, headers=headers, data=json.dumps(data))
# You can handle the response as needed...Last updated
Was this helpful?

