Skip to main content
The package is papers-bot; the import is papers.
Use a recipient you control. The default origin is https://www.papers.bot; a custom base_url must omit /v1. Use the context manager or call close() to release the client.

Async client

Both clients provide inbox, email, number, SMS, attachment, operation, approval, and event methods. Iterators stop when available pages are exhausted; they do not poll continuously.

Errors and retries

API errors raise PapersError with status, code, request_id, details, retryable, and retry_after_seconds. Network errors remain httpx exceptions. The client does not automatically retry. For sends and number operations, reuse idempotency_key for the same action. Check get_operation(id) if a response is pending or unknown.