Skip to main content

Python SDK

Installation

Biometric approval in one line

This is the whole pattern — drop it anywhere you need a human in the loop.
The single client.approve(...) call does three things under the hood: it initiates the CIBA request, sends the push notification to the user’s phone, and polls for the signed token. You never have to touch the two-step protocol directly.

Anywhere a scope fits

Register a tight scope per sensitive action — it shows up on the user’s phone and prevents a token issued for one action from being replayed against another.

Structured action details

For anything the user should see in detail — amounts, recipients, resources — pass action_details:

Checkout

For e-commerce checkouts, use the higher-level checkout_request — it wraps CIBA with checkout-specific fields:

Vault

Request access to a stored secret (triggers biometric approval):
See the encryption guide for the exact ciphertext flow.

Examples

API Reference

Full pdoc reference: SDK API Docs

Source

github.com/bkeyID/bkey/python