Skip to main content

send0

The official Python SDK for send0: email inboxes for AI agents.

Sync and async clients, typed models, Python 3.10+.

pip install send0

Give an agent an inbox and read the verification code

from send0 import Send0

send0 = Send0()  # reads SEND0_API_KEY

inbox = send0.inboxes.create(name="signup-agent")
print(inbox.address)  # signup-agent@send0.email

browser.fill("#email", inbox.address)
browser.click("Create account")

# Blocks until the email lands, then returns it with the code already extracted.
msg = send0.inboxes.wait(inbox.id, from_="*@github.com", timeout=60)
print(msg.extracted.otp)          # "482913"
print(msg.extracted.action_link)  # "https://github.com/verify?..."

from_ has a trailing underscore because from is a Python keyword. On message objects the sender is msg.from_ too.

Reply in the same thread

from send0 import is_draft

reply = send0.messages.reply(msg.id, text="Thanks, confirmed.")
if is_draft(reply):
    print("waiting for approval:", reply.id)

Async

from send0 import AsyncSend0

async with AsyncSend0() as send0:
    inbox = await send0.inboxes.create(name="async-agent")
    msg = await send0.inboxes.wait(inbox.id, timeout=60)
    async for m in await send0.messages.list(inbox.id, q="invoice"):
        print(m.subject, m.extracted_text)

Read, search, stream

for m in send0.messages.list(inbox.id, from_="*@acme.com", q='"purchase order"'):
    print(m.subject, m.extracted_text)  # new text, without quoted history

thread = send0.threads.get(inbox.id, msg.thread_id)  # messages oldest first

for event in send0.events.stream(inbox_id=inbox.id):  # reconnects and resumes on its own
    print(event.type, event.data["subject"])

Lists return a Page. Iterating it walks every page automatically.

Webhooks

from send0 import verify_webhook

hook = send0.webhooks.create(url="https://example.com/hooks/send0", events=["message.received"])
# store hook.secret. It's shown once.

# In your handler, with the raw body:
if not verify_webhook(request.body, request.headers.get("send0-signature"), SECRET):
    return 400

Errors and retries

Failures raise Send0Error with status, code (for example recipient_not_allowed or daily_limit_reached), message and request_id. Network errors, 429 and 5xx are retried twice with backoff. Every POST carries an Idempotency-Key that stays the same across retries, so a send never goes out twice.

send0 = Send0(api_key="s0_live_…", max_retries=3, timeout=30)

Full docs: https://send0.dev/docs

License

MIT

Metadata

Release files for send0 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for send0 0.2.0
File Size Uploaded
send0-0.2.0.tar.gz 91.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for send0 0.2.0
File Interpreter ABI Platform
send0-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 112.4 kB

Release files / send0-0.2.0.tar.gz

Download URL send0-0.2.0.tar.gz
Size 91.8 kB
Tags Source
SHA-256 checksum
How to use checksums
61500d5bf8762bba8a27f1fa3cb3ee303dd5a82ca99358424b516bf03f899dd6
BLAKE2b-256 checksum
How to use checksums
79b32aaef52d9daf9e7f20d415c15bb593e7b9593cb86a393406c204c32ab0b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 9, 2026.

Transparency log

Release files / send0-0.2.0-py3-none-any.whl

Download URL send0-0.2.0-py3-none-any.whl
Size 20.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
42f0aafab9f674d829665c53cd3b0529ac83646000b5baa775d492b58c61bf31
BLAKE2b-256 checksum
How to use checksums
5b536743892471c4dbcb37a89055ea5b30d98072e87dee52beadc6d5f10c1b92
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 9, 2026.

Transparency log

Release history Release notifications | RSS feed

0.2.1

2 release files

This release

0.2.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page