This is the primary guide for working with the Indox Python client and the Indox APIs (Auth, Docs/Media).
Install
Code
- Python 3.9+
- An Indox API key to convert anything to anything!
Configure
Set env vars (or pass directly):
INDOX_API_KEY(required)INDOX_DOCS_URL(defaulthttps://indox.org/docs)INDOX_MEDIA_URL(defaulthttps://indox.org/media)- Optional:
timeoutwhen creating the client (single number or tuple(connect, read)).
Quick Start
Code
Common Tasks
Assume client = IndoxClient.from_env().
Convert a document (upload)
Code
Convert a document (URL or S3 key)
Code
Convert an image
Code
Convert a video
Code
Wait for completion
Code
Download a converted file
Code
Close the client
Code
Errors
IndoxClientError: network/request issuesIndoxHTTPError: non-success HTTP; includesstatus,payload, andrequest_id(log this for support)
Example:
Code
API References
- Auth API spec:
/api/indox-auth(sidebar) - Service behavior & endpoints: see Indox Services in the docs sidebar.
To expose more API specs, add files to apis/ and update zudoku.config.tsx.
Storage & Downloads
- Downloads are served via masked routes; direct storage URLs are not exposed.
- Storage usage/limits are returned by Auth (
/meor token introspection); enforce in your app if needed.
Troubleshooting
- 401/403: Check
INDOX_API_KEY, base URLs, token scope. - Timeouts: bump
timeout; verify file size and endpoint. - Offline build: set
ZUDOKU_DISABLE_UPDATE_CHECK=1.
Last modified on