Python examples

Python examples

Four short scripts you can adapt.

These scripts call the REST API from Python. Each one is short, reads its secrets from environment variables and does one job.

ExampleWhat it does
Authorization with a dashboard tokenCall the API with a permanent API token created in the dashboard.
Authorization via JWTSign in with an email and a password and call the API with the user token.
Script for parsing KYC sessionsExport sessions page by page with a date window.
Downloading session imagesSave the images of one session to disk.

Which token to use

A permanent API token is passed in the token field of the request body and suits server-to-server calls. A user token comes from user authorization and is passed in the token header. See authentication for the rules.

Samples use placeholders only. Replace them with your own values, and never publish a real token.

Questions while integrating?

Write to us with the details and we will help.

Talk to us