API reference · v1

Location Verify API

Ask a Horient user to confirm they are within a radius of a point. The user answers in the Horient app with one tap; you receive the outcome, the distance in meters and a trust score from 0 to 100. You never receive their coordinates.

Base URL:

textBase URL
https://gjxpulfkxhpoghcsklsx.supabase.co/functions/v1
The person you verify needs the Horient app (free on iPhone and Android). Your company never needs the app: create an account on the web and get your key from the dashboard.

Authentication

Every request carries your API key in the X-API-Key header. Keys start with hlv_ and are shown once, when you create or rotate them. Keep the key on your server: never ship it in a website or a mobile app.

curlHeader
X-API-Key: hlv_0123456789abcdef0123456789abcdef01234567

The flow

  • Connect once. POST /v1-connect with the customer's email or Horient username. They get one request in the app and choose Allow, Ignore or Block.
  • Check when you need to. POST /v1-proximity-create with a point, a radius and a reason. The customer gets a push and answers with one tap.
  • One answer per check. The request reaches every device signed in to the person's account; the first device to answer closes it.
  • Read the result. A signed webhook arrives at your URL, or poll GET /v1-proximity-status.
The API never says whether an email or username has a Horient account. A person who does not exist, has not answered, ignored you or blocked you all look the same: pending / not_connected.

Connect a customer

POST/v1-connect

Asks the person to allow your company. They see your company name and your message in the Horient app (Location Verify → Third parties) and get one push notification.

FieldTypeDescription
userrequiredstringThe customer’s email address, or their Horient username with or without @.
messagestringOptional, up to 200 characters. Shown with the request, for example “Pickup check for booking 4821”.
curlRequest
curl -X POST https://gjxpulfkxhpoghcsklsx.supabase.co/functions/v1/v1-connect \
  -H "X-API-Key: $HORIENT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "user": "kim@example.com", "message": "Pickup check for booking 4821" }'
jsonResponses
202  { "status": "pending" }     // sent, already waiting, or no such person
200  { "status": "connected" }   // the customer already allowed you

Sending again while a request is waiting does nothing (no second push). If the customer ignores you, you can ask again after 30 days. If they block you, your requests never reach them.

Connection status

GET/v1-connect?user={email or username}

curlRequest
curl "https://gjxpulfkxhpoghcsklsx.supabase.co/functions/v1/v1-connect?user=kim@example.com" \
  -H "X-API-Key: $HORIENT_API_KEY"
jsonResponse
200  { "status": "connected" }      // or "not_connected"

The customer can remove your company at any time, so a connection can turn back to not_connected.

Create a check

POST/v1-proximity-create

Only works for a customer who has allowed your company. Creating a new check for the same person replaces their open one.

FieldTypeDescription
userrequiredstringEmail or Horient username of a connected customer.
latrequirednumberLatitude of the point, −90 to 90.
lngrequirednumberLongitude of the point, −180 to 180.
radius_mrequiredintegerRadius in meters, 1 to 10,000. 50–200 m suits most handovers.
purposestringShown to the customer, for example “Vehicle pickup”.
expires_inintegerSeconds the customer has to answer, 30 to 300. Default 60.
min_trust_scoreinteger0 to 100. The result tells you whether the score met it (meets_min_score). Default 0.
curlRequest
curl -X POST https://gjxpulfkxhpoghcsklsx.supabase.co/functions/v1/v1-proximity-create \
  -H "X-API-Key: $HORIENT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "user": "kim@example.com",
    "lat": 47.6205, "lng": -122.3493,
    "radius_m": 100,
    "purpose": "Vehicle pickup",
    "expires_in": 120,
    "min_trust_score": 70
  }'
jsonResponse · 201
{
  "request_id": "7f3c2a9e-1b4d-4c8a-9e21-5d0f6b7a8c31",
  "expires_at": "2026-11-25T09:02:00.000Z",
  "status": "pending"
}

Check status

GET/v1-proximity-status?request_id={id}

Returns the current state of a check you created. Poll every few seconds until it leaves pending, or use a webhook instead.

