Essentials
Python SDK
Using the Kodexa Python SDK
Kodexa Python SDK Quick Start Guide
This guide will help you set up your environment and start using the Kodexa Python SDK to interact with Kodexa’s documents and platform features.
Prerequisites
Install Python 3.11
- Download Python 3.11 from python.org/downloads
- Run the installer
- Important: Check “Add Python 3.11 to PATH” during installation
Environment Setup
Create a Virtual Environment
Install the Kodexa SDK
Authentication
Generate an API Token
- Log in to kodexa.platform.ai
- Click your profile picture → Profile
- Navigate to “API Tokens” tab
- Click “New Access Token”
- Enter a name and click “Generate New Access Token”
- Copy the token immediately (it will only be shown once)
Your First Script
Create a file named kodexa_script.py
:
Run Your Script
Best Practices
- Store credentials as environment variables instead of hardcoding them
- Keep your virtual environment activated while working with Kodexa
- Replace the example URL and token with your actual values