TrueHuman API

Get access to TrueHuman API:

API key is required to make the calls. If you don't have one, reach out to us via the form below and we will get back to you in less than 12 hours.

https://airtable.com/appUq7mIcGXuqDSCx/pagTHnvIw5fBIf227/form

Documentation

// Install axios library by running "yarn add axios" in the terminal
// Then import the axios library
import axios from "axios"

// Add the users' address here
const address = "..."

// Add your API Key in the ENV & add it here
const apikey = process.env.TRUEHUMAN_API_KEY

// Set the URL
const url = `https://api.truehuman.xyz`+`/v1?apiKey=${apiKey}&address=${address}`

// Call the API
try {
        const res = await axios.get(url)
        console.log(res)
} catch (error) {
        console.log(error)
        }

Response

// exmaple resonse

{
    isTruehuman: False
    isFarmer: True
    isSybil: False
    linkedAccounts: [array]
    uniqueUserId: '6649...a9d'
    status:200
}

Last updated