SDKs
The Python and TypeScript SDKs, published as extralt on PyPI and npm, wrap
the API with typed methods, safe retries, and idempotency keys. This page
covers what they do with the current API: installing and configuring a client,
managing webhooks, and verifying webhook deliveries. For Stores, Runs,
Schedules, Imports, PDPs, and Explore, use the HTTP examples in these guides
and the API reference.
Install
Create a client
Both clients read the API key from the EXTRALT_API_KEY environment variable.
Python also has AsyncExtralt, with the same methods as coroutines and async
iterators.
Errors and retries
API errors raise a typed error per status, such as NotFoundError,
RateLimitError, or ConflictError, carrying the code, message, and
request ID of the error envelope. Include the request
ID when contacting support.
Connection errors, 408, 429, and 5xx responses are retried with
exponential backoff and jitter, honoring Retry-After, but only for operations
that are safe to repeat. Create requests send an Idempotency-Key that every
retry reuses, so a retried request never creates a second resource. Pass your
own key to retry the same logical request across processes.
Webhooks
client.webhooks manages endpoints with create, list, get, delete, and
test. verify_webhook in Python and verifyWebhook in TypeScript check a webhook
delivery's signature and timestamp, then return the event typed by its type:
for a run.completed event, data is the Run. An event type your SDK version
doesn't know yet comes back untyped: ignore the types you don't handle. Pass
the raw request body, before any JSON parsing. Webhooks
shows a handler in both languages.
Configuration
To go through a proxy or trust custom certificates, pass your own HTTP client:
an httpx.Client as http_client in Python, your own fetch in TypeScript.
Responses are read without strict validation: fields the API adds within v1
stay available instead of breaking older SDK versions. Set EXTRALT_LOG=info
to log each job's progress and every retry, or debug to add every response. In Python, the
extralt logger takes your logging configuration; in TypeScript, the logLevel
and logger options do. API keys are never logged.