Python SDK

The kita package.

pip install kita
import os
from kita import KitaClient
 
client = KitaClient(api_key=os.environ["KITA_API_KEY"])
 
document = client.documents.upload(
    "statement.pdf",
    document_type="bank_statement",
)
 
result = client.documents.wait_for(document.id)
print(result.status)

The SDK wraps the same REST surface documented here, including polling helpers so you do not have to write the loop yourself. Error codes surface as typed exceptions carrying the error code from Error handling.