Skip to main content

Python SDK

Status: code exists in sdk/python, but public package publishing is not done yet.

Current package name in repo metadata is mailbot-sdk.

Example local install:

cd sdk/python
pip install -e .
from mailbot import MailBot

client = MailBot(api_key="mb_xxx")
client.inboxes.create(username="support-bot")

LangChain Companion Package

If you are building an agent instead of calling the SDK directly, use the published mailbot-langchain package:

pip install mailbot-langchain langchain langchain-openai
from mailbot_langchain import MailBotToolkit

toolkit = MailBotToolkit(api_key="mb_xxx")
tools = toolkit.get_tools()

MailBotToolkit defaults to https://getmail.bot/v1 and exposes the production mailbot operations as LangChain tools.