POMA SDK Authentication
The SDK reads your account API key from POMA_API_KEY. You provision that key once in the POMA Console — no curl, no JWT bootstrap, no API calls. The Console is the source of truth for everything around the products: account, organisations, projects, plan, and keys.
Generate an API key in the Console
- Open the POMA Console and sign in (or create a free account — 1,000 pages of trial ingestion, no card required).
- Go to Account.
- In the API Key card on the right, click Generate API key. Copy the value — it's shown once.

The Console is also where you upgrade your plan, rename your username, and see your role — all in this same view.
Need to call
/generateApiKeydirectly from a script (CI, automation, multi-account provisioning)? The raw HTTP flow lives in the POMA API v3 reference. The docs here intentionally don't duplicate it — the Console is the supported path for human-operated account setup.
Wire it into the SDK
export POMA_API_KEY="poma_acc_…"setx POMA_API_KEY "poma_acc_…"On Windows, open a new terminal after running setx.
The SDK picks the env var up automatically:
from poma import PrimeCut
client = PrimeCut() # reads POMA_API_KEYYou can also pass the key explicitly if you'd rather not use an env var:
client = PrimeCut(api_key="poma_acc_…")Optional environment variables
The SDK also respects API_BASE_URL for pointing the client at a non-default POMA API base URL (on-prem, staging). Most users never need to set it.
Lost the key?
Open the Console → Account → API Key card → Generate API key again. The new key takes effect immediately; the old one stops working.