ClawAIMail SDK - Email inbox API for AI agents
Project description
ClawAIMail Python SDK
Email infrastructure for AI agents. Give your AI a real email address.
Install
pip install clawaimail
Quick Start
from clawaimail import ClawAIMail
mail = ClawAIMail(api_key="pb_your_api_key")
# Create an inbox
inbox = mail.create_inbox(username="mybot")
print(inbox["address"]) # mybot@clawaimail.com
# Send an email
mail.send_message(
inbox_id=inbox["id"],
to="user@example.com",
subject="Hello from AI",
text="This email was sent by an AI agent!"
)
# Read messages
messages = mail.list_messages(inbox["id"])
for msg in messages:
print(f"{msg['from_address']}: {msg['subject']}")
# Search
results = mail.search_messages(inbox["id"], "invoice")
All Methods
| Method | Description |
|---|---|
me() |
Get account info |
create_inbox(username) |
Create email inbox |
list_inboxes() |
List all inboxes |
delete_inbox(id) |
Delete inbox |
list_messages(inbox_id) |
List messages |
get_message(inbox_id, msg_id) |
Read a message |
send_message(...) |
Send an email |
search_messages(inbox_id, q) |
Search emails |
list_threads(inbox_id) |
List threads |
create_label(name, color) |
Create label |
create_webhook(url, events) |
Create webhook |
add_domain(domain) |
Add custom domain |
Links
- Website: https://clawaimail.com
- API Docs: https://clawaimail.com/docs
- Node.js SDK: https://npmjs.com/package/clawaimail
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
clawaimail-0.1.0.tar.gz
(3.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file clawaimail-0.1.0.tar.gz.
File metadata
- Download URL: clawaimail-0.1.0.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f92c1723ec4f5071ef2f23128afce8a68d18546107d8994749fc7fd7b7d2696f
|
|
| MD5 |
8b6b73458959a59808186858daed3262
|
|
| BLAKE2b-256 |
221a4b50e158c7d07072e82db7ceb647771becf76d8c57733bdea4082067c46d
|
File details
Details for the file clawaimail-0.1.0-py3-none-any.whl.
File metadata
- Download URL: clawaimail-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f6b0a2090911f1f9ee299a350c001b5d258eb64bb5eab950b3e8d59d9c69eff
|
|
| MD5 |
e6f596a084ec01b8882ca9274d7c509c
|
|
| BLAKE2b-256 |
b2ef5e95ce408c88757bab827cbee70fc7daea197893a883d160dc5162af3e91
|