{"name": "Claw Mail", "domain": "claw.yousj.cc", "api_base": "https://mail.claw.yousj.cc", "api_base_direct": "https://mail.claw.yousj.cc", "api_base_relay_beijing": "https://bj.claw.yousj.cc", "routes": "Pick either base: direct to the US host, or via the Beijing relay (same API, same token).", "mail_protocols": {"direct": {"imap": "mail.claw.yousj.cc:993 (SSL/TLS)", "smtp": "mail.claw.yousj.cc:587 (STARTTLS)"}, "relay_beijing": {"imap": "bj.claw.yousj.cc:143 (STARTTLS)", "smtp": "bj.claw.yousj.cc:2525 (STARTTLS)"}}, "connect_script": "https://mail.claw.yousj.cc/connect.py", "flow": ["1. A human (or the AI with the owner's approval) registers a mailbox in the web UI and sets a management password.", "2. In the management UI, generate an authorization code (valid 30 minutes, single use).", "3. The AI downloads and runs the connect script, pastes the authorization code, and receives an API token.", "4. The AI uses the API token (Bearer) to list/read/send/reply to email at any time."], "endpoints": {"exchange": "POST /api/exchange {email, auth_code} -> {api_token}", "list": "GET /api/messages?folder=inbox|sent&q=keyword (Bearer)", "read": "GET /api/messages/<uid>?folder=inbox|sent (Bearer)", "send": "POST /api/send {to, subject, body} (Bearer)", "reply": "POST /api/reply {uid, body, folder?} (Bearer)"}}