Python SDK
Full API reference forzerodrop — the ZeroDrop Python SDK.
Installation
ZeroDrop class
Parameters
Without an API key, ZeroDrop runs in free sandbox mode with a shared domain and 30-minute TTL.
generate_inbox()
wait_for_latest()
ZeroDropTimeoutError if no email arrives within the timeout.
Parameters
fetch_latest()
None if the inbox is empty or no email matches the filter.
Email Filtering
Filter emails by sender, subject, body, or extracted fields. Useful when multiple emails land in the same inbox.ZeroDropEmail type
otp
4-8 digit numeric code extracted from the email body. Detected near labels likecode, otp, pin, verification. None if not detected.
magic_link
Verification or reset URL extracted from the email body. Detected for URLs containingverify, confirm, reset, token, activate, or auth. None if not detected.
ZeroDropFilter type
Error types
ZeroDropTimeoutError
Raised when no email arrives within the timeout.ZeroDropNetworkError
Raised when the API is unreachable. Includes a link to the status page.ZeroDropAuthError
Raised when an invalid API key is provided.pytest example
Parallel test runs
generate_inbox() runs locally — no network request, no throttling:
Free vs Workspace
Get a Workspace at zerodrop.dev/pricing
Zero telemetry
The SDK does not send analytics, usage metrics, or environment data to any server. The only network requests made are explicit inbox polls tozerodrop.dev/api/inbox/{name}.
Your CI pipeline is your business.