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.1

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.1
File Size Uploaded
send0-0.2.1.tar.gz 92.1 kB Details

Built distribution (wheel)

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

Total release size: 113.0 kB

Release files / send0-0.2.1.tar.gz

Download URL send0-0.2.1.tar.gz
Size 92.1 kB
Tags Source
SHA-256 checksum
How to use checksums
367d6dc5aca92ae6db37de310bd24b7f7de05b41a95e5aa72326eb62eab1aa1c
BLAKE2b-256 checksum
How to use checksums
43abc7c8a61dd66ec032a47aa8d3703957c34b69c548538903f38362f405a8a3
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 13, 2026.

Transparency log

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

Download URL send0-0.2.1-py3-none-any.whl
Size 20.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a53d1c64c3c8eb6e411a30e410462db9f8748fddb71273af0be12a4c8263f384
BLAKE2b-256 checksum
How to use checksums
9f9b0c4fa6524692544b01056896d70341d77a6c67135fc2648cc06d544e2a30
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 13, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

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