• GuideBreaking change in 2.0.0: the tax ID is required
  • GuideAccess
  • GuideKey scopes
  • GuideLocking a key to your network addresses
  • GuideErrors
  • GuideRate limits
  • GuideSafe retries (Idempotency-Key)
  • GuidePages
  • GuideWebhooks
  • GuideCheck the signature
  • GuideA receiver to start from
  • GuideSandbox
  • RecipeYour first call in 5 minutesMake a sandbox key and list your merchants.
  • RecipeStart a review and wait for review.readyStart a website review, get told when it is done, read the findings and download the report.
  • RecipeVerify webhook signaturesProve a delivery came from Kvali, answer fast and handle retries once.
  • RecipeSend a merchant's documentsUpload a registration certificate or bank letter in two steps.
  • RecipeMonitoring: checks, changes, alerts, violationsLearn what monitoring found about your live merchants, without missing or repeating a row.
  • RecipeRetries, idempotency, pages and rate limitsA small client that retries safely, pages through lists and stays under the limit.
  • RecipeLock a key to your network addressesMake a stolen key useless outside your own network.
  • RecipeFrom sandbox to liveThe checks to pass in the sandbox, then the switch to production keys.

↑ ↓ to move · Enter to open · Esc to close

Your first call in 5 minutes

Make a sandbox key and list your merchants.

5 minScope: read

What you get

  • A key in your sandbox, kept out of your code.
  • A first 200 answer from GET /merchants.
  • The three errors a new key usually hits, and what each means.
  1. 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.

  2. Create a key

    In the sandbox, an owner or admin opens Settings → API → Create key. Choose the scope read for this recipe. The key is shown once: put it in an environment variable, never in code.

    Code
    export KVALI_KEY="kv_live_…"   # the key you just copied
  3. List one merchant

    Ask for one merchant. A 200 with a data list (empty is fine in a new sandbox) means the key works.

    Request and answer
    curl "https://aikvali.com/api/v1/merchants?limit=1" \
      -H "Authorization: Bearer $KVALI_KEY"
  4. If it fails

    Every error has the same shape: a stable code and a message for 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.

    Code
    {
      "error": {
        "code": "unauthorized",
        "message": "Send your API key as: Authorization: Bearer kv_live_…"
      }
    }