jsonResponse · 200
{
  "request_id": "7f3c2a9e-1b4d-4c8a-9e21-5d0f6b7a8c31",
  "status": "approved",
  "trust_score": 94,
  "distance_m": 12,
  "verified_at": "2026-11-25T09:00:41.000Z",
  "meets_min_score": true,
  "expires_at": "2026-11-25T09:02:00.000Z"
}

trust_score, distance_m, verified_at and meets_min_score are null until the customer answers.

Webhooks

Set a webhook URL (https only) on your dashboard. When a customer answers, Horient POSTs the result there, up to 3 attempts (after 1 s and 2 s), 5 seconds per attempt. Answer with any 2xx status.

Webhooks are sent when the customer answers (approved or out_of_range). A declined or expired check sends none: read it with GET /v1-proximity-status.

jsonPayload
POST https://your-server.example/horient-webhook
Content-Type: application/json
X-HL-Signature: sha256=5b1f…e9a0
X-HL-Attempt: 1

{
  "event": "proximity.result",
  "request_id": "7f3c2a9e-1b4d-4c8a-9e21-5d0f6b7a8c31",
  "status": "approved",
  "trust_score": 94,
  "distance_m": 12,
  "meets_min_score": true,
  "verified_at": "2026-11-25T09:00:41.000Z",
  "flags": []
}

Verify the signature

X-HL-Signature is the HMAC-SHA256 of the raw request body, keyed with your webhook secret (shown once with your API key), in hex. Compare it in constant time before trusting the payload.

jsNode.js
import crypto from 'node:crypto';

function isFromHorient(rawBody, header, secret) {
  const expected = 'sha256=' + crypto.createHmac('sha256', secret).update(rawBody).digest('hex');
  const a = Buffer.from(expected), b = Buffer.from(header || '');
  return a.length === b.length && crypto.timingSafeEqual(a, b);
}

Trust score and flags

The score starts at 100. Each weak signal subtracts points and adds its name to flags (multi_device is listed but costs no points). Outside the radius the score is 0.

FlagMeaning
out_of_rangeFarther than the radius. Status out_of_range, score 0.
near_boundaryInside, but in the outer quarter of the radius.
gps_accuracyThe phone reported a weak or missing GPS accuracy.
speedMoving fast (over about 54 km/h; heavily over 180 km/h).
response_timeThe answer came unusually fast or slow.
ip_gps_countryThe network country differs from the GPS country (VPN or roaming). Network country from IP Geolocation by DB-IP (CC BY 4.0).
mock_providerA mock-location (fake GPS) app was detected.
speed_sanity, accel_variance, baro_altitudeMotion and pressure sensors disagree with the reported position.
multi_deviceMore than one device was active on the account in the last 30 days, so the answer may have come from a phone the person is not carrying. A warning only: it does not lower the score.
A check proves that a phone signed in to the person's account is at the spot, not that the person is. Every device on the account gets the request and the first answer counts. For handovers that matter (keys, equipment), treat the result as one signal and pair it with your usual ID check, especially when multi_device is set.

A threshold of 70 works for most handovers. Use min_trust_score to get meets_min_score back with every result.

Statuses

StatusMeaning
pendingWaiting for the customer.
approvedInside the radius. Check trust_score / meets_min_score.
out_of_rangeThe customer answered from outside the radius.
deniedThe customer declined, or blocked your company.
expiredNo answer before expires_at, or replaced by a newer check.

Errors

Errors return JSON: { "error": "…" }.

HTTPerrorWhat to do
400a field messageFix the request body or query.
401Missing X-API-Key header / Invalid API keySend a valid key. A rotated key stops working at once.
403not_connectedConnect the customer first (also returned for unknown people).
404Request not found or not owned by this API keyUse a request_id your key created.
429a limit messageWait, or email support for a higher limit.
500Internal errorRetry with backoff.

Limits

  • 100 checks per calendar month (UTC) on the free plan.
  • 100 connect requests per 24 hours per key (unknown people count too).
  • 10 checks per customer per 24 hours per key; one open check per customer.
  • Customers have 30 to 300 seconds to answer a check.

Need more? Email support@horient.app.

Managing your key

One key per account. On the dashboard you can see usage, set your webhook URL, and rotate the key. Rotating creates a new key and a new webhook secret; the old key stops working immediately.

Your company name is shown to customers. It can be up to 60 characters and cannot pose as Horient.