Integration Guide

Add personhood verification to your survey in 15 minutes. Free for pilot partners.

1. Get an API Key

Email chonghao@hawltechs.com with:

  • Your company name
  • Estimated monthly verifications
  • When you want to start

You'll receive a key like hum_live_xxxxxxxxxxxxxxxx. Pilot keys are free for 2 weeks and include 1,000 verifications.

2. How It Works

1

Request a challenge

POST /api/verify/challenge
2

User does liveness (face blink / head turn)

In-browser, no video sent to server

3

Submit for verification

POST /api/verify
4

Get result: verified + unique

Duplicate check across all users

3. Face Verification

Step 1: Request a challenge

curl -X POST https://humanity.hawltechs.com/api/verify/challenge \
  -H "x-api-key: hum_live_YOUR_KEY"

# Response:
# {
#   "challenge_id": "abc-123",
#   "action": "blink_twice",
#   "expires_in": 30
# }

Step 2: User completes liveness

Redirect users to our hosted verification page with your API key in the URL. Verifications are attributed to your pilot account automatically:

https://humanity.hawltechs.com/verify/face?api_key=hum_live_YOUR_KEY

For server-side integrations, pass x-api-key on every API call instead.

Step 3: Verify result (server-side)

curl -X POST https://humanity.hawltechs.com/api/verify \
  -H "Content-Type: application/json" \
  -H "x-api-key: hum_live_YOUR_KEY" \
  -d '{
    "embedding": [0.12, 0.34, ...128 numbers],
    "challenge_id": "abc-123",
    "action_results": { "blink_twice": true }
  }'

# Response:
# {
#   "liveness_passed": true,
#   "is_duplicate": false,
#   "user_id": "uuid-here",
#   "similarity_score": 0.0
# }

4. Typing Verification (Alternative)

No camera required. Users type a sentence; we analyze their rhythm.

curl -X POST https://humanity.hawltechs.com/api/verify/typing \
  -H "Content-Type: application/json" \
  -H "x-api-key: hum_live_YOUR_KEY" \
  -d '{
    "passed": true,
    "wpm": 42,
    "iki_variance": 3400,
    "paste_detected": false,
    "duration_ms": 8500
  }'

Or link users to the hosted typing page:

https://humanity.hawltechs.com/verify/typing?api_key=hum_live_YOUR_KEY

5. View Your Dashboard

Track verifications, fraud detection rates, and recent activity:

https://humanity.hawltechs.com/dashboard?key=hum_live_YOUR_KEY

Go to Dashboard →

6. Pricing

Pilot

Free

  • 2 weeks
  • 1,000 verifications
  • Full API + dashboard
  • Email support

Enterprise

Custom

  • Unlimited verifications
  • On-premise option
  • SLA + dedicated support
  • Custom integration

7. FAQ

Do you store face photos?

No. Raw webcam frames are processed in the browser only. We store a 128-dimensional embedding vector — a mathematical representation that cannot be reverse-engineered into a face.

Does this work on mobile?

Yes. The face verification uses the front-facing camera via MediaPipe, which works on all modern mobile browsers.

What about accessibility?

Typing verification is an alternative for users who cannot use a camera. Both methods score based on human behavior, not identity.

How does the challenge prevent bots?

Each verification requires a server-issued challenge (a random action like "blink twice" or "turn your head"). The challenge expires in 30 seconds, can only be used once, and is bound to the client's IP address.

Ready to start?

Get Your API Key