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:
https://gjxpulfkxhpoghcsklsx.supabase.co/functions/v1
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.
X-API-Key: hlv_0123456789abcdef0123456789abcdef01234567
The flow
- Connect once.
POST /v1-connectwith 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-createwith 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.
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.
| Field | Type | Description |
|---|---|---|
userrequired | string | The customer’s email address, or their Horient username with or without @. |
message | string | Optional, up to 200 characters. Shown with the request, for example “Pickup check for booking 4821”. |
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" }'202 { "status": "pending" } // sent, already waiting, or no such person
200 { "status": "connected" } // the customer already allowed youSending 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}
curl "https://gjxpulfkxhpoghcsklsx.supabase.co/functions/v1/v1-connect?user=kim@example.com" \ -H "X-API-Key: $HORIENT_API_KEY"
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.
| Field | Type | Description |
|---|---|---|
userrequired | string | Email or Horient username of a connected customer. |
latrequired | number | Latitude of the point, −90 to 90. |
lngrequired | number | Longitude of the point, −180 to 180. |
radius_mrequired | integer | Radius in meters, 1 to 10,000. 50–200 m suits most handovers. |
purpose | string | Shown to the customer, for example “Vehicle pickup”. |
expires_in | integer | Seconds the customer has to answer, 30 to 300. Default 60. |
min_trust_score | integer | 0 to 100. The result tells you whether the score met it (meets_min_score). Default 0. |
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
}'{
"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.
{
"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.
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.
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.
| Flag | Meaning |
|---|---|
out_of_range | Farther than the radius. Status out_of_range, score 0. |
near_boundary | Inside, but in the outer quarter of the radius. |
gps_accuracy | The phone reported a weak or missing GPS accuracy. |
speed | Moving fast (over about 54 km/h; heavily over 180 km/h). |
response_time | The answer came unusually fast or slow. |
ip_gps_country | The network country differs from the GPS country (VPN or roaming). Network country from IP Geolocation by DB-IP (CC BY 4.0). |
mock_provider | A mock-location (fake GPS) app was detected. |
speed_sanity, accel_variance, baro_altitude | Motion and pressure sensors disagree with the reported position. |
multi_device | More 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. |
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
| Status | Meaning |
|---|---|
| pending | Waiting for the customer. |
| approved | Inside the radius. Check trust_score / meets_min_score. |
| out_of_range | The customer answered from outside the radius. |
| denied | The customer declined, or blocked your company. |
| expired | No answer before expires_at, or replaced by a newer check. |
Errors
Errors return JSON: { "error": "…" }.
| HTTP | error | What to do |
|---|---|---|
| 400 | a field message | Fix the request body or query. |
| 401 | Missing X-API-Key header / Invalid API key | Send a valid key. A rotated key stops working at once. |
| 403 | not_connected | Connect the customer first (also returned for unknown people). |
| 404 | Request not found or not owned by this API key | Use a request_id your key created. |
| 429 | a limit message | Wait, or email support for a higher limit. |
| 500 | Internal error | Retry 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.