Skip to content

agentinbox-in/agentinbox-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AgentInbox Python SDK

Python SDK for the AgentInbox email verification API.

Installation

pip install agentinbox

Quick Start

from agentinbox import AgentInboxClient

client = AgentInboxClient(api_key="at_live_...")

# Create an inbox
inbox = client.inboxes.create(ttl_seconds=3600, purpose="Signup test")
print(inbox.email_address)

# Wait for OTP
wait = client.waits.create(
    inbox_id=inbox.id,
    type="otp",
    timeout_seconds=120
)
print(wait.result["value"])  # "123456"

Features

  • Full Python 3.8+ support
  • Type hints throughout
  • Automatic retry with exponential backoff
  • Custom error classes for each API error
  • Resource-based API (inboxes, waits, messages, sessions)

Error Handling

from agentinbox.errors import QuotaExceededError, RateLimitError

try:
    client.inboxes.create()
except QuotaExceededError as e:
    print(f"Quota exceeded: {e.limit}")
except RateLimitError as e:
    print(f"Rate limited, retry after: {e.retry_after}")

Resources

License

MIT

About

Python SDK for AgentTemp - Email verification infrastructure for AI agents

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages