Skip to content

GuidesDetect

Switch from Bynn

Move a client of Bynn’s document API to Kontiga by changing its base URL to https://api.kontiga.com/compat and its key. The paths, parameters, answers, errors and webhooks stay as they are.

Updated

Ask about this pageRead this page as Markdown

Before you start

  • A Kontiga workspace and a secret key, made in the console under Developers, Keys. Make a test key too, to try the switch without being billed.
  • Your client’s settings for Bynn’s base URL and private key.
  1. Add your webhook address

    In the console, add a webhook endpoint in the compatible format with your existing address. It takes document.analyzed, document.rejected and document.monitoring_event, all three ticked, sent exactly as Bynn sends them.

  2. Change the base URL and the key

    Set the base URL to https://api.kontiga.com/compat and the key to your Kontiga secret key. Nothing else in your code changes: the key is still sent as the Basic user name or as a Bearer token.

    Settings
    # before
    BYNN_BASE_URL=https://api.bynn.com
    BYNN_PRIVATE_KEY=private_...
    
    # after
    BYNN_BASE_URL=https://api.kontiga.com/compat
    BYNN_PRIVATE_KEY=kt_live_...
  3. Fetch Kontiga's public key once

    If your code verifies X-Bynn-Signature or the body’s jwt with a key it stored, fetch Kontiga’s key once and store it instead. Code that fetches the key from its base URL needs no change.

    curl
    curl https://api.kontiga.com/compat/v1/webhooks/public_key
  4. Try it with the test key

    Send a document with the test key and follow it to analyzed, as you do today. Then switch to the live key.

The same call, before and after

curl https://api.bynn.com/v1/documents \
  -u "$BYNN_PRIVATE_KEY:" \
  -F file=@invoice-0312.pdf \
  -F reference_id=claim-2026-1042

The Bynn-compatible API page lists every call, error and limit, and the few things that differ from Bynn.