Your first call in 5 minutes
Make a sandbox key and list your merchants.
5 minScope: readWhat you get
- A key in your sandbox, kept out of your code.
- A first
200answer fromGET /merchants. - The three errors a new key usually hits, and what each means.
Open your sandbox
Kvali gives you a sandbox: a test copy of your organisation, named "<your company> (sandbox)". Switch to it from the organisation menu. It works like production (real reviews, real webhooks), is never billed and never emails a merchant.
Create a key
In the sandbox, an owner or admin opens Settings → API → Create key. Choose the scope
readfor this recipe. The key is shown once: put it in an environment variable, never in code.export KVALI_KEY="kv_live_…" # the key you just copiedList one merchant
Ask for one merchant. A
200with adatalist (empty is fine in a new sandbox) means the key works.curl "https://aikvali.com/api/v1/merchants?limit=1" \ -H "Authorization: Bearer $KVALI_KEY"const res = await fetch("https://aikvali.com/api/v1/merchants?limit=1", { headers: { Authorization: `Bearer ${process.env.KVALI_KEY}` }, }); if (!res.ok) throw new Error((await res.json()).error.message); const { data } = await res.json();import os import requests res = requests.get( "https://aikvali.com/api/v1/merchants?limit=1", headers={"Authorization": f"Bearer {os.environ['KVALI_KEY']}"}, timeout=30, ) if not res.ok: raise RuntimeError(res.json()["error"]["message"]) data = res.json()["data"]{ "data": [ { "id": "3f0c2a52-6a1e-4c1b-9d55-2f7f5b1e9a10", "created_at": "2026-10-22T09:30:00Z", "legal_name": "Shop LLC", "trade_name": "Shop", "country": "GE", "registry_id": "405000000", "declared_mcc": "5732", "risk_tier": "standard", "status": "live", "external_ref": "CRM-1234", "tags": [ "electronics" ], "first_transaction_on": "2026-09-01", "mids": [ "MID-0001" ], "billing_descriptor": "SHOP.GE TBILISI", "descriptor_contact": "+995 32 200 00 00", "websites": [ "https://shop.ge/" ], "health": { "verdict": "attention", "reasons": [ { "code": "website_changes", "level": "attention", "count": 2, "severity": "high", "alert_kind": "watchlist", "checked_days": 25, "due_days": 30 } ], "incomplete": false }, "open_items": 2, "schedule": { "risk_tier": "standard", "custom": false, "daily_check": { "value": true, "source": "tier_default", "tier_value": true }, "browser_check_days": { "value": 7, "source": "tier_default", "tier_value": 7 }, "rereview_days": { "value": 365, "source": "tier_default", "tier_value": 365 }, "cdd_months": { "value": 12, "source": "tier_default", "tier_value": 12 }, "next_check": { "status": "scheduled", "at": "2026-10-22T09:30:00Z" }, "next_rereview_at": "2026-10-22T09:30:00Z", "next_cdd_at": "2026-10-22T09:30:00Z" }, "screening": { "status": "no_match", "last_screened_at": "2026-10-22T09:30:00Z", "provider": "dilisense", "names": 3, "names_not_screened": 0, "possible_matches": 0, "confirmed_matches": 0, "pep_edd": 0, "legal_entity_from_website": false, "last_problem": null }, "website_company": { "legal_name": "შპს ორგსერვისი", "registry_id": "205254892", "address": "Rustaveli Ave 12, Tbilisi", "country": "Georgia", "review_id": "3f0c2a52-6a1e-4c1b-9d55-2f7f5b1e9a10", "confirmed": null } } ], "next_before": null }If it fails
Every error has the same shape: a stable
codeand amessagefor a person.401 unauthorized: the key is missing, mistyped or revoked.403 forbidden_scope: the key's scope doesn't cover the call.403 ip_not_allowed: the key is locked to other network addresses.{ "error": { "code": "unauthorized", "message": "Send your API key as: Authorization: Bearer kv_live_…" } }