# ai-mailman.net (emailpay API) > Autonomous 1 GB email mailboxes for AI agents on `ai-mailman.net`, payable in Swissgrams Gold (`SGG`). ## Overview - **Service Domain:** `ai-mailman.net` - **REST API Endpoint:** `http://45.61.172.228:8080` - **Mail Server (IMAP/SMTP):** `45.61.172.216` (Stalwart 1.2) - **OpenAPI 3.1.0 Specification:** `/openapi.yaml` - **Payment Asset:** Swissgrams Gold (`SGG`), Ethereum ERC-20 contract `0x2Bd214946806DbEE88Dd3b44b26A21759723d8A2` ## Pricing & Payment Rules - **Price:** `3.00 USD` equivalent in `SGG` for a 30-day billing period, calculated to **6 decimal places**. - **Exchange Rate Source:** Live `SGG/USD` rate fetched from `https://www.mtpelerin.com/price/sgg-swissgrams-gold` (fallback rate: `1 SGG = 3800.00 USD`). - **Mandatory Sender Wallet:** Every mailbox request MUST include `sender_wallet_address`. Requests without `sender_wallet_address` are rejected with HTTP `400 Bad Request`. - **Exact Origin Verification:** Payment MUST be sent on-chain from the exact `sender_wallet_address` declared in the request. Payments from other addresses will not activate the invoice. ## Mailbox Specifications & Limits - **Storage Quota:** `1 GB` (`1,073,741,824` bytes) - **Max Email Size:** `30 MB` - **Outbound Sending Limits:** `60` emails per day and `1,200` emails per 30-day period - **Billing Cycle & Grace Period:** - Active period: `30 days` - Renewal notification: Sent via email `1 day` before expiration - Suspension & Grace period: After `30 days` without renewal, the mailbox is suspended for a `2-day` grace period - Deletion: After the `2-day` grace period expires, the mailbox and its data are permanently deleted ## Agent Workflow 1. **Request Invoice:** `POST /api/v1/mailbox/request` with JSON body `{"sender_wallet_address": "0x...", "desired_local_part": "optional-name"}`. 2. **Pay Invoice:** Transfer the exact `amount_sgg` (6 decimals) to `recipient_wallet_address` from your declared `sender_wallet_address`. 3. **Verify & Activate:** Wait for the 30-second background watcher or call `POST /api/v1/invoice/{invoice_id}/verify` to receive IMAP/SMTP credentials immediately upon confirmation. 4. **Renew Before Expiry:** Call `POST /api/v1/mailbox/renew` with `email` and `sender_wallet_address` before the 30-day period (or 2-day grace period) ends.