• 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

Lock a key to your network addresses

Make a stolen key useless outside your own network.

10 minAny key

What you get

  • A key that only works from your organisation's outgoing addresses.
  • A clear error, naming the address, when a call comes from elsewhere.
  1. Find your outgoing addresses

    Your IT knows the public addresses your servers call out from. Not sure? In the sandbox, lock a test key to any address and call once: the 403 ip_not_allowed message names the address Kvali saw.

  2. Lock the key

    In Settings → API, an owner or admin edits the key's network addresses: single addresses (203.0.113.7) or ranges (203.0.113.0/24, 2001:db8::/48), up to 20. The change needs a fresh authenticator code and is in your audit log. A key with no addresses works from anywhere.

  3. Check it

    From your server, any call works as before. From another address the same call answers 403 ip_not_allowed.

    Request, and the answer from elsewhere
    curl "https://aikvali.com/api/v1/merchants?limit=1" \
      -H "Authorization: Bearer $KVALI_KEY"
  4. Remember the upload host

    Document uploads (upload_url of POST /merchants/{id}/documents/uploads) go to Kvali's file storage host, not to the API. If your firewall only lets known hosts out, allow that host too.