Skip to main content
AgentiSend AgentiSend

agentisend (Python)

Official Python SDK for the AgentiSend API. Standard library only — zero dependencies, Python 3.11+.

Install

pip install agentisend

The source is public at https://github.com/fortuneflick/agentisend-python.

Quickstart

from agentisend import AgentiSend, idempotency_key

client = AgentiSend()  # reads AGENTISEND_API_KEY and AGENTISEND_BASE_URL

sent = client.send_email(
    {"from": "you@yourdomain.com", "to": "them@example.com",
     "subject": "Hello", "text": "First send."},
    idempotency=idempotency_key("welcome-email", "user_123"),
)
print(sent["id"])

email = client.get_email(sent["id"])
print(email["status"])  # queued -> sent -> delivered ...

Errors name the fix

Every 4xx/5xx raises AgentiSendError carrying code, message, fix, docs_url, status, retry_after_seconds (from Retry-After when present) and request_id. A response that is not the documented envelope raises AgentiSendTransportError.

Surface

emails (send_email, send_email_batch, get_email, list_emails, list_email_events) · api keys (+ rotate_api_key) · domains (+ verify, wait_for_domain) · webhooks (+ replay, dead letters, list_webhook_deliveries, rotate_webhook_secret) · limits (+ per-key kill, kill_all) · trust standing, and the rest of the API.

Parity is pinned by CI: every method and path in the committed openapi.json that an API key may call has a client method, matched on the full path. The few a key is refused (resuming a kill switch, approving a held send, billing, team membership) are a person's, in the console. packages/sdk-python/quickstart.py is run by the test suite against a local AgentiSend server in pnpm test.

Tests

python3 -m unittest discover -s packages/sdk-python/tests

Metadata

Release files for agentisend 0.1.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 agentisend 0.1.0
File Size Uploaded
agentisend-0.1.0.tar.gz 22.8 kB Details

Built distribution (wheel)

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

Total release size: 41.0 kB

Release files / agentisend-0.1.0.tar.gz

Download URL agentisend-0.1.0.tar.gz
Size 22.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b10e1d2c801172f0cb2e2190ccd0f59d1543a7dbbb7ca19b7b85efc9c6ea7975
BLAKE2b-256 checksum
How to use checksums
adfbc9a88c5ce0369bf60fe817d61ff994861537a845132f53989afde5bc0508
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.3

Release files / agentisend-0.1.0-py3-none-any.whl

Download URL agentisend-0.1.0-py3-none-any.whl
Size 18.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1ed4df025a5ccdc9db3aae0a03bd227a55bfcbcbd682cbba19330d331b0a978e
BLAKE2b-256 checksum
How to use checksums
ec5cd2de3139e3d74e256f790ac33f06a165ac99d72f60bf99f3daa9aae70f33
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.3

Release history Release notifications | RSS feed

This release

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