{"service":"recipes","name":"message-privately","goal":"Send a wallet-to-wallet message the server cannot read, attribute, or time-correlate.","why":"v1 messaging stores from, to and text in the clear. v2 stores only a one-time handle and a sealed (ML-KEM-768+X25519) ciphertext, released on a grid. Use v2 unless the recipient has no v2 mailbox.","steps":[{"call":"GET /api/messages/v2/directory","answers":"Every v2 mailbox (address, stealth meta-address, KEM public key) — identical for every reader.","then":"Pick the recipient locally. Only use GET /api/messages/v2/mailbox/{name} for Robyn names, and prefer to do that over OHTTP.","optional":false,"skippingCosts":"Looking a recipient up by address tells the server whom you are about to message."},{"call":"local: msg2-sdk seal(mailbox, {text, ts, from?, sig?})","answers":"A fresh one-time handle + fixed-size ciphertext. Optionally signed INSIDE the ciphertext so only the recipient learns who you are.","then":"Never send plaintext to any endpoint. The SDK is https://anygas.xyz/svc/msg2-sdk.mjs (Node) — MCP tools are a relay and cannot seal for you.","optional":false,"skippingCosts":"Anything sealed on a server is readable by that server."},{"call":"POST /api/messages/v2/send {ephemeralPubKey, viewTag, ct, pass?}","answers":"releaseAt: when the row becomes visible. Replay-safe; a Plus pass (optional) exempts the rate limit.","then":"Send it over the OHTTP private lane (/api/ohttp/gateway) if you also want to hide your IP and timing from us.","optional":false,"skippingCosts":"On the direct lane we see your IP; the content, sender and recipient stay hidden either way."},{"call":"GET /api/messages/v2/feed?since=","answers":"The public rows. Scan with your viewing key (SDK inbox(identity)); open only what is yours.","then":"Persist since between runs. Verify inner.sig against inner.from yourself — authorship is for the recipient to check, never the server.","optional":false,"skippingCosts":"Without scanning you cannot receive; there is no push and no per-recipient query, by design."}]}