Skip to main content

Official Python SDK for the Kora IDV identity verification API

Project description

Kora IDV Python SDK

Official Python SDK for the Kora IDV identity verification API. Zero runtime dependencies — built on Python's standard library.

Installation

pip install koraidv

Requires Python 3.10+.

Quick start

from koraidv import KoraIDVClient, VerificationTier

client = KoraIDVClient(
    api_key="kora_sandbox_xxxxx",
    tenant_id="your-tenant-uuid",
)

# Create a verification — the client SDK will use this externalId to launch
# the mobile or web flow on the user's device.
verification = client.create_verification(
    external_id="user-42",
    tier=VerificationTier.STANDARD,
)
print(verification.id, verification.status)

# Poll or fetch by ID
fetched = client.get_verification(verification.id)
print(fetched.scores.overall)

Webhooks

Verify the HMAC-SHA256 signature on every event your endpoint receives:

from koraidv import verify_webhook_signature, parse_webhook_payload

def handle_webhook(request):
    body = request.body  # raw bytes
    signature = request.headers["X-Korastratum-Signature"]

    if not verify_webhook_signature(body, signature, secret="whsec_xxx"):
        return 401

    event = parse_webhook_payload(body)
    if event.event_type == "verification.completed":
        process_verification(event.data)
    return 200

Documentation

Full API reference and integration guides at docs.korastratum.com/idv.

Other Kora IDV SDKs:

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

koraidv-1.5.0.tar.gz (16.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

koraidv-1.5.0-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file koraidv-1.5.0.tar.gz.

File metadata

  • Download URL: koraidv-1.5.0.tar.gz
  • Upload date:
  • Size: 16.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for koraidv-1.5.0.tar.gz
Algorithm Hash digest
SHA256 da9aa0d4d1a0c7949061e6748222f5a25e4aa9db502292de2bcf4ec1abfbe294
MD5 5cebab2b6c44e6c292ed13bc45bd358d
BLAKE2b-256 387bd7b6eeb901872faa1f11eea7a9b9bf0ca2515c48cf99edc205e385fde8ab

See more details on using hashes here.

File details

Details for the file koraidv-1.5.0-py3-none-any.whl.

File metadata

  • Download URL: koraidv-1.5.0-py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for koraidv-1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c6fda64158ed300b789dc2340a591d122f3ea1795ca3c8bb0a5dd857a68361de
MD5 b0797a2b17089c8f35f3bf1f0da0acea
BLAKE2b-256 ac4e668575601ecd289cedbeebb9a8b0cefea9c856dda66b89df30f7c5743d5f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page